From 48648e4330b224391307343198152cce4f446874 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 29 Jan 2015 22:49:40 +0000 Subject: 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 --- src/util.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index 65688b2..31c9238 100644 --- a/src/util.c +++ b/src/util.c @@ -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". */ -- cgit v1.2.1