diff options
author | David Robillard <d@drobilla.net> | 2011-02-16 02:13:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-16 02:13:22 +0000 |
commit | 35feabf61e3a2f9c15cb21ee5ec047f3c9937765 (patch) | |
tree | 96b2af356c060cde43533f98210efa3be19b8907 /src/sordi.c | |
parent | 36c03b3f4e878f2a207cb08e80b06a1503568ed0 (diff) | |
download | sord-35feabf61e3a2f9c15cb21ee5ec047f3c9937765.tar.gz sord-35feabf61e3a2f9c15cb21ee5ec047f3c9937765.tar.bz2 sord-35feabf61e3a2f9c15cb21ee5ec047f3c9937765.zip |
Add world object (to intern nodes and sanely support several models per library instance).
git-svn-id: http://svn.drobilla.net/sord/trunk@34 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sordi.c')
-rw-r--r-- | src/sordi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sordi.c b/src/sordi.c index ab2a10a..bf27e48 100644 --- a/src/sordi.c +++ b/src/sordi.c @@ -118,11 +118,12 @@ main(int argc, char** argv) const uint8_t* input = (const uint8_t*)argv[a++]; - Sord sord = sord_new(SORD_SPO|SORD_OPS, false); + SordWorld world = sord_world_new(); + Sord sord = sord_new(world, SORD_SPO|SORD_OPS, false); bool success = sord_read_file(sord, input, NULL, NULL); - printf("loaded %u statements\n", sord_num_nodes(sord)); + printf("loaded %u statements\n", sord_num_nodes(world)); SerdURI base_uri; if (!serd_uri_parse(input, &base_uri)) { |