Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Using cf_callback_add from a plugin

From: Chris Maynard <chris.maynard@xxxxxxxxx>
Date: Mon, 25 Apr 2011 15:25:20 +0000 (UTC)
Bruce, Joseph R (Joe <joseph.bruce@...> writes:

> I'm writing a plugin that registers a capture file callback via
> cf_callback_add (./file.c:173, ./file.h:83).  The callback is invoked on
> read and other interesting cf events.  This works fine on my *nix build,
> but Windows is unhappy.  The only other code that registers a cf callback
> is ./gtk/main.c, which Windows has no problem with.  My plugin fails to
> link with unresolved symbol errors:

Try adding cf_callback_add to epan/libwireshark.def.  If that works for you, I
can check in a change to that file so cf_callback_[add|remove] will be available
in the future.