6f646c23a53e8497bf78ef31f2aa25fff659ba01
[obnox/wireshark/wip.git] / plugins / lua / elua_plugin.c
1 /*
2  * plugin.c
3  *
4  * Ethereal's interface to the Lua Programming Language
5  *
6  * (c) 2006, Luis E. Garcia Ontanon <luis.ontanon@gmail.com>
7  *
8  * $Id$
9  *
10  * Wireshark - Network traffic analyzer
11  * By Gerald Combs <gerald@wireshark.org>
12  * Copyright 1998 Gerald Combs
13  *
14  * This program is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU General Public License
16  * as published by the Free Software Foundation; either version 2
17  * of the License, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with this program; if not, write to the Free Software
26  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
27  */
28
29 #ifdef HAVE_CONFIG_H
30 #include "config.h"
31 #endif
32
33 #ifndef ENABLE_STATIC
34 #ifdef PACKAGE
35 #undef PACKAGE
36 #endif
37
38 /* Name of package */
39 #ifdef HAVE_LUA_5_1
40 #define PACKAGE "lua_plugin_5.1"
41 #else
42 #define PACKAGE "lua_plugin_5.0.2"
43 #endif
44
45 #ifdef VERSION
46 #undef VERSION
47 #endif
48
49 /* Version number of package */
50 #ifdef HAVE_LUA_5_1
51 #define VERSION "510.0.1"
52 #else
53 #define VERSION "502.0.1"
54 #endif
55
56
57 #include <gmodule.h>
58 #endif
59 #include <glib.h>
60
61 void proto_register_lua(void);
62
63 static gboolean initialized = FALSE;
64
65 #ifndef ENABLE_STATIC
66 G_MODULE_EXPORT const gchar version[] = VERSION;
67
68 G_MODULE_EXPORT void plugin_register(void) {
69     
70 }
71
72 G_MODULE_EXPORT void plugin_reg_handoff(void)
73 {
74     if (! initialized ) {
75         proto_register_lua();
76                 initialized = 1;
77         }
78 }
79 #endif