guy 2000/07/05 04:40:55 CDT
Modified files:
. Makefile.am packet-ip.c prefs.c prefs.h
tethereal.c
Added files:
. prefs-int.h
Log:
Add support for a global "ethereal.conf" preferences file, stored in the
same directory as the "manuf" file ("/etc" or "/usr/local/etc", most
likely).
Add a mechanism to allow modules (e.g., dissectors) to register
preference values, which:
can be put into the global or the user's preference file;
can be set from the command line, with arguments to the "-o"
flag;
can be set from tabs in the "Preferences" dialog box.
Use that mechanism to register the "Decode IPv4 TOS field as DiffServ
field" variable for IP as a preference.
Stuff that still needs to be done:
documenting the API for registering preferences;
documenting the "-o" values in the man page (probably needs a
flag similar to "-G", and a Perl script to turn the output into
documentation as is done with the list of field);
handling error checking for numeric values (range checking,
making sure that if the user changes the variable from the GUI
they change it to a valid numeric value);
using the callbacks to, for example, update the display when
preferences are changed (could be expensive);
panic if the user specifies a numeric value with a base other
than 10, 8, or 16.
We may also want to clean up the existing wired-in preferences not to
take effect the instant you tweak the widget, and to add an "Apply"
button to the "Preferences" dialog.
Revision Changes Path
1.207 +2 -1 ethereal/Makefile.am
1.95 +10 -1 ethereal/packet-ip.c
1.31 +542 -43 ethereal/prefs.c
1.16 +91 -2 ethereal/prefs.h
1.34 +42 -15 ethereal/tethereal.c