1/*** BEGIN file-header ***/ 2#ifndef JSON_COMPILATION 3#define JSON_COMPILATION 4#endif 5 6#include "config.h" 7#include "json-enum-types.h" 8/*** END file-header ***/ 9 10/*** BEGIN file-production ***/ 11 12/* enumerations from "@basename@" */ 13#include "@basename@" 14 15/*** END file-production ***/ 16 17/*** BEGIN value-header ***/ 18GType 19@enum_name@_get_type (void) 20{ 21 static volatile gsize g_enum_type_id__volatile = 0; 22 23 if (g_once_init_enter (&g_enum_type_id__volatile)) 24 { 25 static const G@Type@Value values[] = { 26/*** END value-header ***/ 27 28/*** BEGIN value-production ***/ 29 { @VALUENAME@, "@VALUENAME@", "@valuenick@" }, 30/*** END value-production ***/ 31 32/*** BEGIN value-tail ***/ 33 { 0, NULL, NULL } 34 }; 35 36 GType g_enum_type_id = 37 g_@type@_register_static (g_intern_static_string ("@EnumName@"), values); 38 39 g_once_init_leave (&g_enum_type_id__volatile, g_enum_type_id); 40 } 41 42 return g_enum_type_id__volatile; 43} 44/*** END value-tail ***/ 45