updated changelog
[platform/upstream/evolution-data-server.git] / enumtypes.c.template
1 /*** BEGIN file-header ***/
2 /*** END file-header ***/
3
4 /*** BEGIN file-production ***/
5 /* enumerations from "@filename@" */
6 #include "@filename@"
7
8 /*** END file-production ***/
9
10 /*** BEGIN value-header ***/
11 GType
12 @enum_name@_get_type (void)
13 {
14         static volatile gsize the_type__volatile = 0;
15
16         if (g_once_init_enter (&the_type__volatile)) {
17                 static const G@Type@Value values[] = {
18 /*** END value-header ***/
19
20 /*** BEGIN value-production ***/
21                         { @VALUENAME@,
22                           "@VALUENAME@",
23                           "@valuenick@" },
24 /*** END value-production ***/
25
26 /*** BEGIN value-tail ***/
27                         { 0, NULL, NULL }
28                 };
29                 GType the_type = g_@type@_register_static (
30                         g_intern_static_string ("@EnumName@"),
31                         values);
32                 g_once_init_leave (&the_type__volatile, the_type);
33         }
34         return the_type__volatile;
35 }
36
37 /*** END value-tail ***/