aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-modem-location.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-06-24 10:14:17 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-07-01 01:10:39 +0200
commitf226b6330115c39c3b209f84452729a0e412da24 (patch)
tree6a6e96884301ac3fc399c068a10226c56aea9c79 /libmm-glib/mm-modem-location.h
parent4e4cb6d66acaec56960948ad3adfe7df359d2807 (diff)
libmm-glib,location: new signaled location API support
We allow clients to receive asynchronous updates of location information, e.g. if "location signaling" is explicitly enabled (with the setup() method). But if so, we should also allow clients to easily process those asynchronous updates in the libmm-glib library, instead of requiring them to run explicit DBus queries to refresh the location information. These new signaled location APIs allow clients to do so; they can enable location signaling, and then just wait for the updates to arrive.
Diffstat (limited to 'libmm-glib/mm-modem-location.h')
-rw-r--r--libmm-glib/mm-modem-location.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/libmm-glib/mm-modem-location.h b/libmm-glib/mm-modem-location.h
index 7cd69461..142c34e8 100644
--- a/libmm-glib/mm-modem-location.h
+++ b/libmm-glib/mm-modem-location.h
@@ -47,6 +47,7 @@ G_BEGIN_DECLS
typedef struct _MMModemLocation MMModemLocation;
typedef struct _MMModemLocationClass MMModemLocationClass;
+typedef struct _MMModemLocationPrivate MMModemLocationPrivate;
/**
* MMModemLocation:
@@ -56,8 +57,8 @@ typedef struct _MMModemLocationClass MMModemLocationClass;
*/
struct _MMModemLocation {
/*< private >*/
- MmGdbusModemLocationProxy parent;
- gpointer unused;
+ MmGdbusModemLocationProxy parent;
+ MMModemLocationPrivate *priv;
};
struct _MMModemLocationClass {
@@ -206,6 +207,15 @@ gboolean mm_modem_location_get_full_sync (MMModemLocation *self,
GCancellable *cancellable,
GError **error);
+MMLocation3gpp *mm_modem_location_peek_signaled_3gpp (MMModemLocation *self);
+MMLocation3gpp *mm_modem_location_get_signaled_3gpp (MMModemLocation *self);
+MMLocationGpsNmea *mm_modem_location_peek_signaled_gps_nmea (MMModemLocation *self);
+MMLocationGpsNmea *mm_modem_location_get_signaled_gps_nmea (MMModemLocation *self);
+MMLocationGpsRaw *mm_modem_location_peek_signaled_gps_raw (MMModemLocation *self);
+MMLocationGpsRaw *mm_modem_location_get_signaled_gps_raw (MMModemLocation *self);
+MMLocationCdmaBs *mm_modem_location_peek_signaled_cdma_bs (MMModemLocation *self);
+MMLocationCdmaBs *mm_modem_location_get_signaled_cdma_bs (MMModemLocation *self);
+
G_END_DECLS
#endif /* _MM_MODEM_LOCATION_H_ */