| 1 |
/*** BEGIN file-header ***/ |
| 2 |
/* |
| 3 |
* Copyright © 2007 Red Hat, Inc. |
| 4 |
* |
| 5 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 6 |
* |
| 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. |
| 11 |
* |
| 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. |
| 16 |
* |
| 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/>. |
| 19 |
* |
| 20 |
* Authors: Matthias Clasen <[email protected]> |
| 21 |
*/ |
| 22 |
|
| 23 |
#ifndef GLIB_DISABLE_DEPRECATION_WARNINGS |
| 24 |
#define GLIB_DISABLE_DEPRECATION_WARNINGS |
| 25 |
#endif |
| 26 |
|
| 27 |
#include "config.h" |
| 28 |
#include "gioenumtypes.h" |
| 29 |
#include <gio.h> |
| 30 |
|
| 31 |
/*** END file-header ***/ |
| 32 |
|
| 33 |
/*** BEGIN file-production ***/ |
| 34 |
/* enumerations from "@basename@" */ |
| 35 |
/*** END file-production ***/ |
| 36 |
|
| 37 |
/*** BEGIN value-header ***/ |
| 38 |
GType |
| 39 |
@enum_name@_get_type (void) |
| 40 |
{ |
| 41 |
static GType static_g_define_type_id = 0; |
| 42 |
|
| 43 |
if (g_once_init_enter_pointer (&static_g_define_type_id)) |
| 44 |
{ |
| 45 |
static const G@Type@Value values[] = { |
| 46 |
/*** END value-header ***/ |
| 47 |
|
| 48 |
/*** BEGIN value-production ***/ |
| 49 |
{ @VALUENAME@, "@VALUENAME@", "@valuenick@" }, |
| 50 |
/*** END value-production ***/ |
| 51 |
|
| 52 |
/*** BEGIN value-tail ***/ |
| 53 |
{ 0, NULL, NULL } |
| 54 |
}; |
| 55 |
GType g_define_type_id = |
| 56 |
g_@type@_register_static (g_intern_static_string ("@EnumName@"), values); |
| 57 |
g_once_init_leave_pointer (&static_g_define_type_id, g_define_type_id); |
| 58 |
} |
| 59 |
|
| 60 |
return static_g_define_type_id; |
| 61 |
} |
| 62 |
|
| 63 |
/*** END value-tail ***/ |