2018-11-19 21:10:09 +01:00
|
|
|
/*** BEGIN file-header ***/
|
|
|
|
#include "config.h"
|
2019-03-04 12:12:59 +01:00
|
|
|
#include "glib-enumtypes.h"
|
2018-11-19 21:10:09 +01:00
|
|
|
#include <glib-object.h>
|
|
|
|
|
2021-07-27 14:01:49 +02:00
|
|
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
|
|
|
|
2018-11-19 21:10:09 +01:00
|
|
|
/*** END file-header ***/
|
|
|
|
|
2021-07-27 14:01:49 +02:00
|
|
|
/*** BEGIN file-tail ***/
|
|
|
|
|
|
|
|
G_GNUC_END_IGNORE_DEPRECATIONS
|
|
|
|
|
|
|
|
/*** END file-tail ***/
|
|
|
|
|
2018-11-19 21:10:09 +01:00
|
|
|
/*** BEGIN file-production ***/
|
|
|
|
/* enumerations from "@filename@" */
|
2021-07-27 14:01:49 +02:00
|
|
|
|
2018-11-19 21:10:09 +01:00
|
|
|
/*** END file-production ***/
|
|
|
|
|
|
|
|
/*** BEGIN value-header ***/
|
|
|
|
GType
|
|
|
|
@enum_name@_get_type (void)
|
|
|
|
{
|
2020-11-11 19:12:22 +01:00
|
|
|
static gsize static_g_define_type_id = 0;
|
2018-11-19 21:10:09 +01:00
|
|
|
|
2020-11-11 19:12:22 +01:00
|
|
|
if (g_once_init_enter (&static_g_define_type_id))
|
2018-11-19 21:10:09 +01:00
|
|
|
{
|
|
|
|
static const G@Type@Value values[] = {
|
|
|
|
/*** END value-header ***/
|
|
|
|
|
|
|
|
/*** BEGIN value-production ***/
|
|
|
|
{ @VALUENAME@, "@VALUENAME@", "@valuenick@" },
|
|
|
|
/*** END value-production ***/
|
|
|
|
|
|
|
|
/*** BEGIN value-tail ***/
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
GType g_define_type_id =
|
|
|
|
g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
|
2020-11-11 19:12:22 +01:00
|
|
|
g_once_init_leave (&static_g_define_type_id, g_define_type_id);
|
2018-11-19 21:10:09 +01:00
|
|
|
}
|
|
|
|
|
2020-11-11 19:12:22 +01:00
|
|
|
return static_g_define_type_id;
|
2018-11-19 21:10:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/*** END value-tail ***/
|