libmm-glib: new helper method to build a string with access technologies

This commit is contained in:
Aleksander Morgado
2012-03-15 14:14:35 +01:00
parent 4495ba180e
commit 52c5f6051b
2 changed files with 15 additions and 0 deletions
+14
View File
@@ -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);
}
+1
View File
@@ -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