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/png.c | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'image/png.c') diff --git a/image/png.c b/image/png.c index f3fbf35ea..3093c89e8 100644 --- a/image/png.c +++ b/image/png.c @@ -413,21 +413,14 @@ static content_type nspng_content_type(lwc_string *mime_type) } static const content_handler nspng_content_handler = { - nspng_create, - nspng_process_data, - nspng_convert, - NULL, - nspng_destroy, - NULL, - NULL, - NULL, - nspng_redraw, - NULL, - NULL, - nspng_clone, - NULL, - nspng_content_type, - false + .create = nspng_create, + .process_data = nspng_process_data, + .data_complete = nspng_convert, + .destroy = nspng_destroy, + .redraw = nspng_redraw, + .clone = nspng_clone, + .type = nspng_content_type, + .no_share = false, }; nserror nspng_init(void) -- cgit v1.2.3