aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/UriUtil.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/UriUtil.hxx')
-rw-r--r--src/util/UriUtil.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util/UriUtil.hxx b/src/util/UriUtil.hxx
index d93296b10..78d0a6bff 100644
--- a/src/util/UriUtil.hxx
+++ b/src/util/UriUtil.hxx
@@ -57,4 +57,17 @@ gcc_pure
std::string
uri_remove_auth(const char *uri);
+/**
+ * Check whether #child specifies a resource "inside" the directory
+ * specified by #parent. If the strings are equal, the function
+ * returns false.
+ */
+gcc_pure gcc_nonnull_all
+bool
+uri_is_child(const char *parent, const char *child);
+
+gcc_pure gcc_nonnull_all
+bool
+uri_is_child_or_same(const char *parent, const char *child);
+
#endif