diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-05-09 15:32:34 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-05-09 15:32:34 +0000 |
commit | 83f9e707eba500d39c12b8078948b932706cdab2 (patch) | |
tree | c904e2c3daa1b70f86d6d5d1d9ae5533d3a44d0f /render | |
parent | 0929aa897b73bb5a028c732a0867a7f093f92629 (diff) | |
download | netsurf-83f9e707eba500d39c12b8078948b932706cdab2.tar.gz netsurf-83f9e707eba500d39c12b8078948b932706cdab2.tar.bz2 |
refactor content handler initilisation to use named initialisors
svn path=/trunk/netsurf/; revision=12341
Diffstat (limited to 'render')
-rw-r--r-- | render/html.c | 29 | ||||
-rw-r--r-- | render/textplain.c | 26 |
2 files changed, 25 insertions, 30 deletions
diff --git a/render/html.c b/render/html.c index dd29d2c54..84f0bab40 100644 --- a/render/html.c +++ b/render/html.c @@ -102,21 +102,20 @@ static void html_dump_frameset(struct content_html_frames *frame, #endif static const content_handler html_content_handler = { - html_create, - html_process_data, - html_convert, - html_reformat, - html_destroy, - html_stop, - html_mouse_track, - html_mouse_action, - html_redraw, - html_open, - html_close, - html_clone, - NULL, - html_content_type, - true + .create = html_create, + .process_data = html_process_data, + .data_complete = html_convert, + .reformat = html_reformat, + .destroy = html_destroy, + .stop = html_stop, + .mouse_track = html_mouse_track, + .mouse_action = html_mouse_action, + .redraw = html_redraw, + .open = html_open, + .close = html_close, + .clone = html_clone, + .type = html_content_type, + .no_share = true, }; static const char empty_document[] = diff --git a/render/textplain.c b/render/textplain.c index 6ec2f2521..f498869de 100644 --- a/render/textplain.c +++ b/render/textplain.c @@ -121,21 +121,17 @@ static int textplain_coord_from_offset(const char *text, size_t offset, static float textplain_line_height(void); static const content_handler textplain_content_handler = { - textplain_create, - textplain_process_data, - textplain_convert, - textplain_reformat, - textplain_destroy, - NULL, - textplain_mouse_track, - textplain_mouse_action, - textplain_redraw, - NULL, - NULL, - textplain_clone, - NULL, - textplain_content_type, - true + .create = textplain_create, + .process_data = textplain_process_data, + .data_complete = textplain_convert, + .reformat = textplain_reformat, + .destroy = textplain_destroy, + .mouse_track = textplain_mouse_track, + .mouse_action = textplain_mouse_action, + .redraw = textplain_redraw, + .clone = textplain_clone, + .type = textplain_content_type, + .no_share = true, }; static lwc_string *textplain_mime_type; |