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.

Date: Mon, 29 Nov 2004 15:42:08 +0100
Hi,

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

I'm in the middle a deep change in how MATE works, so right now MATE
is broken...  However the last version I released uses the same API
calls the new version will.

The last version is attached to this posting:

http://www.ethereal.com/lists/ethereal-dev/200411/msg00242.html

> 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.

It does not use any GTK calls.
I had the plugin version of MATE running on MacOS X and Linux.

> 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.

I've looked on libethereal.def and It is missing just two calls of what I use.

Luis 


Index: epan/libethereal.def
===================================================================
--- epan/libethereal.def        (revision 12617)
+++ epan/libethereal.def        (working copy)
@@ -222,7 +222,9 @@
 fvalue_t_free_list              DATA
 fvalue_from_unparsed
 fvalue_get
+fvalue_get_floating
 fvalue_get_integer
+fvalue_to_string_repr
 GatekeeperRejectReason_vals     DATA
 get_basename
 get_ber_identifier