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