Ethereal-dev: Re: [Ethereal-dev] Checking for new capture/loaded file from user code?

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 15 Dec 2003 02:27:09 -0800
On Mon, Dec 15, 2003 at 11:13:32AM +0100, Lars Ruoff wrote:
> (This needs we have to tell somehow *when* the content has changed)

I suspected that's what you wanted.

There's already a mechanism for calling a routine whenever a
redissection is done, including when a new capture file is opened - see
"register_init_routine()" in "epan/packet.c".  Given that a redissection
could change what RTP streams exist (e.g., if you do a "Decode As"),
that's the right thing to do.

Note that the routine is called even on the *first* open.