aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/world.c b/src/world.c
index 21cdffab..7fb5eea2 100644
--- a/src/world.c
+++ b/src/world.c
@@ -16,6 +16,7 @@
# include <fcntl.h>
#endif
+#include <assert.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
@@ -102,7 +103,8 @@ serd_world_new(void)
return NULL;
}
- world->blank_node = blank_node;
+ world->limits.reader_stack_size = 1048576U;
+ world->blank_node = blank_node;
return world;
}
@@ -116,6 +118,21 @@ serd_world_free(SerdWorld* const world)
}
}
+SerdLimits
+serd_world_limits(const SerdWorld* const world)
+{
+ assert(world);
+ return world->limits;
+}
+
+SerdStatus
+serd_world_set_limits(SerdWorld* const world, const SerdLimits limits)
+{
+ assert(world);
+ world->limits = limits;
+ return SERD_SUCCESS;
+}
+
const SerdNode*
serd_world_get_blank(SerdWorld* const world)
{