From: Kaj-Michael Lang Date: Thu, 24 Jan 2008 13:11:53 +0000 (+0200) Subject: Add gps_set_type, remove global dbus rfcomm X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc36cef6e333ba55e12a9368a158c055356605b4;p=mapper Add gps_set_type, remove global dbus rfcomm --- diff --git a/src/gps.c b/src/gps.c index b2e2635..54e156e 100644 --- a/src/gps.c +++ b/src/gps.c @@ -89,6 +89,12 @@ if (address) gps->io.port=port; } +void +gps_set_type(Gps *gps, GpsIOSourceType type) +{ +gps->io.type=type; +} + void gps_free(Gps *gps) { diff --git a/src/gps.h b/src/gps.h index 0611468..da92763 100644 --- a/src/gps.h +++ b/src/gps.h @@ -97,10 +97,9 @@ struct _Gps { Gps *_gps; gint _gmtoffset; -DBusGProxy *_rfcomm_req_proxy; - Gps *gps_new(GpsIOSourceType type); void gps_set_address(Gps *gps, gchar *address, guint port); +void gps_set_type(Gps *gps, GpsIOSourceType type); void gps_free(Gps *gps); void gps_data_integerize(GpsData *gpsdata); gboolean gps_connect(Gps *gps);