From 52c5f6051bb12800194023afdb2a01109c035a8e Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 20 Dec 2011 18:49:23 +0100 Subject: [PATCH] libmm-glib: new helper method to build a string with access technologies --- libmm-glib/mm-modem.c | 14 ++++++++++++++ libmm-glib/mm-modem.h | 1 + 2 files changed, 15 insertions(+) diff --git a/libmm-glib/mm-modem.c b/libmm-glib/mm-modem.c index b2a5945d..59533cc6 100644 --- a/libmm-glib/mm-modem.c +++ b/libmm-glib/mm-modem.c @@ -1658,3 +1658,17 @@ mm_modem_get_capabilities_string (MMModemCapability caps) { return mm_common_get_capabilities_string (caps); } + +/** + * mm_modem_get_access_technologies_string: + * @access_tech: Bitmask of #MMModemAccessTechnology flags. + * + * Build a string with a list of access technologies. + * + * Returns: (transfer full): A string specifying the access technologies given in @access_tech. The returned value should be freed with g_free(). + */ +gchar * +mm_modem_get_access_technologies_string (MMModemAccessTechnology access_tech) +{ + return mm_common_get_access_technologies_string (access_tech); +} diff --git a/libmm-glib/mm-modem.h b/libmm-glib/mm-modem.h index e5f301c2..4c500eed 100644 --- a/libmm-glib/mm-modem.h +++ b/libmm-glib/mm-modem.h @@ -204,6 +204,7 @@ MMSim *mm_modem_get_sim_sync (MMModem *self, GError **error); gchar *mm_modem_get_capabilities_string (MMModemCapability caps); +gchar *mm_modem_get_access_technologies_string (MMModemAccessTechnology access_tech); G_END_DECLS