diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2023-04-27 09:37:39 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2023-04-27 10:01:49 +0000 |
commit | 8d2415d2a529d2ab17fbd501ce5e7f94d496292e (patch) | |
tree | 48295d711745e375d4efe097912b4f9059cab109 /build-aux/templates/mbim-flag-types.h.template | |
parent | a1ce19926cc60438ea2b9fd815c178b75f9436bf (diff) | |
download | libmbim-8d2415d2a529d2ab17fbd501ce5e7f94d496292e.tar.gz |
libmbim-glib: separate files for flags and enums types
This allows us to skip needing to include the non-existent
build_string_from_mask() or get_string() counterparts in the
documentation index.
Diffstat (limited to 'build-aux/templates/mbim-flag-types.h.template')
-rw-r--r-- | build-aux/templates/mbim-flag-types.h.template | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/build-aux/templates/mbim-flag-types.h.template b/build-aux/templates/mbim-flag-types.h.template new file mode 100644 index 0000000..4742b6d --- /dev/null +++ b/build-aux/templates/mbim-flag-types.h.template @@ -0,0 +1,38 @@ +/*** BEGIN file-header ***/ + +#include <glib-object.h> + +G_BEGIN_DECLS +/*** END file-header ***/ + +/*** BEGIN file-production ***/ + +/* enumerations from "@filename@" */ +/*** END file-production ***/ + +/*** BEGIN value-header ***/ +GType @enum_name@_get_type (void) G_GNUC_CONST; +#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ()) + +/* Define type-specific symbols */ +#define __@ENUMNAME@_IS_@TYPE@__ + +/** + * @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(). + * + * Since: @enumsince@ + */ +gchar *@enum_name@_build_string_from_mask (@EnumName@ mask); + +/*** END value-header ***/ + +/*** BEGIN file-tail ***/ +G_END_DECLS + +/*** END file-tail ***/ |