]> err.no Git - mapper/blobdiff - src/osm-db-import.h
Remove old map sources
[mapper] / src / osm-db-import.h
index 42c0059a186bf3005be3589cdb4aaa6076cd28cf..fefacf973278cb6ce0fd0ee548610c62d8ff8801 100644 (file)
@@ -3,6 +3,8 @@
 
 #include <glib.h>
 
+#include "osm.h"
+
 /* POI or Place node extra data */
 typedef struct _node_data node_data;
 struct _node_data {
@@ -56,7 +58,18 @@ struct map_bbox {
        gdouble lon_max;
 };
 
+/* Struct with import request */
+typedef struct _osm_import_data_req osm_import_data_req;
+struct _osm_import_data_req {
+       gchar *planet;
+       gchar *db;
+       GSourceFunc progress_cb;
+       GSourceFunc done_cb;
+};
+
 void osm_import_set_bbox(gboolean use_bb, gdouble latmin, gdouble lonmin, gdouble latmax, gdouble lonmax);
 gboolean osm_import(const gchar *planet, const gchar *database);
+gboolean osm_import_bg(const gchar *planet, const gchar *database, GSourceFunc progress_cb, GSourceFunc done_cb);
+gint osm_import_join_bg(void);
 
 #endif