diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-12-18 23:44:10 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-12-18 23:44:10 +0100 |
commit | abf043ae10cebd0fbfd751f09078e9b2011df731 (patch) | |
tree | d2d510c3686e21380a10cdae9e2280b3c10cb363 /plugin.c |
initial checking of example out-of-tree wireshark plugin
This builds on Debian unstable against the header files in
/usr/include/wireshark
The SIM disesctor will not work, as it is not called by GSMTAP. So this
is just an example on how to build a wireshark plugin out-of-tree.
Diffstat (limited to 'plugin.c')
-rw-r--r-- | plugin.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/plugin.c b/plugin.c new file mode 100644 index 0000000..66d421e --- /dev/null +++ b/plugin.c @@ -0,0 +1,31 @@ +/* + * Do not modify this file. + * + * It is created automatically by Makefile or Makefile.nmake. + */ + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include <gmodule.h> + +#include "moduleinfo.h" + +#ifndef ENABLE_STATIC +G_MODULE_EXPORT const gchar version[] = VERSION; + +/* Start the functions we need for the plugin stuff */ + +G_MODULE_EXPORT void +plugin_register (void) +{ + {extern void proto_register_gsm_sim (void); proto_register_gsm_sim ();} +} + +G_MODULE_EXPORT void +plugin_reg_handoff(void) +{ + {extern void proto_reg_handoff_gsm_sim (void); proto_reg_handoff_gsm_sim ();} +} +#endif |