diff options
author | David Robillard <d@drobilla.net> | 2018-04-29 14:07:29 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-11-25 09:21:03 +0100 |
commit | c8a91d6fcae2b5c7121f059f75e2a164735e56c1 (patch) | |
tree | 17ac52eddfb294bd8746fd1d6db046f6ef97ec98 /src/writer.c | |
parent | f6511f88fe6cab53f6e9e2044926876fac59938b (diff) | |
download | serd-c8a91d6fcae2b5c7121f059f75e2a164735e56c1.tar.gz serd-c8a91d6fcae2b5c7121f059f75e2a164735e56c1.tar.bz2 serd-c8a91d6fcae2b5c7121f059f75e2a164735e56c1.zip |
Clean up and separate internal headers
Diffstat (limited to 'src/writer.c')
-rw-r--r-- | src/writer.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/writer.c b/src/writer.c index 3429a069..7d9346d3 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 { |