]> git.street.me.uk Git - andy/viking.git/blobdiff - src/modules.c
Read zip files contents which are stored with no compression.
[andy/viking.git] / src / modules.c
index 9ab5d40c99b37bcbb5678655d956dfe2226833b4..2f52b8d74e2cfd72ae74940103b76d9836985c33 100644 (file)
@@ -228,6 +228,11 @@ register_loadable_types(void)
   g_debug("%d types loaded", (int)sizeof(types)/(int)sizeof(GType));
 }
 
   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
 void modules_init()
 {
 #ifdef VIK_CONFIG_BING
@@ -266,6 +271,22 @@ void modules_init()
   modules_load_config ();
 }
 
   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
+}
+
 /**
  *
  */
 /**
  *
  */