]> err.no Git - mapper/blobdiff - src/gps.c
Fix GPS settings dialog so it works.
[mapper] / src / gps.c
index 3ef0ebf822700e7ae6c72d8db8365febfa65c7aa..227122e936a2c6611942171aa0a4d0f02809f425 100644 (file)
--- a/src/gps.c
+++ b/src/gps.c
@@ -65,6 +65,24 @@ static gboolean gps_connect_file(Gps *gps, gchar *file);
 #define GPSD_NMEA "r+\r\n"
 #define GPSD_PORT (2947)
 
+const GpsTypes gps_types[] = {
+       { GPS_IO_RFCOMM,                "Direct bluetooth connection", TRUE, TRUE},
+       { GPS_IO_HILDON_DBUS,   "Hildon D-Bus", TRUE, TRUE },
+       { GPS_IO_BLUEZ_DBUS,    "Blues D-Bus", TRUE, TRUE},
+       { GPS_IO_FILE,                  "File or device", FALSE, TRUE},
+       { GPS_IO_TCP,                   "TCP Connection", FALSE, TRUE},
+       { GPS_IO_GPSD,                  "GPSD", FALSE, TRUE},
+       { GPS_IO_GYPSY,                 "Gypsy", FALSE, TRUE},
+       { GPS_IO_SIMULATION,    "Simulation", FALSE, FALSE},
+       { 0 }
+};
+
+GpsTypes *
+gps_get_supported_types(void) 
+{
+return gps_types;
+}
+
 /**
  * Init GPS structure
  */