aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-common-helpers.c
diff options
context:
space:
mode:
authorMichal Mazur <mkm@semihalf.com>2021-03-04 15:03:50 +0100
committerAleksander Morgado <aleksander@aleksander.es>2021-04-30 18:40:29 +0000
commitb1dde0aec39089161268452b54ea92737ae00aa5 (patch)
tree0ed358cf2ef8f7dce419e19011910697399edbab /libmm-glib/mm-common-helpers.c
parent2a2ae2819ceeb866eab587673f55cdae79b9f9d3 (diff)
libmm-glib: add helper to get 3gpp facility from string
Diffstat (limited to 'libmm-glib/mm-common-helpers.c')
-rw-r--r--libmm-glib/mm-common-helpers.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libmm-glib/mm-common-helpers.c b/libmm-glib/mm-common-helpers.c
index 8bfaa567..36412768 100644
--- a/libmm-glib/mm-common-helpers.c
+++ b/libmm-glib/mm-common-helpers.c
@@ -877,6 +877,16 @@ mm_common_get_apn_type_from_string (const gchar *str,
error);
}
+MMModem3gppFacility
+mm_common_get_3gpp_facility_from_string (const gchar *str,
+ GError **error)
+{
+ return _flags_from_string (MM_TYPE_MODEM_3GPP_FACILITY,
+ str,
+ MM_MODEM_3GPP_FACILITY_NONE,
+ error);
+}
+
GArray *
mm_common_oma_pending_network_initiated_sessions_variant_to_garray (GVariant *variant)
{