aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-location.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-06-29 22:47:40 -0700
committerDan Williams <dcbw@redhat.com>2010-06-29 22:47:40 -0700
commit88ee478bb659e6660b3bca1e8f2bd45b667a603b (patch)
tree0fae0c67c5099de697402d1152361dd98953189f /src/mm-modem-location.h
parent655bf7a9faf6125760bc109d9f4f38ce9143a82b (diff)
gsm: implement location API
Depends on dbus-glib 0.86 + this patch: https://bugs.freedesktop.org/show_bug.cgi?id=28835 Still have to do the bits that allow plugins to add other location capabilities, but that can come later.
Diffstat (limited to 'src/mm-modem-location.h')
-rw-r--r--src/mm-modem-location.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mm-modem-location.h b/src/mm-modem-location.h
index dd622f18..7b8399f2 100644
--- a/src/mm-modem-location.h
+++ b/src/mm-modem-location.h
@@ -23,6 +23,10 @@
#define MM_IS_MODEM_LOCATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_MODEM_LOCATION))
#define MM_MODEM_LOCATION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), MM_TYPE_MODEM_LOCATION, MMModemLocation))
+#define MM_MODEM_LOCATION_DBUS_INTERFACE "org.freedesktop.ModemManager.Modem.Location"
+
+#define MM_MODEM_LOCATION_PROP_TYPE (dbus_g_type_get_map ("GHashTable", G_TYPE_UINT, G_TYPE_VALUE))
+
#define MM_MODEM_LOCATION_CAPABILITIES "location-capabilities"
#define MM_MODEM_LOCATION_ENABLED "location-enabled"
#define MM_MODEM_LOCATION_SIGNALS_LOCATION "signals-location"
@@ -32,8 +36,9 @@ typedef enum {
MM_MODEM_LOCATION_CAPABILITY_UNKNOWN = 0x00000000,
MM_MODEM_LOCATION_CAPABILITY_GPS_NMEA = 0x00000001,
MM_MODEM_LOCATION_CAPABILITY_GSM_LAC_CI = 0x00000002,
+ MM_MODEM_LOCATION_CAPABILITY_GPS_RAW = 0x00000004,
- MM_MODEM_LOCATION_CAPABILITY_LAST = MM_MODEM_LOCATION_CAPABILITY_GSM_LAC_CI
+ MM_MODEM_LOCATION_CAPABILITY_LAST = MM_MODEM_LOCATION_CAPABILITY_GPS_RAW
} MMModemLocationCapabilities;
typedef struct _MMModemLocation MMModemLocation;