summaryrefslogtreecommitdiff
path: root/utils/nsurl.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/nsurl.h')
-rw-r--r--utils/nsurl.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/nsurl.h b/utils/nsurl.h
index ceb29bc97..c708e0483 100644
--- a/utils/nsurl.h
+++ b/utils/nsurl.h
@@ -183,6 +183,17 @@ const char *nsurl_access(const nsurl *url);
/**
+ * Find the length of a NetSurf URL object's URL, as returned by nsurl_access
+ *
+ * \param url NetSurf URL to find length of.
+ * \return the required string
+ *
+ * The returned length excludes the trailing '\0'.
+ */
+size_t nsurl_length(const nsurl *url);
+
+
+/**
* Join a base url to a relative link part, creating a new NetSurf URL object
*
* \param base NetSurf URL containing the base to join rel to