diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-26 21:50:16 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-26 21:50:16 +0000 |
commit | e90f794706d8b0712c0e29b3537ef849d3c3042b (patch) | |
tree | 163d0122a9a42fbcc2bb764114a41c6a2ec16949 /utils/nsurl.h | |
parent | ad3af34742d25058e5f6a6a1e4de5fab429ef9a8 (diff) | |
download | netsurf-e90f794706d8b0712c0e29b3537ef849d3c3042b.tar.gz netsurf-e90f794706d8b0712c0e29b3537ef849d3c3042b.tar.bz2 |
Add nsurl_get_lwc function.
svn path=/trunk/netsurf/; revision=12894
Diffstat (limited to 'utils/nsurl.h')
-rw-r--r-- | utils/nsurl.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/utils/nsurl.h b/utils/nsurl.h index 23dd3f251..90fb5decb 100644 --- a/utils/nsurl.h +++ b/utils/nsurl.h @@ -23,6 +23,7 @@ #ifndef _NETSURF_UTILS_NSURL_H_ #define _NETSURF_UTILS_NSURL_H_ +#include <libwapcaplet/libwapcaplet.h> #include "utils/errors.h" @@ -124,6 +125,29 @@ nserror nsurl_get(const nsurl *url, nsurl_component parts, /** + * Get part of a URL as a lwc_string, from a NetSurf URL object + * + * \param url NetSurf URL object + * \param part The URL component required + * \return the required component as an lwc_string, or NULL + * + * The caller owns the returned lwc_string and should call lwc_string_unref + * when they are done with it. + * + * The valid values for the part parameter are: + * NSURL_SCHEME + * NSURL_USERNAME + * NSURL_PASSWORD + * NSURL_HOST + * NSURL_PORT + * NSURL_PATH + * NSURL_QUERY + * NSURL_FRAGMENT + */ +lwc_string *nsurl_get_lwc(const nsurl *url, nsurl_component part); + + +/** * Enquire about the existence of componenets in a given URL * * \param url NetSurf URL object |