aboutsummaryrefslogtreecommitdiffstats
path: root/version_info.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-10-22 20:30:07 +0100
committerJoão Valverde <j@v6e.pt>2017-10-23 20:04:14 +0000
commit14e687c1dd17e7a39a7cf3293e3397ac36117e49 (patch)
tree09d7b4482c7b4b8b33b6b15dc7f48c58e26a3785 /version_info.c
parent12d63c428f973b1f7e04ad58d432d778e2035a9a (diff)
Make plugin support a runtime property
Keep the option to disable at compile-time but use AC_ARG_ENABLE instead. Change-Id: Ie8c3f5ba0db1eb6d9d4ffd742cd3aa049ead5007 Reviewed-on: https://code.wireshark.org/review/24026 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'version_info.c')
-rw-r--r--version_info.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/version_info.c b/version_info.c
index 9aefd8da65..56eac8d371 100644
--- a/version_info.c
+++ b/version_info.c
@@ -50,6 +50,7 @@
#include <wsutil/copyright_info.h>
#include <wsutil/os_version_info.h>
#include <wsutil/ws_printf.h> /* ws_debug_printf */
+#include <wsutil/plugins.h>
/*
* If the string doesn't end with a newline, append one.
@@ -343,6 +344,16 @@ get_runtime_version_info(void (*additional_info)(GString *))
g_string_append_printf(str, ", with zlib %s", zlibVersion());
#endif
+ /* plugins */
+#ifdef HAVE_PLUGINS
+ if (g_module_supported()) {
+ g_string_append_printf(str, ", binary plugins supported (%d loaded)", plugins_get_count());
+ }
+ else {
+ g_string_append(str, ", binary plugins not supported");
+ }
+#endif
+
g_string_append(str, ".");
/* Compiler info */