aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
Diffstat (limited to 'epan')
-rw-r--r--epan/expert.c5
-rw-r--r--epan/expert.h5
-rw-r--r--epan/libwireshark.def1
3 files changed, 10 insertions, 1 deletions
diff --git a/epan/expert.c b/epan/expert.c
index cc737ec897..c549e86f39 100644
--- a/epan/expert.c
+++ b/epan/expert.c
@@ -34,9 +34,12 @@
#include "tap.h"
+/* proto_expert cannot be static because it's referenced in the
+ * print routines
+ */
+int proto_expert = -1;
static int expert_tap = -1;
-static int proto_expert = -1;
static int highest_severity = 0;
static int ett_expert = -1;
diff --git a/epan/expert.h b/epan/expert.h
index 58bd9e44fa..87cd65f2e3 100644
--- a/epan/expert.h
+++ b/epan/expert.h
@@ -47,6 +47,11 @@ typedef struct expert_info_s {
WS_VAR_IMPORT const value_string expert_severity_vals[];
WS_VAR_IMPORT const value_string expert_group_vals[];
+/* "proto_expert" is exported from libwireshark.dll.
+ * Thus we need a special declaration.
+ */
+WS_VAR_IMPORT int proto_expert;
+
extern void
expert_init(void);
diff --git a/epan/libwireshark.def b/epan/libwireshark.def
index 1e568f07b4..3ccddb8ca0 100644
--- a/epan/libwireshark.def
+++ b/epan/libwireshark.def
@@ -744,6 +744,7 @@ proto_check_field_name
proto_construct_match_selected_string
proto_data DATA
proto_enable_all
+proto_expert DATA
proto_field_is_referenced
proto_find_field_from_offset
proto_find_finfo