diff options
author | David Robillard <d@drobilla.net> | 2012-05-03 02:56:09 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-03 02:56:09 +0000 |
commit | 9ae720fdc60d7e40b1b8be7c1133a57acb4e564c (patch) | |
tree | 99df6c7c38a850eba95bef35ed5a98f2a057d927 /src/socket | |
parent | 93fb77a658d4d78fc64f3b8b84ed28dd94b3e6f8 (diff) | |
download | ingen-9ae720fdc60d7e40b1b8be7c1133a57acb4e564c.tar.gz ingen-9ae720fdc60d7e40b1b8be7c1133a57acb4e564c.tar.bz2 ingen-9ae720fdc60d7e40b1b8be7c1133a57acb4e564c.zip |
Separate EventWriter interface from EventQueue.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4319 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/socket')
-rw-r--r-- | src/socket/ingen_socket_server.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/socket/ingen_socket_server.cpp b/src/socket/ingen_socket_server.cpp index 7ee20217..19257add 100644 --- a/src/socket/ingen_socket_server.cpp +++ b/src/socket/ingen_socket_server.cpp @@ -20,7 +20,8 @@ #include "ingen/shared/World.hpp" #include "../server/Engine.hpp" -#include "../server/ServerInterfaceImpl.hpp" +#include "../server/EventWriter.hpp" +#include "../server/EventQueue.hpp" #include "SocketListener.hpp" @@ -29,15 +30,16 @@ using namespace Ingen; struct IngenSocketServerModule : public Ingen::Shared::Module { void load(Ingen::Shared::World* world) { Server::Engine* engine = (Server::Engine*)world->local_engine().get(); - SharedPtr<Server::ServerInterfaceImpl> interface( - new Server::ServerInterfaceImpl(*engine)); - receiver = SharedPtr<Ingen::Socket::SocketListener>( + SharedPtr<Server::EventQueue> queue(new Server::EventQueue()); + SharedPtr<Server::EventWriter> interface( + new Server::EventWriter(*engine, *queue.get())); + listener = SharedPtr<Ingen::Socket::SocketListener>( new Ingen::Socket::SocketListener(*world, interface)); - engine->add_event_source(interface); + engine->add_event_source(queue); } - SharedPtr<Ingen::Socket::SocketListener> receiver; + SharedPtr<Ingen::Socket::SocketListener> listener; }; extern "C" { |