summaryrefslogtreecommitdiffstats
path: root/src/server/OSCEngineReceiver.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/OSCEngineReceiver.hpp')
-rw-r--r--src/server/OSCEngineReceiver.hpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/server/OSCEngineReceiver.hpp b/src/server/OSCEngineReceiver.hpp
index 4282b0a8..a165afc0 100644
--- a/src/server/OSCEngineReceiver.hpp
+++ b/src/server/OSCEngineReceiver.hpp
@@ -20,16 +20,16 @@
#include <stdint.h>
#include <lo/lo.h>
-#include "ServerInterfaceImpl.hpp"
+
#include "Request.hpp"
#include "ingen-config.h"
namespace Ingen {
+
namespace Server {
-class JackDriver;
-class NodeFactory;
-class PatchImpl;
+class Engine;
+class ServerInterfaceImpl;
/* Some boilerplate killing macros... */
#define LO_HANDLER_ARGS const char* path, const char* types, lo_arg** argv, int argc, lo_message msg
@@ -54,10 +54,13 @@ inline static int name##_cb(LO_HANDLER_ARGS, void* myself)\
*
* \ingroup engine
*/
-class OSCEngineReceiver : public ServerInterfaceImpl
+class OSCEngineReceiver
{
public:
- OSCEngineReceiver(Engine& engine, uint16_t port);
+ OSCEngineReceiver(Engine& engine,
+ SharedPtr<ServerInterfaceImpl> interface,
+ uint16_t port);
+
~OSCEngineReceiver();
private:
@@ -116,7 +119,9 @@ private:
LO_HANDLER(set_property);
LO_HANDLER(property_set);
- lo_server _server;
+ Engine& _engine;
+ SharedPtr<ServerInterfaceImpl> _interface;
+ lo_server _server;
};
} // namespace Server