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>2023-12-02 18:49:08 -0500
commitc8594c69b612005c7507ad00f7274ca7791197d7 (patch)
tree74a33b550deb1a953a6a9d53872c626878194206 /src/world.h
parente750f4b6734d086e433e3c9c05b2252f43f4be8f (diff)
downloadserd-c8594c69b612005c7507ad00f7274ca7791197d7.tar.gz
serd-c8594c69b612005c7507ad00f7274ca7791197d7.tar.bz2
serd-c8594c69b612005c7507ad00f7274ca7791197d7.zip
Cache commonly used nodes in the world
Diffstat (limited to 'src/world.h')
-rw-r--r--src/world.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/world.h b/src/world.h
index f615868a..0888b480 100644
--- a/src/world.h
+++ b/src/world.h
@@ -8,20 +8,26 @@
#include "serd/memory.h"
#include "serd/node.h"
+#include "serd/nodes.h"
#include "serd/world.h"
-#include <stdbool.h>
#include <stdint.h>
struct SerdWorldImpl {
- SerdAllocator* allocator;
- SerdLog log;
- SerdLimits limits;
- uint32_t next_blank_id;
- uint32_t next_document_id;
- SerdNode* blank_node;
-
- bool stderr_color;
+ SerdAllocator* allocator;
+ SerdLog log;
+ SerdLimits limits;
+ SerdNodes* nodes;
+ 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;
+ SerdNode* blank_node;
+ uint32_t next_blank_id;
+ uint32_t next_document_id;
};
#endif // SERD_SRC_WORLD_H