From 8390744957984e074b270edb4e996de274ce3a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Sun, 3 Sep 2017 15:03:31 +0100 Subject: Add function to return version number at run-time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: João Valverde --- epan/epan.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'epan/epan.c') 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 +#include #include #include @@ -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 -- cgit v1.2.3