aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-04-29 14:07:29 +0200
committerDavid Robillard <d@drobilla.net>2019-04-13 19:15:32 +0200
commit116d82115163a41541db28882d1614574b789f85 (patch)
tree2bb0d0fe2cdff786635deb2fb641953d6b5e5130 /src/writer.c
parentae8d4f4297a7c4e6cbb7b6d4ad431825327f693e (diff)
downloadserd-116d82115163a41541db28882d1614574b789f85.tar.gz
serd-116d82115163a41541db28882d1614574b789f85.tar.bz2
serd-116d82115163a41541db28882d1614574b789f85.zip
Clean up and separate internal headers
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/writer.c b/src/writer.c
index 9404edfe..174d331a 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -21,12 +21,26 @@
#include <stdlib.h>
#include <string.h>
+#include "byte_sink.h"
+#include "node.h"
+#include "stack.h"
+#include "string_utils.h"
+#include "uri_utils.h"
+
typedef struct {
SerdNode* graph;
SerdNode* subject;
SerdNode* predicate;
} WriteContext;
+typedef enum {
+ FIELD_NONE,
+ FIELD_SUBJECT,
+ FIELD_PREDICATE,
+ FIELD_OBJECT,
+ FIELD_GRAPH
+} Field;
+
static const WriteContext WRITE_CONTEXT_NULL = { NULL, NULL, NULL };
typedef enum {