2013-01-06 13:52:12 +00:00
|
|
|
/*** 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;
|
2013-01-06 13:52:12 +00:00
|
|
|
|
2016-06-22 15:59:53 +00:00
|
|
|
if (g_once_init_enter(&g_define_type_id__volatile)) {
|
|
|
|
static const G@Type@Value values[] = {
|
2013-01-06 13:52:12 +00:00
|
|
|
/*** END value-header ***/
|
|
|
|
|
|
|
|
/*** BEGIN value-production ***/
|
2016-06-22 15:59:53 +00:00
|
|
|
{ @VALUENAME@, "@VALUENAME@", "@valuenick@" },
|
2013-01-06 13:52:12 +00:00
|
|
|
/*** END value-production ***/
|
|
|
|
|
|
|
|
/*** BEGIN value-tail ***/
|
2016-06-22 15:59:53 +00:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
2013-01-06 13:52:12 +00:00
|
|
|
|
2016-06-22 15:59:53 +00:00
|
|
|
GType g_define_type_id = g_@type@_register_static(
|
|
|
|
g_intern_static_string("@EnumName@"),
|
|
|
|
values);
|
2013-01-06 13:52:12 +00:00
|
|
|
|
2016-06-22 15:59:53 +00:00
|
|
|
g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
|
|
|
|
}
|
2013-01-06 13:52:12 +00:00
|
|
|
|
2016-06-22 15:59:53 +00:00
|
|
|
return g_define_type_id__volatile;
|
2013-01-06 13:52:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*** END value-tail ***/
|