diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-09-15 22:47:50 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-09-15 22:47:50 +0000 |
commit | 339bed72725fe901724440939558c5f9817107ed (patch) | |
tree | d2c3fda42a53d4d763f5901fd16e597ce065dd2e /css | |
parent | 3d71da088b83c2cc5741dfdc8f619fbf2bba55a2 (diff) | |
download | netsurf-339bed72725fe901724440939558c5f9817107ed.tar.gz netsurf-339bed72725fe901724440939558c5f9817107ed.tar.bz2 |
Virtualise content handler finalisation calls. Remove pointless implementations.
svn path=/trunk/netsurf/; revision=12797
Diffstat (limited to 'css')
-rw-r--r-- | css/css.c | 6 | ||||
-rw-r--r-- | css/css.h | 3 |
2 files changed, 5 insertions, 4 deletions
@@ -55,6 +55,7 @@ typedef struct { * imports array */ } nscss_import_ctx; +static void nscss_fini(void); static nserror nscss_create(const content_handler *handler, lwc_string *imime_type, const http_parameter *params, llcache_handle *llcache, const char *fallback_charset, @@ -79,6 +80,7 @@ static css_error nscss_register_import(struct content_css_data *c, const hlcache_handle *import); static const content_handler css_content_handler = { + .fini = nscss_fini, .create = nscss_create, .process_data = nscss_process_data, .data_complete = nscss_convert, @@ -95,7 +97,7 @@ static css_stylesheet *blank_import; /** * Initialise the CSS content handler */ -nserror css_init(void) +nserror nscss_init(void) { lwc_error lerror; nserror error; @@ -117,7 +119,7 @@ nserror css_init(void) /** * Clean up after the CSS content handler */ -void css_fini(void) +void nscss_fini(void) { if (css_charset != NULL) { lwc_string_unref(css_charset); @@ -61,8 +61,7 @@ struct nscss_import { uint64_t media; /**< Media types that sheet applies to */ }; -nserror css_init(void); -void css_fini(void); +nserror nscss_init(void); nserror nscss_create_css_data(struct content_css_data *c, const char *url, const char *charset, bool quirks, |