summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-09-15 22:47:50 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-09-15 22:47:50 +0000
commit339bed72725fe901724440939558c5f9817107ed (patch)
treed2c3fda42a53d4d763f5901fd16e597ce065dd2e /css
parent3d71da088b83c2cc5741dfdc8f619fbf2bba55a2 (diff)
downloadnetsurf-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.c6
-rw-r--r--css/css.h3
2 files changed, 5 insertions, 4 deletions
diff --git a/css/css.c b/css/css.c
index 06dba6133..1f61524f1 100644
--- a/css/css.c
+++ b/css/css.c
@@ -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);
diff --git a/css/css.h b/css/css.h
index 28008664f..dc6053f48 100644
--- a/css/css.h
+++ b/css/css.h
@@ -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,