aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-12-20 18:49:23 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:35 +0100
commit52c5f6051bb12800194023afdb2a01109c035a8e (patch)
tree112d2c3ed8ce212fd893785656625805b2052c33
parent4495ba180e9d39ff8ae113387cc69eb3004b5612 (diff)
libmm-glib: new helper method to build a string with access technologies
-rw-r--r--libmm-glib/mm-modem.c14
-rw-r--r--libmm-glib/mm-modem.h1
2 files changed, 15 insertions, 0 deletions
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