summaryrefslogtreecommitdiff
path: root/utils/nsurl.h
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2020-03-11 11:02:40 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2020-03-11 11:02:40 +0000
commit7d06021e21784ffec6a8925423b3a790ed16c63f (patch)
tree910f79694af2d5b957e51ce3420f40cefd8b6555 /utils/nsurl.h
parent2c549b28fb508b859702f0c2e1122c6ccd3aa34c (diff)
downloadnetsurf-7d06021e21784ffec6a8925423b3a790ed16c63f.tar.gz
netsurf-7d06021e21784ffec6a8925423b3a790ed16c63f.tar.bz2
nsurl: Make nusrl component dump more usable.
This is only a development aid, and not something that should be called in production.
Diffstat (limited to 'utils/nsurl.h')
-rw-r--r--utils/nsurl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/nsurl.h b/utils/nsurl.h
index c6590bdbb..a80deeff9 100644
--- a/utils/nsurl.h
+++ b/utils/nsurl.h
@@ -369,4 +369,14 @@ nserror nsurl_nice(const nsurl *url, char **result, bool remove_extensions);
*/
nserror nsurl_parent(const nsurl *url, nsurl **new_url);
+/**
+ * Dump a NetSurf URL's internal components to stderr
+ *
+ * This is helper functionality for developers, and shouldn't be called
+ * generally.
+ *
+ * \param url The NetSurf URL to dump components of
+ */
+void nsurl_dump(const nsurl *url);
+
#endif