#define OSM_RANGE_STOP (65535)
static sqlite3 *osmdb;
+static gboolean osm_db_ok;
struct sql_select_stmt {
sqlite3_stmt *select_way;
sqlite3_finalize(sql.select_near_place);
}
osmdb=NULL;
+osm_db_ok=FALSE;
g_hash_table_destroy(place_cache);
g_timer_destroy(dbt);
}
gboolean
osm_init(sqlite3 **db)
{
+osm_db_ok=FALSE;
place_cache=g_hash_table_new(g_direct_hash, g_direct_equal);
dbt=g_timer_new();
g_printf("SQLITE: %s\n", sqlite3_errmsg(osmdb));
return FALSE;
}
+osm_db_ok=TRUE;
return TRUE;
}