summaryrefslogtreecommitdiff
path: root/image/mng.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2011-05-09 15:32:34 +0000
committerVincent Sanders <vince@netsurf-browser.org>2011-05-09 15:32:34 +0000
commit83f9e707eba500d39c12b8078948b932706cdab2 (patch)
treec904e2c3daa1b70f86d6d5d1d9ae5533d3a44d0f /image/mng.c
parent0929aa897b73bb5a028c732a0867a7f093f92629 (diff)
downloadnetsurf-83f9e707eba500d39c12b8078948b932706cdab2.tar.gz
netsurf-83f9e707eba500d39c12b8078948b932706cdab2.tar.bz2
refactor content handler initilisation to use named initialisors
svn path=/trunk/netsurf/; revision=12341
Diffstat (limited to 'image/mng.c')
-rw-r--r--image/mng.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/image/mng.c b/image/mng.c
index 21e5d9d38..ee2b121ea 100644
--- a/image/mng.c
+++ b/image/mng.c
@@ -96,21 +96,14 @@ static void nsmng_free(mng_ptr p, mng_size_t n);
#endif
static const content_handler nsmng_content_handler = {
- nsmng_create,
- nsmng_process_data,
- nsmng_convert,
- NULL,
- nsmng_destroy,
- NULL,
- NULL,
- NULL,
- nsmng_redraw,
- NULL,
- NULL,
- nsmng_clone,
- NULL,
- nsmng_content_type,
- false
+ .create = nsmng_create,
+ .process_data = nsmng_process_data,
+ .data_complete = nsmng_convert,
+ .destroy = nsmng_destroy,
+ .redraw = nsmng_redraw,
+ .clone = nsmng_clone,
+ .type = nsmng_content_type,
+ .no_share = false,
};
static const char *jng_types[] = {