Ethereal-dev: Re: [Ethereal-dev] Patch to packet-frame.c for Mate access

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Lars Roland <lars.roland@xxxxxxx>
Date: Mon, 29 Nov 2004 14:36:44 +0100
LEGO schrieb:
Hi,
I have a question about plugins in Win32.  Unfortunatelly I do not
have a Win32 box with a compiler at hand. So I cannot verify this
myself.

Currently Ethereal uses 2 plugin apis on Win32. The old one is defined in "plugin_api_list.c". The newer one is defined in epan/libethereal.def The functions and variables in libethereal.def are sorted alphabetically Just send in a patch for this file adding the functions you need.

Could send me the sources of the plugin. I will test it.

BTW, no one has tried to put a tap into a plugin yet. The main reason is that the plugin should not contain any GTK dependency, because tethereal will use it, too. However I guess your plugin doesn't have a gtk dependency, because you use the packet list to display the results.


Do changes in plugin_api_list.c aply to libethereal.dll or just to the
"plugin.dll"?

or better,

Iif I make changes to the  plugin_api_list.c will a "plugin.dll" built
afterwards be able to run under the unmodified libethereal.dll ?

Changes to the API will affect both libethereal.dll and the plugins. It would work, if your plugin didn't use the functions you add to the old api after building libethereal.dll. But you wouldn't add them in that case. :) If your plugin uses the new API, you will have to rebuild anyway when you change the API.

Regards,
Lars