diff options
author | David Robillard <d@drobilla.net> | 2008-02-20 18:40:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-02-20 18:40:16 +0000 |
commit | 75b652d59639cf0171fe51a0c1442d03081f3b2f (patch) | |
tree | 91234a404baba903e3a3a3327de2a49fe9d51ba7 /src/PatchageEvent.hpp | |
parent | bbb3abbe4b86a23ef884d38ca299aff13b8f9242 (diff) | |
download | patchage-75b652d59639cf0171fe51a0c1442d03081f3b2f.tar.gz patchage-75b652d59639cf0171fe51a0c1442d03081f3b2f.tar.bz2 patchage-75b652d59639cf0171fe51a0c1442d03081f3b2f.zip |
Support jack client de-registration event.
git-svn-id: http://svn.drobilla.net/lad/patchage@1152 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageEvent.hpp')
-rw-r--r-- | src/PatchageEvent.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/PatchageEvent.hpp b/src/PatchageEvent.hpp index bffc3c8..1f15543 100644 --- a/src/PatchageEvent.hpp +++ b/src/PatchageEvent.hpp @@ -36,6 +36,8 @@ public: enum Type { NULL_EVENT = 0, REFRESH, + CLIENT_CREATION, + CLIENT_DESTRUCTION, PORT_CREATION, PORT_DESTRUCTION, CONNECTION, @@ -44,12 +46,20 @@ public: PatchageEvent(Driver* d = NULL, Type type=NULL_EVENT) : _driver(d) + , _str(NULL) + , _type(type) + {} + + PatchageEvent(Driver* driver, Type type, const char* str) + : _driver(driver) + , _str(strdup(str)) // FIXME: not realtime (jack) :( , _type(type) {} template <typename P> PatchageEvent(Driver* driver, Type type, P port) : _driver(driver) + , _str(NULL) , _port_1(port) , _type(type) {} @@ -57,6 +67,7 @@ public: template <typename P> PatchageEvent(Driver* driver, Type type, P port_1, P port_2) : _driver(driver) + , _str(NULL) , _port_1(port_1, false) , _port_2(port_2, true) , _type(type) @@ -95,6 +106,7 @@ public: private: Driver* _driver; + char* _str; PortRef _port_1; PortRef _port_2; uint8_t _type; |