summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/destructible.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-08-16 14:07:58 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-08-16 14:07:58 +0000
commit3ea92ec324ed3796497b89fbfff5ea5c44e18455 (patch)
tree9848a54f6c7cb640cf2df8fbb8b80c1f029ad7cb /libs/pbd/pbd/destructible.h
parent1ae094813858a2b8cf5b08569edcb9b15d910729 (diff)
new file
git-svn-id: svn://localhost/ardour2/trunk@831 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/destructible.h')
-rw-r--r--libs/pbd/pbd/destructible.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/libs/pbd/pbd/destructible.h b/libs/pbd/pbd/destructible.h
new file mode 100644
index 0000000000..126bd04bba
--- /dev/null
+++ b/libs/pbd/pbd/destructible.h
@@ -0,0 +1,20 @@
+#ifndef __pbd_destructible_h__
+#define __pbd_destructible_h__
+
+#include <sigc++/signal.h>
+
+namespace PBD {
+
+class Destructible {
+ public:
+ Destructible() {}
+ virtual ~Destructible () {}
+
+ sigc::signal<void> GoingAway;
+
+ void drop_references () const { GoingAway(); }
+};
+
+}
+
+#endif /* __pbd_destructible_h__ */