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 --- amiga/dt_picture.c | 22 +++++++--------------- amiga/icon.c | 22 +++++++--------------- 2 files changed, 14 insertions(+), 30 deletions(-) (limited to 'amiga') diff --git a/amiga/dt_picture.c b/amiga/dt_picture.c index c3828d8f5..6866545f5 100644 --- a/amiga/dt_picture.c +++ b/amiga/dt_picture.c @@ -61,21 +61,13 @@ static nserror amiga_dt_picture_clone(const struct content *old, struct content static content_type amiga_dt_picture_content_type(lwc_string *mime_type); static const content_handler amiga_dt_picture_content_handler = { - amiga_dt_picture_create, - NULL, - amiga_dt_picture_convert, - NULL, - amiga_dt_picture_destroy, - NULL, - NULL, - NULL, - amiga_dt_picture_redraw, - NULL, - NULL, - amiga_dt_picture_clone, - NULL, - amiga_dt_picture_content_type, - false + .create = amiga_dt_picture_create, + .data_complete = amiga_dt_picture_convert, + .destroy = amiga_dt_picture_destroy, + .redraw = amiga_dt_picture_redraw, + .clone = amiga_dt_picture_clone, + .type = amiga_dt_picture_content_type, + .no_share = false, }; nserror amiga_dt_picture_init_from_mime(void) diff --git a/amiga/icon.c b/amiga/icon.c index 59df3e955..c6632b018 100644 --- a/amiga/icon.c +++ b/amiga/icon.c @@ -72,21 +72,13 @@ static nserror amiga_icon_clone(const struct content *old, static content_type amiga_icon_content_type(lwc_string *mime_type); static const content_handler amiga_icon_content_handler = { - amiga_icon_create, - NULL, - amiga_icon_convert, - NULL, - amiga_icon_destroy, - NULL, - NULL, - NULL, - amiga_icon_redraw, - NULL, - NULL, - amiga_icon_clone, - NULL, - amiga_icon_content_type, - false + .create = amiga_icon_create, + .data_complete = amiga_icon_convert, + .destroy = amiga_icon_destroy, + .redraw = amiga_icon_redraw, + .clone = amiga_icon_clone, + .type = amiga_icon_content_type, + .no_share = false, }; static const char *amiga_icon_types[] = { -- cgit v1.2.3