aboutsummaryrefslogtreecommitdiff
path: root/src/mm-generic-gsm.h
diff options
context:
space:
mode:
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);