X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/892a9205097c80fe53f3f6c8d9dbddfb05525ec9..d61ec067563735c651f81e6ad0f31be01a8c202b:/src/modules.c diff --git a/src/modules.c b/src/modules.c index 9ab5d40c..2f52b8d7 100644 --- a/src/modules.c +++ b/src/modules.c @@ -228,6 +228,11 @@ register_loadable_types(void) g_debug("%d types loaded", (int)sizeof(types)/(int)sizeof(GType)); } +/** + * First stage initialization + * Can not use a_get_preferences() yet... + * See comment in main.c + */ void modules_init() { #ifdef VIK_CONFIG_BING @@ -266,6 +271,22 @@ void modules_init() modules_load_config (); } +/** + * modules_post_init: + * + * Secondary stage initialization + * Can now use a_get_preferences() and a_babel_available() + */ +void modules_post_init () +{ +#ifdef VIK_CONFIG_GOOGLE + google_post_init(); +#endif +#ifdef HAVE_LIBMAPNIK + vik_mapnik_layer_post_init(); +#endif +} + /** * */