summaryrefslogtreecommitdiff
path: root/utils/nsurl.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/nsurl.h')
-rw-r--r--utils/nsurl.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/utils/nsurl.h b/utils/nsurl.h
index ac62c7ced..fe29c2f1d 100644
--- a/utils/nsurl.h
+++ b/utils/nsurl.h
@@ -125,6 +125,28 @@ nserror nsurl_get(const nsurl *url, nsurl_component parts,
/**
+ * Enquire about the existence of componenets in a given URL
+ *
+ * \param url NetSurf URL object
+ * \param part The URL components confirm existence of
+ * \return true iff the component in question exists in url
+ *
+ * The valid values for the part parameter are:
+ * NSURL_SCHEME
+ * NSURL_USERNAME
+ * NSURL_PASSWORD
+ * NSURL_CREDENTIALS
+ * NSURL_HOST
+ * NSURL_PORT
+ * NSURL_AUTHORITY
+ * NSURL_PATH
+ * NSURL_QUERY
+ * NSURL_FRAGMENT
+ */
+bool nsurl_enquire(const nsurl *url, nsurl_component part);
+
+
+/**
* Access a NetSurf URL object as a string
*
* \param url NetSurf URL to retrieve a string pointer for.