aboutsummaryrefslogtreecommitdiffstats
path: root/src/serd_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/serd_internal.h')
-rw-r--r--src/serd_internal.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h
index bd6db527..3f138a21 100644
--- a/src/serd_internal.h
+++ b/src/serd_internal.h
@@ -44,6 +44,16 @@
static const uint8_t replacement_char[] = { 0xEF, 0xBF, 0xBD };
+struct SerdNodeImpl {
+ size_t n_bytes; /**< Size in bytes (not including null) */
+ SerdNodeFlags flags; /**< Node flags (e.g. string properties) */
+ SerdType type; /**< Node type */
+};
+
+static const SerdNode SERD_NODE_NULL = { 0, 0, SERD_NOTHING };
+
+SerdNode* serd_node_malloc(size_t n_bytes, SerdNodeFlags flags, SerdType type);
+void serd_node_set(SerdNode** dst, const SerdNode* src);
char* serd_node_buffer(SerdNode* node);
/* File and Buffer Utilities */
@@ -571,7 +581,7 @@ struct SerdReaderImpl {
Ref rdf_first;
Ref rdf_rest;
Ref rdf_nil;
- SerdNode default_graph;
+ SerdNode* default_graph;
SerdByteSource source;
SerdStack stack;
SerdSyntax syntax;