#include <glib.h>
+#include "osm.h"
+
/* POI or Place node extra data */
typedef struct _node_data node_data;
struct _node_data {
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