aboutsummaryrefslogtreecommitdiffstats
path: root/epan/address_types.h
diff options
context:
space:
mode:
authorPedro Jose Marron <pjmarron@locoslab.com>2015-10-09 11:48:35 +0200
committerMichael Mann <mmann78@netscape.net>2015-10-09 17:42:06 +0000
commit38ba49e220dfaedb7072e8f481c8fe8169428c9d (patch)
tree00059f0cff936957327103a11c80ecd68c0e6323 /epan/address_types.h
parent12446da29bf57dc95b9050cc0ec669d60a381dc0 (diff)
Add WS_DLL_PUBLIC for Address Type Registration
Dissectors developed as plugins in wireshark that create new address types require the use of address_type_dissector_register. Without WS_DLL_PUBLIC, the function is not found when loading the plugin and wireshark refuses to initialize it. This very simple patch fixes this problem. Change-Id: I8594a7be525830dd4ab9e1b3ea633aac0a07938a Reviewed-on: https://code.wireshark.org/review/10899 Reviewed-by: Balint Reczey <balint@balintreczey.hu> Petri-Dish: Balint Reczey <balint@balintreczey.hu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/address_types.h')
-rw-r--r--epan/address_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/address_types.h b/epan/address_types.h
index d27cdb4688..79265e6167 100644
--- a/epan/address_types.h
+++ b/epan/address_types.h
@@ -39,7 +39,7 @@ typedef const gchar* (*AddrNameResolutionToString)(const address* addr);
struct _address_type_t;
typedef struct _address_type_t address_type_t;
-int address_type_dissector_register(const char* name, const char* pretty_name,
+WS_DLL_PUBLIC int address_type_dissector_register(const char* name, const char* pretty_name,
AddrValueToString to_str_func, AddrValueToStringLen str_len_func,
AddrColFilterString col_filter_str_func, AddrFixedLen fixed_len_func,
AddrNameResolutionToString name_res_str_func, AddrNameResolutionLen name_res_len_func);