diff options
Diffstat (limited to 'libmm-glib')
-rw-r--r-- | libmm-glib/mm-modem-simple-connect-properties.c | 8 | ||||
-rw-r--r-- | libmm-glib/mm-modem-simple-connect-properties.h | 2 | ||||
-rw-r--r-- | libmm-glib/mm-modem.c | 58 | ||||
-rw-r--r-- | libmm-glib/mm-modem.h | 30 |
4 files changed, 49 insertions, 49 deletions
diff --git a/libmm-glib/mm-modem-simple-connect-properties.c b/libmm-glib/mm-modem-simple-connect-properties.c index 5a48c958..ce5ddafb 100644 --- a/libmm-glib/mm-modem-simple-connect-properties.c +++ b/libmm-glib/mm-modem-simple-connect-properties.c @@ -34,13 +34,13 @@ mm_modem_simple_connect_properties_set_operator_id (MMModemSimpleConnectProperti } void -mm_modem_simple_connect_properties_set_allowed_bands (MMModemSimpleConnectProperties *self, - const MMModemBand *bands, - guint n_bands) +mm_modem_simple_connect_properties_set_bands (MMModemSimpleConnectProperties *self, + const MMModemBand *bands, + guint n_bands) { g_return_if_fail (MM_IS_MODEM_SIMPLE_CONNECT_PROPERTIES (self)); - mm_common_connect_properties_set_allowed_bands (self, bands, n_bands); + mm_common_connect_properties_set_bands (self, bands, n_bands); } void diff --git a/libmm-glib/mm-modem-simple-connect-properties.h b/libmm-glib/mm-modem-simple-connect-properties.h index 80d88f1a..b4e7c7a3 100644 --- a/libmm-glib/mm-modem-simple-connect-properties.h +++ b/libmm-glib/mm-modem-simple-connect-properties.h @@ -39,7 +39,7 @@ void mm_modem_simple_connect_properties_set_pin ( void mm_modem_simple_connect_properties_set_operator_id ( MMModemSimpleConnectProperties *properties, const gchar *operator_id); -void mm_modem_simple_connect_properties_set_allowed_bands ( +void mm_modem_simple_connect_properties_set_bands ( MMModemSimpleConnectProperties *properties, const MMModemBand *bands, guint n_bands); diff --git a/libmm-glib/mm-modem.c b/libmm-glib/mm-modem.c index bc1887ba..a27f6c29 100644 --- a/libmm-glib/mm-modem.c +++ b/libmm-glib/mm-modem.c @@ -680,20 +680,20 @@ mm_modem_get_supported_bands (MMModem *self, } /** - * mm_modem_get_allowed_bands: + * mm_modem_get_bands: * @self: A #MMModem. * @bands: (out): Return location for the array of #MMModemBand values. * @n_bands: (out): Return location for the number of values in @bands. * * Gets the list of radio frequency and technology bands the #MMModem is currently - * allowed to use when connecting to a network. + * using when connecting to a network. * * For POTS devices, only the #MM_MODEM_BAND_ANY band is supported. */ void -mm_modem_get_allowed_bands (MMModem *self, - MMModemBand **bands, - guint *n_bands) +mm_modem_get_bands (MMModem *self, + MMModemBand **bands, + guint *n_bands) { GArray *array; @@ -701,7 +701,7 @@ mm_modem_get_allowed_bands (MMModem *self, g_return_if_fail (bands != NULL); g_return_if_fail (n_bands != NULL); - array = mm_common_bands_variant_to_garray (mm_gdbus_modem_get_allowed_bands (self)); + array = mm_common_bands_variant_to_garray (mm_gdbus_modem_get_bands (self)); *n_bands = array->len; *bands = (MMModemBand *)g_array_free (array, FALSE); } @@ -1555,44 +1555,44 @@ mm_modem_set_allowed_modes_sync (MMModem *self, } gboolean -mm_modem_set_allowed_bands_finish (MMModem *self, - GAsyncResult *res, - GError **error) +mm_modem_set_bands_finish (MMModem *self, + GAsyncResult *res, + GError **error) { g_return_val_if_fail (MM_GDBUS_IS_MODEM (self), FALSE); - return mm_gdbus_modem_call_set_allowed_bands_finish (self, - res, - error); + return mm_gdbus_modem_call_set_bands_finish (self, + res, + error); } void -mm_modem_set_allowed_bands (MMModem *self, - const MMModemBand *bands, - guint n_bands, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data) +mm_modem_set_bands (MMModem *self, + const MMModemBand *bands, + guint n_bands, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) { g_return_if_fail (MM_GDBUS_IS_MODEM (self)); - mm_gdbus_modem_call_set_allowed_bands (self, - mm_common_bands_array_to_variant (bands, n_bands), - cancellable, - callback, - user_data); + mm_gdbus_modem_call_set_bands (self, + mm_common_bands_array_to_variant (bands, n_bands), + cancellable, + callback, + user_data); } gboolean -mm_modem_set_allowed_bands_sync (MMModem *self, - const MMModemBand *bands, - guint n_bands, - GCancellable *cancellable, - GError **error) +mm_modem_set_bands_sync (MMModem *self, + const MMModemBand *bands, + guint n_bands, + GCancellable *cancellable, + GError **error) { g_return_val_if_fail (MM_GDBUS_IS_MODEM (self), FALSE); - return (mm_gdbus_modem_call_set_allowed_bands_sync ( + return (mm_gdbus_modem_call_set_bands_sync ( self, mm_common_bands_array_to_variant (bands, n_bands), cancellable, diff --git a/libmm-glib/mm-modem.h b/libmm-glib/mm-modem.h index 90c33e91..5f105040 100644 --- a/libmm-glib/mm-modem.h +++ b/libmm-glib/mm-modem.h @@ -74,7 +74,7 @@ MMModemMode mm_modem_get_preferred_mode (MMModem *self); void mm_modem_get_supported_bands (MMModem *self, MMModemBand **bands, guint *n_bands); -void mm_modem_get_allowed_bands (MMModem *self, +void mm_modem_get_bands (MMModem *self, MMModemBand **bands, guint *n_bands); @@ -191,20 +191,20 @@ gboolean mm_modem_set_allowed_modes_sync (MMModem *self, GCancellable *cancellable, GError **error); -void mm_modem_set_allowed_bands (MMModem *self, - const MMModemBand *bands, - guint n_bands, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); -gboolean mm_modem_set_allowed_bands_finish (MMModem *self, - GAsyncResult *res, - GError **error); -gboolean mm_modem_set_allowed_bands_sync (MMModem *self, - const MMModemBand *bands, - guint n_bands, - GCancellable *cancellable, - GError **error); +void mm_modem_set_bands (MMModem *self, + const MMModemBand *bands, + guint n_bands, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean mm_modem_set_bands_finish (MMModem *self, + GAsyncResult *res, + GError **error); +gboolean mm_modem_set_bands_sync (MMModem *self, + const MMModemBand *bands, + guint n_bands, + GCancellable *cancellable, + GError **error); void mm_modem_get_sim (MMModem *self, GCancellable *cancellable, |