|
| 1 | +/*** BEGIN file-header ***/ |
| 2 | +/* |
| 3 | + * Copyright (C) 2002,2003 Mike McCormack |
| 4 | + * |
| 5 | + * This library is free software; you can redistribute it and/or |
| 6 | + * modify it under the terms of the GNU Lesser General Public |
| 7 | + * License as published by the Free Software Foundation; either |
| 8 | + * version 2.1 of the License, or (at your option) any later version. |
| 9 | + * |
| 10 | + * This library is distributed in the hope that it will be useful, |
| 11 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | + * Lesser General Public License for more details. |
| 14 | + * |
| 15 | + * You should have received a copy of the GNU Lesser General Public |
| 16 | + * License along with this library; if not, write to the Free Software |
| 17 | + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
| 18 | + */ |
| 19 | + |
| 20 | +#include "libmsi-enums.h" |
| 21 | + |
| 22 | +/*** END file-header ***/ |
| 23 | + |
| 24 | +/*** BEGIN file-production ***/ |
| 25 | +#include "@filename@" |
| 26 | +/*** END file-production ***/ |
| 27 | + |
| 28 | + |
| 29 | +/*** BEGIN value-header ***/ |
| 30 | + |
| 31 | +GType |
| 32 | +@enum_name@_get_type (void) |
| 33 | +{ |
| 34 | + static volatile gsize g_define_type_id__volatile = 0; |
| 35 | + |
| 36 | + if (g_once_init_enter (&g_define_type_id__volatile)) |
| 37 | + { |
| 38 | + static const G@Type@Value values[] = { |
| 39 | +/*** END value-header ***/ |
| 40 | + |
| 41 | +/*** BEGIN value-production ***/ |
| 42 | + { @VALUENAME@, "@VALUENAME@", "@valuenick@" }, |
| 43 | +/*** END value-production ***/ |
| 44 | + |
| 45 | +/*** BEGIN value-tail ***/ |
| 46 | + { 0, NULL, NULL } |
| 47 | + }; |
| 48 | + GType g_define_type_id = |
| 49 | + g_@type@_register_static (g_intern_static_string ("@EnumName@"), values); |
| 50 | + g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); |
| 51 | + } |
| 52 | + |
| 53 | + return g_define_type_id__volatile; |
| 54 | +} |
| 55 | + |
| 56 | +/*** END value-tail ***/ |
0 commit comments