aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-24 17:17:26 +0000
committerDavid Robillard <d@drobilla.net>2011-05-24 17:17:26 +0000
commitba61f0950156b04dfae0320927543420020b7fc9 (patch)
tree4f9d0d520c7e73833d322221a90e21c3bdf5d3df /serd
parent2dff746982463158fdf7c3a4a47fee92b1d61551 (diff)
downloadserd-ba61f0950156b04dfae0320927543420020b7fc9.tar.gz
serd-ba61f0950156b04dfae0320927543420020b7fc9.tar.bz2
serd-ba61f0950156b04dfae0320927543420020b7fc9.zip
Add serd_uri_to_path to API.
Remove unused SERD_ANON_END statement flag. git-svn-id: http://svn.drobilla.net/serd/trunk@191 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'serd')
-rw-r--r--serd/serd.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/serd/serd.h b/serd/serd.h
index bd5b50eb..5af0331a 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -116,8 +116,7 @@ typedef enum {
SERD_EMPTY_O = 1 << 2, /**< Empty blank node object */
SERD_ANON_S_BEGIN = 1 << 3, /**< Start of anonymous subject */
SERD_ANON_O_BEGIN = 1 << 4, /**< Start of anonymous object */
- SERD_ANON_CONT = 1 << 5, /**< Continuation of anonymous node */
- SERD_ANON_END = 1 << 6, /**< End of anonymous node */
+ SERD_ANON_CONT = 1 << 5 /**< Continuation of anonymous node */
} SerdStatementFlag;
/**
@@ -262,6 +261,13 @@ serd_strlen(const uint8_t* str, size_t* n_bytes, SerdNodeFlags* flags);
static const SerdURI SERD_URI_NULL = {{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}};
/**
+ Return the local path for @a uri, or NULL if @a uri is not a file URI.
+*/
+SERD_API
+const uint8_t*
+serd_uri_to_path(const uint8_t* uri);
+
+/**
Return true iff @a utf8 starts with a valid URI scheme.
*/
SERD_API