aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-10-28 14:15:28 +0100
committerDavid Robillard <d@drobilla.net>2019-12-19 20:55:38 -0500
commit6fa0dc02fce66e4034edc5af2813e8f97d63a4ea (patch)
tree92159b1df8a6c61476b983a38938b6262ac3aecf /src/world.h
parent65ca6a47c9b9da509ba96fb01874b81ebe3c3c26 (diff)
downloadserd-6fa0dc02fce66e4034edc5af2813e8f97d63a4ea.tar.gz
serd-6fa0dc02fce66e4034edc5af2813e8f97d63a4ea.tar.bz2
serd-6fa0dc02fce66e4034edc5af2813e8f97d63a4ea.zip
Cache commonly used nodes in the world
Diffstat (limited to 'src/world.h')
-rw-r--r--src/world.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/world.h b/src/world.h
index 201d038f..9402d65e 100644
--- a/src/world.h
+++ b/src/world.h
@@ -23,10 +23,18 @@
#include <stdio.h>
struct SerdWorldImpl {
- SerdErrorSink error_sink;
- void* error_handle;
- uint32_t next_blank_id;
- SerdNode* blank_node;
+ SerdNodes* nodes;
+ SerdErrorSink error_sink;
+ void* error_handle;
+ SerdNode* blank_node;
+ const SerdNode* rdf_first;
+ const SerdNode* rdf_nil;
+ const SerdNode* rdf_rest;
+ const SerdNode* rdf_type;
+ const SerdNode* xsd_boolean;
+ const SerdNode* xsd_decimal;
+ const SerdNode* xsd_integer;
+ uint32_t next_blank_id;
};
FILE* serd_world_fopen(SerdWorld* world, const char* path, const char* mode);