summaryrefslogtreecommitdiffstats
path: root/src/PatchageModule.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-09 00:23:26 +0000
committerDavid Robillard <d@drobilla.net>2011-06-09 00:23:26 +0000
commit91cdc941af88e8ba6e19673eb17825233db2218c (patch)
treefb98fc700eb745a6dee1c8bae0e281e07256965a /src/PatchageModule.hpp
parent69b9029a052e9d9c0d66e4b2fe954f9a6e906a92 (diff)
downloadpatchage-91cdc941af88e8ba6e19673eb17825233db2218c.tar.gz
patchage-91cdc941af88e8ba6e19673eb17825233db2218c.tar.bz2
patchage-91cdc941af88e8ba6e19673eb17825233db2218c.zip
Fix support for multiple instances of alsa clients with the same name (never consider client name an ID).
Remove Alsa specific crap from PatchagePort. Sane implementation of AlsaDriver::refresh. Fix refreshing. Remove useless Jack graph order callback. Fix double add/remove of ports to modules. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3374 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageModule.hpp')
-rw-r--r--src/PatchageModule.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/PatchageModule.hpp b/src/PatchageModule.hpp
index 2a58182..d9ba9dd 100644
--- a/src/PatchageModule.hpp
+++ b/src/PatchageModule.hpp
@@ -21,6 +21,7 @@
#include <string>
#include "flowcanvas/Module.hpp"
+#include "flowcanvas/Port.hpp"
#include "StateManager.hpp"
@@ -32,9 +33,6 @@ public:
PatchageModule(Patchage* app, const std::string& name, ModuleType type, double x=0, double y=0);
~PatchageModule();
- void add_port(FlowCanvas::Port* port);
- void remove_port(FlowCanvas::Port* port);
-
void split();
void join();
@@ -49,6 +47,9 @@ public:
ModuleType type() const { return _type; }
protected:
+ void add_port(FlowCanvas::Port* port);
+ void remove_port(FlowCanvas::Port* port);
+
Patchage* _app;
ModuleType _type;
};