From 83f9e707eba500d39c12b8078948b932706cdab2 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 9 May 2011 15:32:34 +0000 Subject: refactor content handler initilisation to use named initialisors svn path=/trunk/netsurf/; revision=12341 --- image/svg.c | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'image/svg.c') 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[] = { -- cgit v1.2.3