diff options
author | David Robillard <d@drobilla.net> | 2012-08-10 04:00:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-10 04:00:33 +0000 |
commit | 7339c3c6f211f7903465c2345583de06d727caf6 (patch) | |
tree | 11ad4b0654c6d8f9e69b9021c492cfd1961977d1 /src/state.c | |
parent | 402fec7d2baa182464129ab510e2b1fe266bfe48 (diff) | |
download | lilv-7339c3c6f211f7903465c2345583de06d727caf6.tar.gz lilv-7339c3c6f211f7903465c2345583de06d727caf6.tar.bz2 lilv-7339c3c6f211f7903465c2345583de06d727caf6.zip |
Always back LilvNode with a SordNode and shave 16 bytes off of LilvNode.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4642 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/state.c')
-rw-r--r-- | src/state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state.c b/src/state.c index 6a6d339..c1ff6c0 100644 --- a/src/state.c +++ b/src/state.c @@ -576,7 +576,7 @@ lilv_state_new_from_world(LilvWorld* world, } LilvState* state = new_state_from_model( - world, map, world->model, node->val.uri_val, NULL); + world, map, world->model, node->node, NULL); return state; } @@ -604,7 +604,7 @@ lilv_state_new_from_file(LilvWorld* world, serd_reader_read_file(reader, node.buf); SordNode* subject_node = (subject) - ? subject->val.uri_val + ? subject->node : sord_node_from_serd_node(world->world, env, &node, NULL, NULL); char* dirname = lilv_dirname(path); @@ -779,7 +779,7 @@ lilv_state_write(LilvWorld* world, SERD_CURIE, USTR("lv2:appliesTo")); const SerdNode* plugin_uri = sord_node_to_serd_node( - state->plugin_uri->val.uri_val); + state->plugin_uri->node); SerdNode subject = serd_node_from_string(SERD_URI, USTR(uri ? uri : "")); |