1 /*** BEGIN file-header ***/
2 #ifndef JSON_COMPILATION
3 #define JSON_COMPILATION
7 #include "json-enum-types.h"
8 /*** END file-header ***/
10 /*** BEGIN file-production ***/
12 /* enumerations from "@filename@" */
15 /*** END file-production ***/
17 /*** BEGIN value-header ***/
19 @enum_name@_get_type (void)
21 static volatile gsize g_enum_type_id__volatile = 0;
23 if (g_once_init_enter (&g_enum_type_id__volatile))
25 static const G@Type@Value values[] = {
26 /*** END value-header ***/
28 /*** BEGIN value-production ***/
29 { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
30 /*** END value-production ***/
32 /*** BEGIN value-tail ***/
36 GType g_enum_type_id =
37 g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
39 g_once_init_leave (&g_enum_type_id__volatile, g_enum_type_id);
42 return g_enum_type_id__volatile;
44 /*** END value-tail ***/