wireshark/include
João Valverde ef836e9afe plugins: Do not require a "type" subfolder hierarchy
The folder structure was introduced to organize the
plugins and permit more efficient loading during the
startup but the gains are slight and the requirement
is awkward to describe and easy to forget in practice.

Remove that requirement and load any compatible binary
plugin in the plugin folder. This also allows extra
flexibility to organize the plugins in categories,
for example adding an "external" folder for plugins
external to the project, or whatever else one might
wish.

To check for library compatibility we add an extra string
signature token in the plugin that can be compared with
the expected plugin type.

The downside is that the initialization is still performed
3 times and more files need to be skipped now but in practice
this should not have a measurable performance impact
and this eliminates a class of annoying small forgetful mistakes
when manually installing files.

This is still compatible with the old requirement of having a
epan/wiretap/codecs subfolder. At most one sublevel is allowed
to minimize security risks and slowness with any random folder
hierarchies if the plugins folder setting is somehow misconfigured
or hijacked.

Ping #19389.
2023-10-11 08:08:16 +01:00
..
wireshark.h plugins: Do not require a "type" subfolder hierarchy 2023-10-11 08:08:16 +01:00
ws_attributes.h MinGW: Fix -Wattributes 2023-01-13 22:41:04 +00:00
ws_codepoints.h Add a #define for REPLACEMENT CHARACTER and use it. 2022-10-16 23:36:12 +00:00
ws_compiler_tests.h Improve a compiler test and diagnostic control 2023-04-16 15:08:45 +00:00
ws_diag_control.h Fix misppellings in root and ui directories 2023-09-26 00:26:25 -04:00
ws_exit_codes.h With -D, always let the user know if capture_interface_list() fails. 2023-08-27 17:20:12 -07:00
ws_log_defs.h Rename the Lua log domain 2023-08-17 15:39:21 +01:00
ws_posix_compat.h Windows: Make use of SSIZE_T 2023-06-07 16:04:06 +00:00
ws_symbol_export.h Enable rpathification and working relocation on Linux (take 3) 2023-02-13 00:24:21 +00:00