aboutsummaryrefslogtreecommitdiffstats
path: root/epan/epan.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-09-03 15:03:31 +0100
committerJoão Valverde <j@v6e.pt>2017-09-03 20:12:39 +0000
commit8390744957984e074b270edb4e996de274ce3a07 (patch)
tree3bf3108d11e2345e448c285dc08d023ade20e35a /epan/epan.c
parent1d157ebeef0d5eb82e30ff7d7e64b797be86a3ef (diff)
Add function to return version number at run-time
For use by plugins using libwireshark to check compatibility. Change-Id: I66a9d41644da7efce01cbed30d2a1f76fbc3754d Reviewed-on: https://code.wireshark.org/review/23378 Petri-Dish: João Valverde <j@v6e.pt> Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'epan/epan.c')
-rw-r--r--epan/epan.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/epan.c b/epan/epan.c
index 9eb597164c..74ddfe5001 100644
--- a/epan/epan.c
+++ b/epan/epan.c
@@ -32,6 +32,7 @@
#include <glib.h>
+#include <ws_version_info.h>
#include <wsutil/report_message.h>
#include <epan/exceptions.h>
@@ -96,6 +97,12 @@ epan_get_version(void) {
return VERSION;
}
+void
+epan_get_version_number(int *major, int *minor, int *micro)
+{
+ get_ws_version_number(major, minor, micro);
+}
+
#if defined(_WIN32)
// Libgcrypt prints all log messages to stderr by default. This is noisier
// than we would like on Windows. In particular slow_gatherer tends to print