1 /*** BEGIN file-header ***/
3 * Copyright © 2007 Red Hat, Inc.
5 * SPDX-License-Identifier: LGPL-2.1-or-later
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library 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 GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General
18 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
20 * Authors: Matthias Clasen <mclasen@redhat.com>
23 #ifndef GLIB_DISABLE_DEPRECATION_WARNINGS
24 #define GLIB_DISABLE_DEPRECATION_WARNINGS
28 #include "gioenumtypes.h"
31 /*** END file-header ***/
33 /*** BEGIN file-production ***/
34 /* enumerations from "@filename@" */
35 /*** END file-production ***/
37 /*** BEGIN value-header ***/
39 @enum_name@_get_type (void)
41 static gsize static_g_define_type_id = 0;
43 if (g_once_init_enter (&static_g_define_type_id))
45 static const G@Type@Value values[] = {
46 /*** END value-header ***/
48 /*** BEGIN value-production ***/
49 { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
50 /*** END value-production ***/
52 /*** BEGIN value-tail ***/
55 GType g_define_type_id =
56 g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
57 g_once_init_leave (&static_g_define_type_id, g_define_type_id);
60 return static_g_define_type_id;
63 /*** END value-tail ***/