aboutsummaryrefslogtreecommitdiff
path: root/src/mm-generic-gsm.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-generic-gsm.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-generic-gsm.h')
-rw-r--r--src/mm-generic-gsm.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/mm-generic-gsm.h b/src/mm-generic-gsm.h
index de9dc897..e967f045 100644
--- a/src/mm-generic-gsm.h
+++ b/src/mm-generic-gsm.h
@@ -17,6 +17,8 @@
#ifndef MM_GENERIC_GSM_H
#define MM_GENERIC_GSM_H
+#include <config.h>
+
#include "mm-modem-gsm.h"
#include "mm-modem-gsm-network.h"
#include "mm-modem-base.h"
@@ -46,7 +48,13 @@ typedef enum {
MM_GENERIC_GSM_PROP_SUPPORTED_MODES,
MM_GENERIC_GSM_PROP_INIT_CMD_OPTIONAL,
MM_GENERIC_GSM_PROP_ALLOWED_MODE,
- MM_GENERIC_GSM_PROP_ACCESS_TECHNOLOGY
+ MM_GENERIC_GSM_PROP_ACCESS_TECHNOLOGY,
+#if LOCATION_API
+ MM_GENERIC_GSM_PROP_LOC_CAPABILITIES,
+ MM_GENERIC_GSM_PROP_LOC_ENABLED,
+ MM_GENERIC_GSM_PROP_LOC_SIGNAL,
+ MM_GENERIC_GSM_PROP_LOC_LOCATION,
+#endif
} MMGenericGsmProp;
typedef enum {
@@ -110,6 +118,16 @@ typedef struct {
void (*get_access_technology) (MMGenericGsm *self,
MMModemUIntFn callback,
gpointer user_data);
+
+ /* Called by the generic class to get additional Location capabilities that
+ * subclasses may implement. The MM_MODEM_LOCATION_CAPABILITY_GSM_LAC_CI
+ * capabilities is automatically provided by the generic class, and
+ * subclasses should return a bitfield of additional location capabilities
+ * they support in the callback here.
+ */
+ void (*loc_get_capabilities) (MMGenericGsm *self,
+ MMModemUIntFn callback,
+ gpointer user_data);
} MMGenericGsmClass;
GType mm_generic_gsm_get_type (void);