aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/templates/qmi-flags64-types-template.c
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/templates/qmi-flags64-types-template.c')
-rw-r--r--build-aux/templates/qmi-flags64-types-template.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/build-aux/templates/qmi-flags64-types-template.c b/build-aux/templates/qmi-flags64-types-template.c
index e8feb96..c1c5491 100644
--- a/build-aux/templates/qmi-flags64-types-template.c
+++ b/build-aux/templates/qmi-flags64-types-template.c
@@ -22,6 +22,15 @@ static const GFlags64Value @enum_name@_values[] = {
{ 0, NULL, NULL }
};
+/**
+ * @enum_name@_build_string_from_mask:
+ * @mask: bitmask of @EnumName@ values.
+ *
+ * Builds a string containing a comma-separated list of nicknames for
+ * each #@EnumName@ in @mask.
+ *
+ * Returns: (transfer full): a string with the list of nicknames, or %NULL if none given. The returned value should be freed with g_free().
+ */
gchar *
@enum_name@_build_string_from_mask (@EnumName@ mask)
{