summaryrefslogtreecommitdiffstats
path: root/src/bindings/Client.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-08-01 03:20:35 +0000
committerDavid Robillard <d@drobilla.net>2007-08-01 03:20:35 +0000
commit9cd4eddfb41c4573d4acd4f625572c4cdff50497 (patch)
treeb9ebf2ecd19ddc5033c891edf17fae01a61ef438 /src/bindings/Client.hpp
parent22395ab7d817dec53e2c2fff07de6d88db70492e (diff)
downloadingen-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/bindings/Client.hpp')
-rw-r--r--src/bindings/Client.hpp90
1 files changed, 90 insertions, 0 deletions
diff --git a/src/bindings/Client.hpp b/src/bindings/Client.hpp
new file mode 100644
index 00000000..aeca11d7
--- /dev/null
+++ b/src/bindings/Client.hpp
@@ -0,0 +1,90 @@
+
+/** Need a stub ClientInterface without pure virtual methods
+ * to allow inheritance in the script
+ */
+class Client : public Ingen::Shared::ClientInterface
+{
+public:
+ //Client() : Ingen::Shared::ClientInterface() {}
+
+ /** Wrapper for engine->register_client to appease SWIG */
+ virtual void subscribe(Ingen::Shared::EngineInterface* engine) {
+ engine->register_client("FIXME", this);
+ }
+
+ virtual void response(int32_t id, bool success, std::string msg) {}
+
+ virtual void enable() {}
+
+ /** Signifies the client does not wish to receive any messages until
+ * enable is called. Useful for performance and avoiding feedback.
+ */
+ virtual void disable() {}
+
+ /** Bundles are a group of messages that are guaranteed to be in an
+ * atomic unit with guaranteed order (eg a packet). For datagram
+ * protocols (like UDP) there is likely an upper limit on bundle size.
+ */
+ virtual void bundle_begin() {}
+ virtual void bundle_end() {}
+
+ /** Transfers are 'weak' bundles. These are used to break a large group
+ * of similar/related messages into larger chunks (solely for communication
+ * efficiency). A bunch of messages in a transfer will arrive as 1 or more
+ * bundles (so a transfer can exceep the maximum bundle (packet) size).
+ */
+ virtual void transfer_begin() {}
+ virtual void transfer_end() {}
+
+ virtual void error(std::string msg) {}
+
+ virtual void num_plugins(uint32_t num_plugins) {}
+
+ virtual void new_plugin(std::string uri,
+ std::string type_uri,
+ std::string name) {}
+
+ virtual void new_patch(std::string path, uint32_t poly) {}
+
+ virtual void new_node(std::string plugin_uri,
+ std::string node_path,
+ bool is_polyphonic,
+ uint32_t num_ports) {}
+
+ virtual void new_port(std::string path,
+ std::string data_type,
+ bool is_output) {}
+
+ virtual void patch_enabled(std::string path) {}
+
+ virtual void patch_disabled(std::string path) {}
+
+ virtual void patch_cleared(std::string path) {}
+
+ virtual void object_renamed(std::string old_path,
+ std::string new_path) {}
+
+ virtual void object_destroyed(std::string path) {}
+
+ virtual void connection(std::string src_port_path,
+ std::string dst_port_path) {}
+
+ virtual void disconnection(std::string src_port_path,
+ std::string dst_port_path) {}
+
+ virtual void metadata_update(std::string subject_path,
+ std::string predicate,
+ Raul::Atom value) {}
+
+ virtual void control_change(std::string port_path,
+ float value) {}
+
+ virtual void program_add(std::string node_path,
+ uint32_t bank,
+ uint32_t program,
+ std::string program_name) {}
+
+ virtual void program_remove(std::string node_path,
+ uint32_t bank,
+ uint32_t program) {}
+};