diff options
author | David Robillard <d@drobilla.net> | 2018-04-29 14:07:29 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-13 19:15:32 +0200 |
commit | 116d82115163a41541db28882d1614574b789f85 (patch) | |
tree | 2bb0d0fe2cdff786635deb2fb641953d6b5e5130 /src/writer.c | |
parent | ae8d4f4297a7c4e6cbb7b6d4ad431825327f693e (diff) | |
download | serd-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.c | 14 |
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 { |