aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-modem.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-12-26 18:50:16 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:37 +0100
commit9d7e3de4cd7d607dc797b8b6adf93eb75a018b6e (patch)
tree762a58bcb685515756c1787fd72593eca83c9bad /libmm-glib/mm-modem.h
parenta142a209eca617cd3cf4edc6436408e1e9c9f878 (diff)
api: MMModemBand is now an enum, not flags
We don't want to handle bands as flags, in order to avoid the need of 64-bits for the enum. This change implies that setting allowed bands will be done by giving an array of uint32 values, signature "au".
Diffstat (limited to 'libmm-glib/mm-modem.h')
-rw-r--r--libmm-glib/mm-modem.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/libmm-glib/mm-modem.h b/libmm-glib/mm-modem.h
index da0c2199..f8dced67 100644
--- a/libmm-glib/mm-modem.h
+++ b/libmm-glib/mm-modem.h
@@ -70,8 +70,12 @@ guint mm_modem_get_signal_quality (MMModem *self,
MMModemMode mm_modem_get_supported_modes (MMModem *self);
MMModemMode mm_modem_get_allowed_modes (MMModem *self);
MMModemMode mm_modem_get_preferred_mode (MMModem *self);
-MMModemBand mm_modem_get_supported_bands (MMModem *self);
-MMModemBand mm_modem_get_allowed_bands (MMModem *self);
+void mm_modem_get_supported_bands (MMModem *self,
+ MMModemBand **bands,
+ guint *n_bands);
+void mm_modem_get_allowed_bands (MMModem *self,
+ MMModemBand **bands,
+ guint *n_bands);
void mm_modem_enable (MMModem *self,
GCancellable *cancellable,
@@ -181,7 +185,8 @@ gboolean mm_modem_set_allowed_modes_sync (MMModem *self,
GError **error);
void mm_modem_set_allowed_bands (MMModem *self,
- MMModemBand bands,
+ const MMModemBand *bands,
+ guint n_bands,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
@@ -189,7 +194,8 @@ gboolean mm_modem_set_allowed_bands_finish (MMModem *self,
GAsyncResult *res,
GError **error);
gboolean mm_modem_set_allowed_bands_sync (MMModem *self,
- MMModemBand bands,
+ const MMModemBand *bands,
+ guint n_bands,
GCancellable *cancellable,
GError **error);