Debian Codegraph @

src/alarm-glib-enums.c.etemplate

raw
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Virt Viewer: A virtual machine console viewer
4 *
5 * Copyright (C) 2007-2012 Red Hat, Inc.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 *
21 * Author: Marc-AndrĂ© Lureau <[email protected]>
22 */
23 /*** BEGIN file-header ***/
24 /*** END file-header ***/
25
26 /*** BEGIN file-production ***/
27 #include "@filename@"
28 #include "alarm-glib-enums.h"
29 /*** END file-production ***/
30
31
32 /*** BEGIN value-header ***/
33
34 GType
35 @enum_name@_get_type(void)
36 {
37 static gsize g_define_type_id__cache = 0;
38
39 if (g_once_init_enter(&g_define_type_id__cache))
40 {
41 static const G@Type@Value values[] = {
42 /*** END value-header ***/
43
44 /*** BEGIN value-production ***/
45 { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
46 /*** END value-production ***/
47
48 /*** BEGIN value-tail ***/
49 { 0, NULL, NULL }
50 };
51 GType g_define_type_id =
52 g_@type@_register_static(g_intern_static_string("@EnumName@"), values);
53 g_once_init_leave(&g_define_type_id__cache, g_define_type_id);
54 }
55
56 return g_define_type_id__cache;
57 }
58
59 /*** END value-tail ***/