Debian Codegraph @

glib/gobject/glib-enumtypes.c.template

raw
1 /*** BEGIN file-header ***/
2 #include "config.h"
3 #include "glib-enumtypes.h"
4 #include <glib-object.h>
5
6 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
7
8 /*** END file-header ***/
9
10 /*** BEGIN file-tail ***/
11
12 G_GNUC_END_IGNORE_DEPRECATIONS
13
14 /*** END file-tail ***/
15
16 /*** BEGIN file-production ***/
17 /* enumerations from "@filename@" */
18
19 /*** END file-production ***/
20
21 /*** BEGIN value-header ***/
22 GType
23 @enum_name@_get_type (void)
24 {
25 static GType static_g_define_type_id = 0;
26
27 if (g_once_init_enter_pointer (&static_g_define_type_id))
28 {
29 static const G@Type@Value values[] = {
30 /*** END value-header ***/
31
32 /*** BEGIN value-production ***/
33 { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
34 /*** END value-production ***/
35
36 /*** BEGIN value-tail ***/
37 { 0, NULL, NULL }
38 };
39 GType g_define_type_id =
40 g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
41 g_once_init_leave_pointer (&static_g_define_type_id, g_define_type_id);
42 }
43
44 return static_g_define_type_id;
45 }
46
47 /*** END value-tail ***/