diff options
author | David Robillard <d@drobilla.net> | 2015-01-29 22:49:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-01-29 22:49:40 +0000 |
commit | 48648e4330b224391307343198152cce4f446874 (patch) | |
tree | cd643b485161a7ea2bea5497a01788d06c0d2e8d /src/util.c | |
parent | 4ff9f0b0b78681e4015feb1b2a54ec6f7becf563 (diff) | |
download | lilv-48648e4330b224391307343198152cce4f446874.tar.gz lilv-48648e4330b224391307343198152cce4f446874.tar.bz2 lilv-48648e4330b224391307343198152cce4f446874.zip |
Add lilv_file_uri_parse() for correct URI to path conversion.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5528 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -118,6 +118,12 @@ lilv_uri_to_path(const char* uri) return (const char*)serd_uri_to_path((const uint8_t*)uri); } +char* +lilv_file_uri_parse(const char* uri, char** hostname) +{ + return (char*)serd_file_uri_parse((const uint8_t*)uri, (uint8_t**)hostname); +} + /** Return the current LANG converted to Turtle (i.e. RFC3066) style. * For example, if LANG is set to "en_CA.utf-8", this returns "en-ca". */ |