summaryrefslogtreecommitdiff
path: root/image/svg.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2011-05-09 15:32:34 +0000
committerVincent Sanders <vince@netsurf-browser.org>2011-05-09 15:32:34 +0000
commit83f9e707eba500d39c12b8078948b932706cdab2 (patch)
treec904e2c3daa1b70f86d6d5d1d9ae5533d3a44d0f /image/svg.c
parent0929aa897b73bb5a028c732a0867a7f093f92629 (diff)
downloadnetsurf-83f9e707eba500d39c12b8078948b932706cdab2.tar.gz
netsurf-83f9e707eba500d39c12b8078948b932706cdab2.tar.bz2
refactor content handler initilisation to use named initialisors
svn path=/trunk/netsurf/; revision=12341
Diffstat (limited to 'image/svg.c')
-rw-r--r--image/svg.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/image/svg.c b/image/svg.c
index 5f093b8e8..a447eaf54 100644
--- a/image/svg.c
+++ b/image/svg.c
@@ -59,21 +59,14 @@ static nserror svg_clone(const struct content *old, struct content **newc);
static content_type svg_content_type(lwc_string *mime_type);
static const content_handler svg_content_handler = {
- svg_create,
- NULL,
- svg_convert,
- svg_reformat,
- svg_destroy,
- NULL,
- NULL,
- NULL,
- svg_redraw,
- NULL,
- NULL,
- svg_clone,
- NULL,
- svg_content_type,
- false
+ .create = svg_create,
+ .data_complete = svg_convert,
+ .reformat = svg_reformat,
+ .destroy = svg_destroy,
+ .redraw = svg_redraw,
+ .clone = svg_clone,
+ .type = svg_content_type,
+ .no_share = false,
};
static const char *svg_types[] = {