37 const uint8_t *source_data;
45 if (hlcontent == NULL) {
58 if (filename == NULL) {
Browser window creation and manipulation interface.
struct nsurl * browser_window_access_url(const struct browser_window *bw)
Access a browser window's URL.
struct hlcache_handle * browser_window_get_content(struct browser_window *bw)
Get a cache handle for the content within a browser window.
@ CONTENT_HTML
content is HTML
@ CONTENT_ENCODING_NORMAL
The content encoding.
nserror
Enumeration of error codes.
@ NSERROR_BAD_CONTENT
Bad Content.
@ NSERROR_BAD_PARAMETER
Bad Parameter.
@ NSERROR_NOMEM
Memory exhaustion.
Public content interface.
const uint8_t * content_get_source_data(struct hlcache_handle *h, size_t *size)
Retrieve source of content.
const char * content_get_encoding(struct hlcache_handle *h, enum content_encoding_type op)
Retrieve the encoding of a content.
content_type content_get_type(struct hlcache_handle *h)
Retrieve computed type of content.
const char * messages_get(const char *key)
Fast lookup of a message by key from the standard Messages hash.
Localised message support (interface).
NetSurf URL handling (interface).
const char * nsurl_access(const nsurl *url)
Access a NetSurf URL object as a string.
nserror nsurl_nice(const nsurl *url, char **result, bool remove_extensions)
Attempt to find a nice filename for a URL.
Interface to utility string handling.
nserror utf8_from_enc(const char *string, const char *encname, size_t len, char **result, size_t *result_len)
Convert a string in the named encoding into a UTF-8 string.
UTF-8 manipulation functions (interface).
Interface to a number of general purpose functionality.
#define SLEN(x)
Calculate length of constant C string.
nserror nsgtk_viewdata(const char *title, const char *filename, char *ndata, size_t ndata_len)
Display text to a user.
nserror nsgtk_viewsource(GtkWindow *parent, struct browser_window *bw)