diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-12-26 21:31:07 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:37 +0100 |
commit | dcecb94631935584919c2cce6a814b78772ac0aa (patch) | |
tree | 20426d55f445a56f0a8a46a55509ad32d789f511 /libmm-common/mm-common-helpers.h | |
parent | 034381250277751741f134123fc61c0c5405adea (diff) |
libmm-common,libmm-glib: new object to handle properties in simple Connect()
Instead of using type unsafe properties passed to the connect() call, we build
a new object which does the handling of the properties to be passed.
Diffstat (limited to 'libmm-common/mm-common-helpers.h')
-rw-r--r-- | libmm-common/mm-common-helpers.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libmm-common/mm-common-helpers.h b/libmm-common/mm-common-helpers.h index 1c3dcc28..077828e1 100644 --- a/libmm-common/mm-common-helpers.h +++ b/libmm-common/mm-common-helpers.h @@ -25,10 +25,14 @@ gchar *mm_common_get_modes_string (MMModemMode mode); gchar *mm_common_get_bands_string (const MMModemBand *bands, guint n_bands); -MMModemMode mm_common_get_modes_from_string (const gchar *str); +MMModemMode mm_common_get_modes_from_string (const gchar *str, + GError **error); void mm_common_get_bands_from_string (const gchar *str, MMModemBand **bands, - guint *n_bands); + guint *n_bands, + GError **error); +gboolean mm_common_get_boolean_from_string (const gchar *value, + GError **error); GArray *mm_common_bands_variant_to_garray (GVariant *variant); GVariant *mm_common_bands_array_to_variant (const MMModemBand *bands, |