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/jpeg.c | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'image/jpeg.c') diff --git a/image/jpeg.c b/image/jpeg.c index 1d0e16edd..5b355f3e5 100644 --- a/image/jpeg.c +++ b/image/jpeg.c @@ -335,21 +335,13 @@ static content_type nsjpeg_content_type(lwc_string *mime_type) } static const content_handler nsjpeg_content_handler = { - nsjpeg_create, - NULL, - nsjpeg_convert, - NULL, - nsjpeg_destroy, - NULL, - NULL, - NULL, - nsjpeg_redraw, - NULL, - NULL, - nsjpeg_clone, - NULL, - nsjpeg_content_type, - false + .create = nsjpeg_create, + .data_complete = nsjpeg_convert, + .destroy = nsjpeg_destroy, + .redraw = nsjpeg_redraw, + .clone = nsjpeg_clone, + .type = nsjpeg_content_type, + .no_share = false, }; nserror nsjpeg_init(void) -- cgit v1.2.3