case MAPPER_INIT_START:
curl_global_init(CURL_GLOBAL_NOTHING);
gnome_vfs_init();
- _gps=gps_new();
- _gps->io.type=GPS_IO_SIMULATION;
+ /* XXX: Load GPS configuration, then create gps */
#ifdef WITH_BLUEZ
- _gps->io.type=GPS_IO_RFCOMM;
-#endif
+ _gps=gps_new(GPS_IO_RFCOMM);
+#else
#ifdef WITH_HILDON_DBUS_BT
- _gps->io.type=GPS_IO_HILDON_DBUS;
+ _gps=gps_new(GPS_IO_RFCOMM);
+#else
+ _gps=gps_new(GPS_IO_SIMULATION);
+#endif
#endif
- _gps->io.conn = RCVR_OFF;
timezone_init();
gpx_init();
variables_init();