zephyr: Remove unused defines and headers.
[pidgin-git.git] / libpurple / enums.c.in
blobdd05073b96e76d12f771d50b4d9bd9800c6ead35
1 /*** BEGIN file-header ***/
2 /* purple
4 * Purple is the legal property of its developers, whose names are too numerous
5 * to list here. Please refer to the COPYRIGHT file distributed with this
6 * source distribution.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
22 #if HAVE_CONFIG_H
23 # include "config.h"
24 #endif /* HAVE_CONFIG_H */
26 #include "enums.h"
28 /*** END file-header ***/
29 /*** BEGIN file-production ***/
31 /* enumerations from "@filename@" */
32 #include "@filename@"
34 /*** END file-production ***/
36 /*** BEGIN value-header ***/
37 GType
38 @enum_name@_get_type(void) {
39 static volatile gsize g_define_type_id__volatile = 0;
41 if(g_once_init_enter(&g_define_type_id__volatile)) {
42 static const G@Type@Value values [] = {
43 /*** END value-header ***/
45 /*** BEGIN value-production ***/
46 { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
47 /*** END value-production ***/
49 /*** BEGIN value-tail ***/
50 { 0, NULL, NULL }
53 GType g_define_type_id =
54 g_@type@_register_static(g_intern_static_string("@EnumName@"), values);
55 g_once_init_leave(&g_define_type_id__volatile, g_define_type_id);
58 return g_define_type_id__volatile;
61 /*** END value-tail ***/
63 /*** BEGIN file-tail ***/
64 /*** END file-tail ***/