Each enum will have its own #_get_string (), and each flags will have its own #_build_string_from_mask ().
36 lines
687 B
C
36 lines
687 B
C
/*** 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 IS_ENUM
|
|
#undef IS_FLAGS
|
|
#define IS_@TYPE@
|
|
|
|
#if defined IS_ENUM
|
|
const gchar *@enum_name@_get_string (@EnumName@ val);
|
|
#endif
|
|
|
|
#if defined IS_FLAGS
|
|
gchar *@enum_name@_build_string_from_mask (@EnumName@ mask);
|
|
#endif
|
|
|
|
/*** END value-header ***/
|
|
|
|
/*** BEGIN file-tail ***/
|
|
G_END_DECLS
|
|
|
|
/*** END file-tail ***/
|