diff options
author | Balint Reczey <balint@balintreczey.hu> | 2013-03-01 23:53:11 +0000 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2013-03-01 23:53:11 +0000 |
commit | 1ebdb2e521ca0cbd7aeebd1c89b8a5cf6a4cc322 (patch) | |
tree | d6dde0ea7b6e6e15cc2c51a5f478fb85965b9720 /tools/wireshark_gen.py | |
parent | 0b8d70bfb715bc3d89b6dfae86fc79d7c4387f02 (diff) |
Export libwireshark symbols using WS_DLL_PUBLIC define
Also remove old WS_VAR_IMPORT define and related Makefile magic
everywhere in the project.
svn path=/trunk/; revision=47992
Diffstat (limited to 'tools/wireshark_gen.py')
-rwxr-xr-x | tools/wireshark_gen.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/wireshark_gen.py b/tools/wireshark_gen.py index 87b85d424f..7172843b36 100755 --- a/tools/wireshark_gen.py +++ b/tools/wireshark_gen.py @@ -1960,7 +1960,7 @@ static guint32 boundary = GIOP_HEADER_SIZE; /* initial value */""" template_plugin_register = """ #if 0 -G_MODULE_EXPORT void +WS_DLL_PUBLIC_NOEXTERN void plugin_register(void) { if (proto_@dissector_name@ == -1) { @@ -1968,7 +1968,7 @@ plugin_register(void) } } -G_MODULE_EXPORT void +WS_DLL_PUBLIC_NOEXTERN void plugin_reg_handoff(void){ proto_register_handoff_giop_@dissector_name@(); } @@ -2357,6 +2357,10 @@ for (i_@aname@=0; i_@aname@ < @aval@; i_@aname@++) { #include <epan/dissectors/packet-giop.h> #include <epan/expert.h> +/* plugins are DLLs */ +#define WS_BUILD_DLL +#include "ws_symbol_export.h" + #ifdef _MSC_VER /* disable warning: "unreference local variable" */ #pragma warning(disable:4101) |