aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/UriUtil.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-26 11:37:52 +0100
committerMax Kellermann <max@duempel.org>2014-10-10 22:43:40 +0200
commit464767c5fd0671b93f97f79905bdfb987826f6ef (patch)
tree371199fc0413bece2b143042e4fc23b2cd9f1e36 /src/util/UriUtil.hxx
parenta9c3ca86065a5db6a9aeed32a25250cb785702a1 (diff)
downloadmpd-464767c5fd0671b93f97f79905bdfb987826f6ef.tar.gz
mpd-464767c5fd0671b93f97f79905bdfb987826f6ef.tar.xz
mpd-464767c5fd0671b93f97f79905bdfb987826f6ef.zip
db/upnp/Util: move caturl() to util/UriUtil.cxx
Diffstat (limited to 'src/util/UriUtil.hxx')
-rw-r--r--src/util/UriUtil.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/UriUtil.hxx b/src/util/UriUtil.hxx
index 8e00f8cd8..c2cc97a63 100644
--- a/src/util/UriUtil.hxx
+++ b/src/util/UriUtil.hxx
@@ -77,4 +77,12 @@ gcc_pure gcc_nonnull_all
bool
uri_is_child_or_same(const char *parent, const char *child);
+/**
+ * Translate the given URI in the context of #base. For example,
+ * uri_apply_base("foo", "http://bar/a/")=="http://bar/a/foo".
+ */
+gcc_pure
+std::string
+uri_apply_base(const std::string &uri, const std::string &base);
+
#endif