From 16b11e7238dea2c74a713b6f601d5f506bdaadcf Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 10 May 2014 10:22:10 +0100 Subject: ensure operations tables are registered as early as possible. --- desktop/netsurf.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'desktop/netsurf.c') diff --git a/desktop/netsurf.c b/desktop/netsurf.c index c3653b574..1c9d880f7 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -110,11 +110,15 @@ static nserror netsurf_llcache_query_handler(const llcache_query *query, #define MINIMUM_MEMORY_CACHE_SIZE (2 * 1024 * 1024) -/** - * Initialise components used by gui NetSurf. - */ +/* exported interface documented in desktop/netsurf.h */ +nserror netsurf_register(struct netsurf_table *table) +{ + /* register the operation handlers */ + return gui_factory_register(table); +} -nserror netsurf_init(const char *messages, struct gui_table *gt) +/* exported interface documented in desktop/netsurf.h */ +nserror netsurf_init(const char *messages) { nserror error; struct utsname utsname; @@ -148,11 +152,6 @@ nserror netsurf_init(const char *messages, struct gui_table *gt) utsname.nodename, utsname.release, utsname.version, utsname.machine)); - /* register the gui handlers */ - error = gui_factory_register(gt); - if (error != NSERROR_OK) - return error; - messages_load(messages); /* corestrings init */ -- cgit v1.2.3