summaryrefslogtreecommitdiffstats
path: root/src/socket/SocketInterface.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket/SocketInterface.hpp')
-rw-r--r--src/socket/SocketInterface.hpp24
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;
};