summaryrefslogtreecommitdiff
path: root/utils/nsurl.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-09-22 20:28:26 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-09-22 20:28:26 +0000
commit828b5b44c7513e798538011c4a3849a1dcf02fd1 (patch)
treea261a077a7953e7473bce53eba9d7169de606c46 /utils/nsurl.h
parent8c861347c0698f2033d83ccd1fa491e93b1e9908 (diff)
downloadnetsurf-828b5b44c7513e798538011c4a3849a1dcf02fd1.tar.gz
netsurf-828b5b44c7513e798538011c4a3849a1dcf02fd1.tar.bz2
Simplify nsurl_access and sync implementation with API.
svn path=/trunk/netsurf/; revision=12862
Diffstat (limited to 'utils/nsurl.h')
-rw-r--r--utils/nsurl.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/utils/nsurl.h b/utils/nsurl.h
index adbde45f7..e53fca9bd 100644
--- a/utils/nsurl.h
+++ b/utils/nsurl.h
@@ -128,21 +128,15 @@ nserror nsurl_get(const nsurl *url, nsurl_component parts,
* Access a URL (section) as a string, from a NetSurf URL object
*
* \param url NetSurf URL to retrieve a string pointer for.
- * \param parts The required URL components.
* \param url_l Returns length of returned string
* \return the required string
*
- * If return value != NSERROR_OK, nothing will be returned in url_s or url_l.
- *
- * The string returned in is owned by the NetSurf URL object. It will die
+ * 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.
*
- * Required URL components must be consecutive. Only when NSURL_WITH_FRAGMENT
- * is passed as the parts param is a trailing '\0' guaranteed.
- *
- * The length returned in url_l excludes any trailing '\0'.
+ * The length returned in url_l excludes the trailing '\0'.
*/
-char *nsurl_access(const nsurl *url, nsurl_component parts, size_t *url_l);
+char *nsurl_access(const nsurl *url, size_t *url_l);
/**