diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-06-19 16:29:42 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-06-21 23:27:22 +0100 |
commit | 67ded2a02a4f3f4d2a0ab156f3343dc93f4ba04c (patch) | |
tree | 3110af1e6d0bea57725b74db6efeb3a821628890 /desktop | |
parent | 335bbe4f52b9fdb74e377b83906eaab4456666cf (diff) | |
download | netsurf-67ded2a02a4f3f4d2a0ab156f3343dc93f4ba04c.tar.gz netsurf-67ded2a02a4f3f4d2a0ab156f3343dc93f4ba04c.tar.bz2 |
This moves message loading out of netsurf_init into each frontend
The translated message loading is dependant on configuration of
resource location in each frontend, additionally they should have the
ability to deal with errors in this loading in a implementation
specific manner.
This also extends the message loading API to be capable of loading
from an inline memory buffer instead of from a file.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/netsurf.c | 4 | ||||
-rw-r--r-- | desktop/netsurf.h | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/desktop/netsurf.c b/desktop/netsurf.c index bf8ff86aa..0fd7b7bbd 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -122,7 +122,7 @@ static nserror netsurf_llcache_query_handler(const llcache_query *query, } /* exported interface documented in desktop/netsurf.h */ -nserror netsurf_init(const char *messages, const char *store_path) +nserror netsurf_init(const char *store_path) { nserror ret; struct hlcache_parameters hlcache_parameters = { @@ -151,8 +151,6 @@ nserror netsurf_init(const char *messages, const char *store_path) signal(SIGPIPE, SIG_IGN); #endif - messages_load(messages); - /* corestrings init */ ret = corestrings_init(); if (ret != NSERROR_OK) diff --git a/desktop/netsurf.h b/desktop/netsurf.h index 4f3721945..ee6e53a7f 100644 --- a/desktop/netsurf.h +++ b/desktop/netsurf.h @@ -40,11 +40,10 @@ nserror netsurf_register(struct netsurf_table *table); /** * Initialise netsurf core. * - * @param messages path to translation mesage file. * @param store_path path to persistant storage. * @return NSERROR_OK on success or error code on faliure. */ -nserror netsurf_init(const char *messages, const char *store_path); +nserror netsurf_init(const char *store_path); /** * Finalise NetSurf core |