aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-06-13 17:11:13 -0400
committerDavid Robillard <d@drobilla.net>2019-04-13 19:15:32 +0200
commit1cfecadf30286bb146a9f60154dc9d4e48f8d1cb (patch)
tree1e450bcd0124f46136289e82d7adf866c6fd8fdc /serd/serd.h
parent21ae5645e37837b3933140148ab7c382a834722d (diff)
downloadserd-1cfecadf30286bb146a9f60154dc9d4e48f8d1cb.tar.gz
serd-1cfecadf30286bb146a9f60154dc9d4e48f8d1cb.tar.bz2
serd-1cfecadf30286bb146a9f60154dc9d4e48f8d1cb.zip
Remove escape parameter from serd_new_file_uri
Since characters are escaped because they are not valid characters in a URI, any use of this function without escaping is problematic at best.
Diffstat (limited to 'serd/serd.h')
-rw-r--r--serd/serd.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/serd/serd.h b/serd/serd.h
index eff91e17..4533c378 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -602,16 +602,15 @@ serd_node_resolve(const SerdNode* node, const SerdNode* base);
/**
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 `escape` is true, all other invalid characters will be
- percent encoded as well.
+ Backslashes in Windows paths will be converted, and other characters will be
+ percent encoded as necessary.
If `path` is relative, `hostname` is ignored.
If `out` is not NULL, it will be set to the parsed URI.
*/
SERD_API
SerdNode*
-serd_new_file_uri(const char* path, const char* hostname, bool escape);
+serd_new_file_uri(const char* path, const char* hostname);
/**
Create a new URI from a string, relative to a base URI.