diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2017-09-29 19:49:51 +0100 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2017-10-03 10:09:24 +0000 |
commit | 2777003e121a5d764b54c62590e7ceb46ae2c157 (patch) | |
tree | 1ca9471c447c0fcf94640328fd1a3207224615ad /plugins | |
parent | d477ea35a946c2935974edb3fea45cf23513a03c (diff) |
Add version check for plugin compatibility
Only plugins built for the same feature release (X.Y) are assured binary
compatibility. Make sure we don't try to run unsuitable code and, if so,
warn the user. This might happen for example if the user manually copies
a binary plugin to the wrong folder, intentionally or by accident.
I'm using "release version" to loosely mean not a patch release
(i.e: a feature release).
Change-Id: I896e9cbbd2d3843623fff6af8ef51002ec06f1f8
Reviewed-on: https://code.wireshark.org/review/23807
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/stats_tree/stats_tree_plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/stats_tree/stats_tree_plugin.c b/plugins/stats_tree/stats_tree_plugin.c index 2c91d62e86..da08bba51e 100644 --- a/plugins/stats_tree/stats_tree_plugin.c +++ b/plugins/stats_tree/stats_tree_plugin.c @@ -34,7 +34,8 @@ #include "pinfo_stats_tree.h" -WS_DLL_PUBLIC_DEF const gchar version[] = "0.0.1"; +WS_DLL_PUBLIC_DEF const gchar plugin_version[] = "0.0.1"; +WS_DLL_PUBLIC_DEF const gchar plugin_release[] = VERSION_RELEASE; WS_DLL_PUBLIC_DEF void plugin_register_tap_listener(void) { |