diff options
author | David Robillard <d@drobilla.net> | 2011-02-16 01:16:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-16 01:16:32 +0000 |
commit | 4cc15fb56f579e7eab9e0b947c433b96bc4c26f8 (patch) | |
tree | feb005fcf32b46e5e39cc919f31939d54f94b236 /src/value.c | |
parent | b9f9dac34231a12828d5427f54fc41be57eefaa5 (diff) | |
download | lilv-4cc15fb56f579e7eab9e0b947c433b96bc4c26f8.tar.gz lilv-4cc15fb56f579e7eab9e0b947c433b96bc4c26f8.tar.bz2 lilv-4cc15fb56f579e7eab9e0b947c433b96bc4c26f8.zip |
Update for new Sord API.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2955 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/value.c')
-rw-r--r-- | src/value.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/value.c b/src/value.c index 81def9e..51ff1a1 100644 --- a/src/value.c +++ b/src/value.c @@ -74,7 +74,7 @@ slv2_value_new(SLV2World world, SLV2ValueType type, const char* str) switch (type) { case SLV2_VALUE_URI: - val->val.uri_val = sord_get_uri(world->model, true, (const uint8_t*)str); + val->val.uri_val = sord_new_uri(world->model, (const uint8_t*)str); assert(val->val.uri_val); val->str_val = (char*)sord_node_get_string(val->val.uri_val); break; @@ -108,7 +108,7 @@ slv2_value_new_from_node(SLV2World world, SordNode node) result->str_val = (char*)sord_node_get_string(result->val.uri_val); break; case SORD_LITERAL: - datatype_uri = sord_literal_get_datatype(node); + datatype_uri = sord_node_get_datatype(node); if (datatype_uri) { if (sord_node_equals(datatype_uri, world->xsd_boolean_node)) type = SLV2_VALUE_BOOL; |