diff options
author | David Robillard <d@drobilla.net> | 2012-05-09 00:00:48 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-09 00:00:48 +0000 |
commit | 4d46a232b30be99bc34e581cbc636345f77c6bc4 (patch) | |
tree | 66bd9cf24fa4dd716b591393a756c17414c4c1e0 /src/socket/SocketInterface.hpp | |
parent | 628e2f1606aead224c317d17b3e038122db61110 (diff) | |
download | ingen-4d46a232b30be99bc34e581cbc636345f77c6bc4.tar.gz ingen-4d46a232b30be99bc34e581cbc636345f77c6bc4.tar.bz2 ingen-4d46a232b30be99bc34e581cbc636345f77c6bc4.zip |
Persistent socket interface and interactive shell.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4322 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/socket/SocketInterface.hpp')
-rw-r--r-- | src/socket/SocketInterface.hpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/socket/SocketInterface.hpp b/src/socket/SocketInterface.hpp index 2a23cc64..b8d339f8 100644 --- a/src/socket/SocketInterface.hpp +++ b/src/socket/SocketInterface.hpp @@ -16,9 +16,10 @@ #include <string> +#include "ingen/Interface.hpp" #include "raul/SharedPtr.hpp" #include "raul/Thread.hpp" -#include "ingen/Interface.hpp" +#include "sord/sord.h" #include "../server/EventSink.hpp" #include "../server/EventSource.hpp" @@ -45,11 +46,32 @@ public: ~SocketInterface(); + SordInserter* inserter() { return _inserter; } + private: virtual void _run(); + static SerdStatus set_base_uri(SocketInterface* iface, + const SerdNode* uri_node); + + static SerdStatus set_prefix(SocketInterface* iface, + const SerdNode* name, + const SerdNode* uri_node); + + static SerdStatus write_statement(SocketInterface* iface, + SerdStatementFlags flags, + const SerdNode* graph, + const SerdNode* subject, + const SerdNode* predicate, + const SerdNode* object, + const SerdNode* object_datatype, + const SerdNode* object_lang); + Shared::World& _world; Server::EventWriter _iface; + SerdEnv* _env; + SordInserter* _inserter; + SordNode* _msg_node; Server::Event* _event; int _conn; }; |