diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2023-04-27 10:43:15 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2023-04-27 10:43:15 +0000 |
commit | 1eba37dcd93c84fff9d63d975706a8b7f283eca4 (patch) | |
tree | 6a39d3bbb6977e548318066f2089db1f52287961 /build-aux/templates/qmi-flag-types-nodoc.h.template | |
parent | 4e5e10a1b78cc2a18529738f6a70ea95b447a253 (diff) | |
download | libqmi-1eba37dcd93c84fff9d63d975706a8b7f283eca4.tar.gz |
libqmi-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/qmi-flag-types-nodoc.h.template')
-rw-r--r-- | build-aux/templates/qmi-flag-types-nodoc.h.template | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/build-aux/templates/qmi-flag-types-nodoc.h.template b/build-aux/templates/qmi-flag-types-nodoc.h.template new file mode 100644 index 00000000..46319f3a --- /dev/null +++ b/build-aux/templates/qmi-flag-types-nodoc.h.template @@ -0,0 +1,27 @@ +/*** 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@__ + +gchar *@enum_name@_build_string_from_mask (@EnumName@ mask); + +/*** END value-header ***/ + +/*** BEGIN file-tail ***/ +G_END_DECLS + +/*** END file-tail ***/ |