wmud/wmud/enumtypes.c.template

40 lines
931 B
Plaintext
Raw Normal View History

/*** BEGIN file-header ***/
#include "enumtypes.h"
#include "@filename@"
/*** END file-header ***/
/*** BEGIN file-production ***/
/* enumerations from "@filename@" */
/*** END file-production ***/
/*** BEGIN value-header ***/
GType
@enum_name@_get_type (void)
{
2016-06-22 15:59:53 +00:00
static volatile gsize g_define_type_id__volatile = 0;
2016-06-22 15:59:53 +00:00
if (g_once_init_enter(&g_define_type_id__volatile)) {
static const G@Type@Value values[] = {
/*** END value-header ***/
/*** BEGIN value-production ***/
2016-06-22 15:59:53 +00:00
{ @VALUENAME@, "@VALUENAME@", "@valuenick@" },
/*** END value-production ***/
/*** BEGIN value-tail ***/
2016-06-22 15:59:53 +00:00
{ 0, NULL, NULL }
};
2016-06-22 15:59:53 +00:00
GType g_define_type_id = g_@type@_register_static(
g_intern_static_string("@EnumName@"),
values);
2016-06-22 15:59:53 +00:00
g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
}
2016-06-22 15:59:53 +00:00
return g_define_type_id__volatile;
}
/*** END value-tail ***/