Debian Codegraph @

src/mp-enums.c.template

raw
1 /*** BEGIN file-header ***/
2 #include "mp-serializer.h"
3 #include "mp-enums.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 math_@enum_name@_get_type (void)
14 {
15 static GType etype = 0;
16 if (G_UNLIKELY(etype == 0)) {
17 static const G@Type@Value values[] = {
18 /*** END value-header ***/
19
20 /*** BEGIN value-production ***/
21 { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
22 /*** END value-production ***/
23
24 /*** BEGIN value-tail ***/
25 { 0, NULL, NULL }
26 };
27 etype = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
28 }
29 return etype;
30 }
31
32 /*** END value-tail ***/
33
34 /*** BEGIN file-tail ***/
35
36 /*** END file-tail ***/