In the file Readme.Plugins it says:
Move relevant code from the blocks and delete these functions:
#ifndef ENABLE_STATIC
plugin_reg_handoff()
....
#endif
#ifndef ENABLE_STATIC
plugin_register()
....
#endif</code></pre><p>Where would I move my code and what changes do I need to make. I currently have the following:</p><pre><code>#ifndef ENABLE_STATIC
G_MODULE_EXPORT
void plugin_register(void)
{
/* register the new protocol, protocol fields, and subtrees */
if (proto_arr == -1)
{ /* execute protocol initialization only once */
proto_register_arr();
}
}
G_MODULE_EXPORT
void plugin_reg_handoff(void)
{
proto_reg_handoff_arr();
}
#endif
asked 14 May ‘15, 07:18
XQW1123
46●8●10●14
accept rate: 0%
I dropped the code, but now I get an error whenever I start wireshark... "The plugin 'xyz.dll' has no registration routines"
Clean your build of the plugin, before trying again. This triggers the necessary scripting to generate the required code.