mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
Don't return length from nsurl_access.
svn path=/trunk/netsurf/; revision=12882
This commit is contained in:
parent
07d140f0f1
commit
dc53b47e0b
@ -1182,11 +1182,10 @@ nserror nsurl_get(const nsurl *url, nsurl_component parts,
|
||||
|
||||
|
||||
/* exported interface, documented in nsurl.h */
|
||||
const char *nsurl_access(const nsurl *url, size_t *url_l)
|
||||
const char *nsurl_access(const nsurl *url)
|
||||
{
|
||||
assert(url != NULL);
|
||||
|
||||
*url_l = url->length;
|
||||
return url->string;
|
||||
}
|
||||
|
||||
|
@ -125,18 +125,17 @@ nserror nsurl_get(const nsurl *url, nsurl_component parts,
|
||||
|
||||
|
||||
/**
|
||||
* Access a URL (section) as a string, from a NetSurf URL object
|
||||
* Access a NetSurf URL object as a string
|
||||
*
|
||||
* \param url NetSurf URL to retrieve a string pointer for.
|
||||
* \param url_l Returns length of returned string
|
||||
* \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 length returned in url_l excludes the trailing '\0'.
|
||||
* The returned string has a trailing '\0'.
|
||||
*/
|
||||
const char *nsurl_access(const nsurl *url, size_t *url_l);
|
||||
const char *nsurl_access(const nsurl *url);
|
||||
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user