Debian Codegraph @

common/flatpak-enum-types.c.template

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