summaryrefslogtreecommitdiff
path: root/utils/nsurl.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-10-24 18:22:45 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-10-24 18:22:45 +0100
commita526209e747642c9dbd8c0cbe9ec2b5247c35d5e (patch)
treeccbcffa6952976c8c3f0a887c0f9e450de99bf7d /utils/nsurl.h
parent719a36972b60165fc45b956703a4860855145548 (diff)
downloadnetsurf-a526209e747642c9dbd8c0cbe9ec2b5247c35d5e.tar.gz
netsurf-a526209e747642c9dbd8c0cbe9ec2b5247c35d5e.tar.bz2
More useful title info for images.
Diffstat (limited to 'utils/nsurl.h')
-rw-r--r--utils/nsurl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/nsurl.h b/utils/nsurl.h
index 068d08b8d..b075c42a1 100644
--- a/utils/nsurl.h
+++ b/utils/nsurl.h
@@ -183,6 +183,20 @@ const char *nsurl_access(const nsurl *url);
/**
+ * Access a URL's path leaf as a string
+ *
+ * \param url NetSurf URL to retrieve a string pointer for.
+ * \return the required string
+ *
+ * The returned string is owned by the NetSurf URL object. It will die
+ * with the NetSurf URL object. Keep a reference to the URL if you need it.
+ *
+ * The returned string has a trailing '\0'.
+ */
+const char *nsurl_access_leaf(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.