6391b9589b470c8cba90eac670b513157e8f43eb
[profile/ivi/gsignond.git] / src / common / gsignond-enum.c.template
1 /*** BEGIN file-header ***/
2 /*** END file-header ***/
3 /*** BEGIN file-production ***/
4 /* enumerations from "@filename@" */
5 #include "@filename@"
6
7 /*** END file-production ***/
8
9 /*** BEGIN value-header ***/
10 GType
11 @enum_name@_get_type (void)
12 {
13     static GType the_type = 0;
14
15     if (the_type == 0) {
16         static const G@Type@Value values[] = {
17 /*** END value-header ***/
18 /*** BEGIN value-production ***/
19             { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
20 /*** END value-production ***/
21 /*** BEGIN value-tail ***/
22             {0, NULL, NULL}
23         };
24
25         the_type = g_@type@_register_static (
26                         g_intern_static_string ("GSignond@EnumName@"),
27                         values);
28     }
29
30     return the_type;
31 }
32 /*** END value-tail ***/