forked from osmocom/wireshark
Fix doc/README.plugins mentioning the wrong symbols
Since 2.9.0, plugin_release has been split up into two different variables, plugin_want_major and plugin_want_minor.
This commit is contained in:
parent
581aa9136d
commit
5c3a651ea2
|
@ -163,11 +163,11 @@ make install
|
||||||
|
|
||||||
5.1 How to update an "old style" plugin (since Wireshark 2.5)
|
5.1 How to update an "old style" plugin (since Wireshark 2.5)
|
||||||
|
|
||||||
Plugins need exactly three visible symbols: plugin_version, plugin_release and
|
Plugins need exactly four visible symbols: plugin_version, plugin_want_major,
|
||||||
plugin_register. Each plugin is either a codec plugin, libwiretap plugin or
|
plugin_want_minor and plugin_register. Each plugin is either a codec plugin,
|
||||||
libwireshark plugin and the library will call "plugin_register" after
|
libwiretap plugin or libwireshark plugin and the library will call
|
||||||
loading the plugin. "plugin_register" in turn calls all the hooks necessary
|
"plugin_register" after loading the plugin. "plugin_register" in turn calls all
|
||||||
to enable the plugin. So if you had two function like so:
|
the hooks necessary to enable the plugin. So if you had two function like so:
|
||||||
|
|
||||||
WS_DLL_PUBLIC void plugin_register(void);
|
WS_DLL_PUBLIC void plugin_register(void);
|
||||||
WS_DLL_PUBLIC void plugin_reg_handoff(void);
|
WS_DLL_PUBLIC void plugin_reg_handoff(void);
|
||||||
|
|
Loading…
Reference in New Issue