diff options
author | David Robillard <d@drobilla.net> | 2014-05-05 15:38:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-05-05 15:38:33 +0000 |
commit | 6ac6d7448aa0a976e7347daf8b48d6e56216af85 (patch) | |
tree | 0f51f140d4f04ef160cc36ab91a5dbd3a5111940 /src | |
parent | 88b95c5a431dfb2762309073184406d1eaa987bf (diff) | |
download | lilv-6ac6d7448aa0a976e7347daf8b48d6e56216af85.tar.gz lilv-6ac6d7448aa0a976e7347daf8b48d6e56216af85.tar.bz2 lilv-6ac6d7448aa0a976e7347daf8b48d6e56216af85.zip |
Fix use of lv2info -m and -p options to write plugin data.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5401 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/node.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -156,6 +156,20 @@ lilv_new_uri(LilvWorld* world, const char* uri) LILV_API LilvNode* +lilv_new_file_uri(LilvWorld* world, const char* host, const char* path) +{ + char* abs_path = lilv_path_absolute(path); + SerdNode s = serd_node_new_file_uri( + (const uint8_t*)abs_path, (const uint8_t*)host, NULL, true); + + LilvNode* ret = lilv_node_new(world, LILV_VALUE_URI, (const char*)s.buf); + serd_node_free(&s); + free(abs_path); + return ret; +} + +LILV_API +LilvNode* lilv_new_string(LilvWorld* world, const char* str) { return lilv_node_new(world, LILV_VALUE_STRING, str); |