diff options
Diffstat (limited to 'libmm-glib/mm-common-helpers.c')
-rw-r--r-- | libmm-glib/mm-common-helpers.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libmm-glib/mm-common-helpers.c b/libmm-glib/mm-common-helpers.c index a3cd16ab..8673421d 100644 --- a/libmm-glib/mm-common-helpers.c +++ b/libmm-glib/mm-common-helpers.c @@ -722,6 +722,20 @@ mm_common_bands_garray_cmp (GArray *a, GArray *b) return !different; } +gboolean +mm_common_bands_garray_lookup (GArray *array, + MMModemBand value) +{ + guint i; + + for (i = 0; i < array->len; i++) { + if (value == g_array_index (array, MMModemBand, i)) + return TRUE; + } + + return FALSE; +} + void mm_common_bands_garray_sort (GArray *array) { |