aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-06-13 17:11:13 -0400
committerDavid Robillard <d@drobilla.net>2019-12-19 20:55:21 -0500
commit633d058cf776e28bb0ce0505e58b0be348674be4 (patch)
treec75719d5236fbdd032f0242167b5883980ec51e6 /serd
parent6aabd3c6c7ef77009e7b9e5c8b01c3759730dc7a (diff)
downloadserd-633d058cf776e28bb0ce0505e58b0be348674be4.tar.gz
serd-633d058cf776e28bb0ce0505e58b0be348674be4.tar.bz2
serd-633d058cf776e28bb0ce0505e58b0be348674be4.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')
-rw-r--r--serd/serd.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 4e74bd64..acf154a4 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -641,16 +641,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.