diff options
author | David Robillard <d@drobilla.net> | 2007-08-01 03:20:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-08-01 03:20:35 +0000 |
commit | 9cd4eddfb41c4573d4acd4f625572c4cdff50497 (patch) | |
tree | b9ebf2ecd19ddc5033c891edf17fae01a61ef438 /src/common/interface | |
parent | 22395ab7d817dec53e2c2fff07de6d88db70492e (diff) | |
download | ingen-9cd4eddfb41c4573d4acd4f625572c4cdff50497.tar.gz ingen-9cd4eddfb41c4573d4acd4f625572c4cdff50497.tar.bz2 ingen-9cd4eddfb41c4573d4acd4f625572c4cdff50497.zip |
More SWIGification. Engine->Client calls/messages implemented... and segfault somewhere in Python :/ .
git-svn-id: http://svn.drobilla.net/lad/ingen@664 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/common/interface')
-rw-r--r-- | src/common/interface/ClientInterface.hpp | 5 | ||||
-rw-r--r-- | src/common/interface/EngineInterface.hpp | 4 | ||||
-rw-r--r-- | src/common/interface/Responder.hpp | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/src/common/interface/ClientInterface.hpp b/src/common/interface/ClientInterface.hpp index 06114101..a13b870c 100644 --- a/src/common/interface/ClientInterface.hpp +++ b/src/common/interface/ClientInterface.hpp @@ -25,6 +25,8 @@ namespace Ingen { namespace Shared { +class EngineInterface; + /** The (only) interface the engine uses to communicate with clients. * @@ -35,6 +37,9 @@ class ClientInterface public: virtual ~ClientInterface() {} + + /** Wrapper for engine->register_client to appease SWIG */ + virtual void subscribe(EngineInterface* engine) = 0; virtual void response(int32_t id, bool success, std::string msg) = 0; diff --git a/src/common/interface/EngineInterface.hpp b/src/common/interface/EngineInterface.hpp index 0ac56c7c..09860e31 100644 --- a/src/common/interface/EngineInterface.hpp +++ b/src/common/interface/EngineInterface.hpp @@ -47,7 +47,7 @@ public: virtual void disable_responses() = 0; // Client registration - virtual void register_client(const string& uri, SharedPtr<ClientInterface> client) = 0; + virtual void register_client(const string& uri, ClientInterface* client) = 0; virtual void unregister_client(const string& uri) = 0; @@ -64,7 +64,7 @@ public: virtual void create_port(const string& path, const string& data_type, - bool direction) = 0; + bool is_output) = 0; virtual void create_node(const string& path, const string& plugin_uri, diff --git a/src/common/interface/Responder.hpp b/src/common/interface/Responder.hpp index 0ae0972a..463a3471 100644 --- a/src/common/interface/Responder.hpp +++ b/src/common/interface/Responder.hpp @@ -55,7 +55,7 @@ public: virtual std::string client_uri() { return ""; } - virtual SharedPtr<ClientInterface> client() { return SharedPtr<ClientInterface>(); } + virtual ClientInterface* client() { return NULL; } virtual void set_id(int32_t id) {} |