diff options
author | David Robillard <d@drobilla.net> | 2012-03-08 18:53:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-08 18:53:50 +0000 |
commit | 44177f8c18af89540b90a1cfa38ddda84fc6f747 (patch) | |
tree | 7d4bb7db119982a32ffefe56042b37c65fb2837c /serd/serd.h | |
parent | 362fa1151017494b629d4db81487671557bef0a3 (diff) | |
download | serd-44177f8c18af89540b90a1cfa38ddda84fc6f747.tar.gz serd-44177f8c18af89540b90a1cfa38ddda84fc6f747.tar.bz2 serd-44177f8c18af89540b90a1cfa38ddda84fc6f747.zip |
Add escape parameter to serd_node_new_file_uri().
git-svn-id: http://svn.drobilla.net/serd/trunk@333 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'serd/serd.h')
-rw-r--r-- | serd/serd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/serd/serd.h b/serd/serd.h index 4388c3b4..94679a46 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -423,6 +423,11 @@ serd_node_new_uri_from_string(const uint8_t* str, /** Create a new file URI node from a file system path and optional hostname. + + Backslashes in Windows paths will be converted and '%' will always be + percent encoded. If @c escape is true, all other invalid characters will be + percent encoded as well. + If @c path is relative, @c hostname is ignored. If @c out is not NULL, it will be set to the parsed URI. */ @@ -430,7 +435,8 @@ SERD_API SerdNode serd_node_new_file_uri(const uint8_t* path, const uint8_t* hostname, - SerdURI* out); + SerdURI* out, + bool escape); /** Create a new node by serialising @c uri into a new string. |