aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/dissectors.h
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-11-19 00:20:20 +0000
committerAnders Broman <a.broman58@gmail.com>2017-11-20 06:03:08 +0000
commitfe0c2b04853226b64a1aa17fbef6257c856e3fd9 (patch)
treed09f8b8c6fc44b402a17ab09d3d061311cccfb7f /epan/dissectors/dissectors.h
parent129cb60f56f42e58b9e589d79ac3ee317066d43e (diff)
Rewrite make-dissector-reg.py in C
The output compares equal to make-dissector-reg.py and the regex should be more robust (multiline, complete start of function definition). The primary motivation is to clean up the python script. This small binary results in much cleaner code. The python script is used only to generate plugin code, therefore it is renamed. Also in my casual measurements the C code is much faster (without cache) than the python script with the cache. Change-Id: Id4e8cac3c836d56775aba4819357a95ef19bcb85 Reviewed-on: https://code.wireshark.org/review/24497 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/dissectors.h')
-rw-r--r--epan/dissectors/dissectors.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/dissectors.h b/epan/dissectors/dissectors.h
index 56c9b6cabf..5cf9ed9971 100644
--- a/epan/dissectors/dissectors.h
+++ b/epan/dissectors/dissectors.h
@@ -27,9 +27,8 @@ typedef struct _dissector_reg {
WS_DLL_PUBLIC dissector_reg_t dissector_reg_proto[];
WS_DLL_PUBLIC dissector_reg_t dissector_reg_handoff[];
-WS_DLL_PUBLIC gulong dissector_reg_proto_count(void);
-
-WS_DLL_PUBLIC gulong dissector_reg_handoff_count(void);
+WS_DLL_PUBLIC const gulong dissector_reg_proto_count;
+WS_DLL_PUBLIC const gulong dissector_reg_handoff_count;
#ifdef __cplusplus
}