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/webp.c | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'image/webp.c') diff --git a/image/webp.c b/image/webp.c index 7b651a1c7..daa7f4522 100644 --- a/image/webp.c +++ b/image/webp.c @@ -55,21 +55,13 @@ static nserror webp_clone(const struct content *old, struct content **newc); static content_type webp_content_type(lwc_string *mime_type); static const content_handler webp_content_handler = { - webp_create, - NULL, - webp_convert, - NULL, - webp_destroy, - NULL, - NULL, - NULL, - webp_redraw, - NULL, - NULL, - webp_clone, - NULL, - webp_content_type, - false + .create = webp_create, + .data_complete = webp_convert, + .destroy = webp_destroy, + .redraw = webp_redraw, + .clone = webp_clone, + .type = webp_content_type, + .no_share = false, }; static const char *webp_types[] = { -- cgit v1.2.3