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

Ethereal-dev: Re: [Ethereal-dev] RFE: saving graph options

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Thu, 19 Dec 2002 17:51:52 -0800
On Thu, Dec 19, 2002 at 06:00:46PM +0100, Pavel Mores wrote:
> Or should the TCP graphing options be stored
> somewhere where other options are stored and retrieved from Ethereal
> core during graph boot by some function calls?

Yes.

I've just checked in a change to allow preferences to be put in
arbitrary places in the tree view in the "Edit->Preferences" dialog box
- protocol preferences are still put under the "Protocols" item, but one
can put a preference at the top level, or can put in a subtree item at
any level in the tree and put preferences under there.

"prefs_register_module()" now takes, as its first argument, a pointer to
a module under which preferences can be placed, or NULL to put the
preference at the top level.  "prefs_register_subtree()" lets you create
a "subtree" module, which has no preferences of its own, but under which
preferences can be placed.

You could use the preferences mechanism to register preferences for the
TCP graphing option; the names of the preferences should probably start
with "tcp_graph.".