diff options
author | David Robillard <d@drobilla.net> | 2011-01-20 20:40:43 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-20 20:40:43 +0000 |
commit | ec2991ce8c75390a227de2d21a532de1dff0fdfd (patch) | |
tree | 695fd1b44e217ca9a592b85bc46c691e32973572 /serd/serd.h | |
parent | 3433e155c739f6a081209ea7422b9fdc7f87a555 (diff) | |
download | serd-ec2991ce8c75390a227de2d21a532de1dff0fdfd.tar.gz serd-ec2991ce8c75390a227de2d21a532de1dff0fdfd.tar.bz2 serd-ec2991ce8c75390a227de2d21a532de1dff0fdfd.zip |
Support passing no base URI on command line (use filename as base URI).
Decent usage output.
git-svn-id: http://svn.drobilla.net/serd/trunk@15 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'serd/serd.h')
-rw-r--r-- | serd/serd.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/serd/serd.h b/serd/serd.h index 1dd49c65..822b4b10 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -96,10 +96,12 @@ typedef struct { SerdChunk fragment; ///< Fragment } SerdURI; -/** Return true iff @a utf8 is a relative URI string. */ +static const SerdURI SERD_URI_NULL = {{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}}; + +/** Return true iff @a utf8 starts with a valid URI scheme. */ SERD_API bool -serd_uri_string_is_relative(const uint8_t* utf8); +serd_uri_string_has_scheme(const uint8_t* utf8); /** Parse @a utf8, writing result to @a out. */ SERD_API |