diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-05-10 10:22:10 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-05-10 10:22:10 +0100 |
commit | 16b11e7238dea2c74a713b6f601d5f506bdaadcf (patch) | |
tree | d23dab3fc90645ac976b001e09538dbff4017f5f /desktop/netsurf.h | |
parent | 429d6e20f7989bb65736fb6f0058c33add7b0ac5 (diff) | |
download | netsurf-16b11e7238dea2c74a713b6f601d5f506bdaadcf.tar.gz netsurf-16b11e7238dea2c74a713b6f601d5f506bdaadcf.tar.bz2 |
ensure operations tables are registered as early as possible.
Diffstat (limited to 'desktop/netsurf.h')
-rw-r--r-- | desktop/netsurf.h | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/desktop/netsurf.h b/desktop/netsurf.h index 77589c71c..60ec57845 100644 --- a/desktop/netsurf.h +++ b/desktop/netsurf.h @@ -27,15 +27,32 @@ extern const char * const netsurf_version; extern const int netsurf_version_major; extern const int netsurf_version_minor; -struct gui_table; +struct netsurf_table; -/** Initialise netsurf core */ -nserror netsurf_init(const char *messages, struct gui_table *gt); +/** + * Register operation table. + * + * @param table NetSurf operations table. + * @return NSERROR_OK on success or error code on faliure. + */ +nserror netsurf_register(struct netsurf_table *table); -/** Run primary event loop */ +/** + * Initialise netsurf core. + * + * @param messages path to translation mesage file. + * @return NSERROR_OK on success or error code on faliure. + */ +nserror netsurf_init(const char *messages); + +/** + * Run event loop. + */ extern int netsurf_main_loop(void); -/** finalise NetSurf core */ +/** + * Finalise NetSurf core + */ extern void netsurf_exit(void); |