From ec8da67921c648dbe2e3b82c2392f7196229c914 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 9 Dec 2011 17:27:56 +0100 Subject: libmm-glib: new API method to build a string of capabilities from a bitmask --- libmm-glib/mm-modem.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'libmm-glib/mm-modem.c') diff --git a/libmm-glib/mm-modem.c b/libmm-glib/mm-modem.c index 7e840805..1af1ab64 100644 --- a/libmm-glib/mm-modem.c +++ b/libmm-glib/mm-modem.c @@ -22,6 +22,8 @@ #include +#include + #include "mm-modem.h" /** @@ -1220,3 +1222,17 @@ mm_modem_get_sim_sync (MMModem *self, cancellable, 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); +} -- cgit v1.2.3-70-g09d2