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: "Lars Ruoff" <lars.ruoff@xxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Dec 2003 12:12:17 +0100
> 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.

Thank you.
Anyway, i think i'll stick with the option of recalculating each time when
the dialog box is opened.
(Since its a modeless dialog box, users can leave it open all the time. This
gives the user some control over the frequency of calculation and memory
usage).
Objections?

Lars Ruoff.