libmm-glib: new API method to build a string of capabilities from a bitmask
This commit is contained in:
@@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
#include <gio/gio.h>
|
#include <gio/gio.h>
|
||||||
|
|
||||||
|
#include <mm-common-helpers.h>
|
||||||
|
|
||||||
#include "mm-modem.h"
|
#include "mm-modem.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1220,3 +1222,17 @@ mm_modem_get_sim_sync (MMModem *self,
|
|||||||
cancellable,
|
cancellable,
|
||||||
error));
|
error));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* mm_modem_get_capabilities_string:
|
||||||
|
* @caps: Bitmask of #MMModemCapability flags.
|
||||||
|
*
|
||||||
|
* Build a string with a list of capabilities.
|
||||||
|
*
|
||||||
|
* Returns: (transfer full): A string specifying the capabilities given in @caps. The returned value should be freed with g_free().
|
||||||
|
*/
|
||||||
|
gchar *
|
||||||
|
mm_modem_get_capabilities_string (MMModemCapability caps)
|
||||||
|
{
|
||||||
|
return mm_common_get_capabilities_string (caps);
|
||||||
|
}
|
||||||
|
@@ -60,7 +60,7 @@ const gchar *mm_modem_get_plugin (MMModem *self);
|
|||||||
gchar *mm_modem_dup_plugin (MMModem *self);
|
gchar *mm_modem_dup_plugin (MMModem *self);
|
||||||
const gchar *mm_modem_get_equipment_identifier (MMModem *self);
|
const gchar *mm_modem_get_equipment_identifier (MMModem *self);
|
||||||
gchar *mm_modem_dup_equipment_identifier (MMModem *self);
|
gchar *mm_modem_dup_equipment_identifier (MMModem *self);
|
||||||
guint mm_modem_get_unlock_required (MMModem *self);
|
MMModemLock mm_modem_get_unlock_required (MMModem *self);
|
||||||
guint mm_modem_get_unlock_retries (MMModem *self);
|
guint mm_modem_get_unlock_retries (MMModem *self);
|
||||||
MMModemState mm_modem_get_state (MMModem *self);
|
MMModemState mm_modem_get_state (MMModem *self);
|
||||||
MMModemAccessTech mm_modem_get_access_technology (MMModem *self);
|
MMModemAccessTech mm_modem_get_access_technology (MMModem *self);
|
||||||
@@ -185,6 +185,8 @@ MMSim *mm_modem_get_sim_sync (MMModem *self,
|
|||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
|
gchar *mm_modem_get_capabilities_string (MMModemCapability caps);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* _MM_MODEM_H_ */
|
#endif /* _MM_MODEM_H_ */
|
||||||
|
Reference in New Issue
Block a user