summaryrefslogtreecommitdiff
path: root/utils/nsurl/nsurl.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2020-05-19 21:01:09 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2020-05-19 21:01:09 +0100
commit1347f9e3a66dfab4813099f979cb2668e0a29e11 (patch)
tree5accf4ec48cfd2a1f3ef826b50043ebb680141d5 /utils/nsurl/nsurl.c
parent20d46406ed0f5abbca57e13360bec4c17495c999 (diff)
downloadnetsurf-1347f9e3a66dfab4813099f979cb2668e0a29e11.tar.gz
netsurf-1347f9e3a66dfab4813099f979cb2668e0a29e11.tar.bz2
nsurl: Expose scheme type accessor.
Diffstat (limited to 'utils/nsurl/nsurl.c')
-rw-r--r--utils/nsurl/nsurl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/nsurl/nsurl.c b/utils/nsurl/nsurl.c
index 50cc15e82..63619af15 100644
--- a/utils/nsurl/nsurl.c
+++ b/utils/nsurl/nsurl.c
@@ -237,6 +237,15 @@ lwc_string *nsurl_get_component(const nsurl *url, nsurl_component part)
/* exported interface, documented in nsurl.h */
+enum nsurl_scheme_type nsurl_get_scheme_type(const nsurl *url)
+{
+ assert(url != NULL);
+
+ return url->components.scheme_type;
+}
+
+
+/* exported interface, documented in nsurl.h */
bool nsurl_has_component(const nsurl *url, nsurl_component part)
{
assert(url != NULL);