From d3c392c3d3b516f05fbf71020b2f6774ce20ce8c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 11 Jan 2014 14:20:30 +0000 Subject: Initial conversion of netsurf gui to callback vtable --- windows/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'windows') diff --git a/windows/main.c b/windows/main.c index 69a152d9b..320c7e4fb 100644 --- a/windows/main.c +++ b/windows/main.c @@ -60,11 +60,6 @@ void gui_launch_url(const char *url) { } -void gui_quit(void) -{ - LOG(("gui_quit")); -} - /** * Ensures output logging stream is available */ @@ -96,6 +91,11 @@ static nserror set_defaults(struct nsoption_s *defaults) return NSERROR_OK; } +static struct gui_table win32_gui_table = { + .poll = &gui_poll, +}; + + /** * Entry point from operating system **/ @@ -157,7 +157,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hLastInstance, LPSTR lpcli, int ncmd) /* common initialisation */ messages = filepath_find(respaths, "messages"); - ret = netsurf_init(messages); + ret = netsurf_init(messages, &win32_gui_table); free(messages); if (ret != NSERROR_OK) { free(options_file_location); -- cgit v1.2.3