aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-signal.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-08-01 13:37:38 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-08-21 12:34:54 +0200
commit71c60fc6eb4f341e9785172d73c16613f79ba4a5 (patch)
tree4eeb6c57b4dbf526b1c1f5be6bb0173c0b7ccfd8 /src/mm-iface-modem-signal.h
parentca8a414668e5caf55970664855f796632d467260 (diff)
iface-modem-signal: use the new 'MMSignal' in the interface implementation
Also modify the QMI-specific implementation to act as a state machine, as we'll add more steps afterwards.
Diffstat (limited to 'src/mm-iface-modem-signal.h')
-rw-r--r--src/mm-iface-modem-signal.h26
1 files changed, 8 insertions, 18 deletions
diff --git a/src/mm-iface-modem-signal.h b/src/mm-iface-modem-signal.h
index 3324fdea..1d49e5f3 100644
--- a/src/mm-iface-modem-signal.h
+++ b/src/mm-iface-modem-signal.h
@@ -19,6 +19,9 @@
#include <glib-object.h>
#include <gio/gio.h>
+#define _LIBMM_INSIDE_MM
+#include <libmm-glib.h>
+
#define MM_TYPE_IFACE_MODEM_SIGNAL (mm_iface_modem_signal_get_type ())
#define MM_IFACE_MODEM_SIGNAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_IFACE_MODEM_SIGNAL, MMIfaceModemSignal))
#define MM_IS_IFACE_MODEM_SIGNAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_IFACE_MODEM_SIGNAL))
@@ -46,24 +49,11 @@ struct _MMIfaceModemSignal {
gpointer user_data);
gboolean (* load_values_finish) (MMIfaceModemSignal *self,
GAsyncResult *res,
- gboolean *cdma_available,
- gdouble *cdma_rssi,
- gdouble *cdma_ecio,
- gboolean *evdo_available,
- gdouble *evdo_rssi,
- gdouble *evdo_ecio,
- gdouble *evdo_sinr,
- gdouble *evdo_io,
- gboolean *gsm_available,
- gdouble *gsm_rssi,
- gboolean *umts_available,
- gdouble *umts_rssi,
- gdouble *umts_ecio,
- gboolean *lte_available,
- gdouble *lte_rssi,
- gdouble *lte_rsrq,
- gdouble *lte_rsrp,
- gdouble *lte_snr,
+ MMSignal **cdma,
+ MMSignal **evdo,
+ MMSignal **gsm,
+ MMSignal **umts,
+ MMSignal **lte,
GError **error);
};