aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/templates/qmi-enum-types-template.h
blob: bdcd4e7da11481984674742d90abf9d806a8c9f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*** 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 */
#undef __QMI_IS_ENUM__
#undef __QMI_IS_FLAGS_
#define __QMI_IS_@TYPE@__

#if defined __QMI_IS_ENUM__
const gchar *@enum_name@_get_string (@EnumName@ val);
#endif

#if defined __QMI_IS_FLAGS__
gchar *@enum_name@_build_string_from_mask (@EnumName@ mask);
#endif

/*** END value-header ***/

/*** BEGIN file-tail ***/
G_END_DECLS

/*** END file-tail ***/