From 172a0119ee0a0bb6d50836c70936907c3eb71c9e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 18 Jun 2006 08:06:14 +0000 Subject: More work on new ports implementation; lots of mass renaming and code removal. git-svn-id: http://svn.drobilla.net/lad/grauph@52 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/OSCEngineInterface.cpp | 14 ++++++++++++++ src/libs/client/OSCEngineInterface.h | 4 ++++ 2 files changed, 18 insertions(+) (limited to 'src/libs/client') diff --git a/src/libs/client/OSCEngineInterface.cpp b/src/libs/client/OSCEngineInterface.cpp index 5ac598f1..9c6c9299 100644 --- a/src/libs/client/OSCEngineInterface.cpp +++ b/src/libs/client/OSCEngineInterface.cpp @@ -112,6 +112,20 @@ OSCEngineInterface::create_patch(const string& path, } +void +OSCEngineInterface::create_port(const string& path, + const string& data_type, + bool direction) +{ + assert(_engine_addr); + lo_send(_engine_addr, "/om/synth/create_port", "issi", + next_id(), + path.c_str(), + data_type.c_str(), + (direction ? 1 : 0)); +} + + void OSCEngineInterface::create_node(const string& path, const string& plugin_type, diff --git a/src/libs/client/OSCEngineInterface.h b/src/libs/client/OSCEngineInterface.h index 63157da1..89263e01 100644 --- a/src/libs/client/OSCEngineInterface.h +++ b/src/libs/client/OSCEngineInterface.h @@ -71,6 +71,10 @@ public: void create_patch(const string& path, uint32_t poly); + void create_port(const string& path, + const string& data_type, + bool direction); + void create_node(const string& path, const string& plugin_type, const string& plugin_uri, -- cgit v1.2.1