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

Wireshark-commits: [Wireshark-commits] rev 32967: /trunk/epan/ /trunk/epan/: prefs-int.h prefs.c

Date: Wed, 26 May 2010 03:31:32 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=32967

User: morriss
Date: 2010/05/25 08:31 PM

Log:
 Remember the default value of each protocol preference.
 
 If, when we're writing the preferences file, the current value of the
 preference is the same as the default, write out the preference (since the
 preference file is also the documentation for the preferences) but comment it
 out (so that if, for example, you go back to an older version of Wireshark
 you won't get warnings about non-existant preferences that you didn't
 change--and thus probably don't care too much about).
 
 It might be interesting to, in the future, add a UI to restore the default
 values.

Directory: /trunk/epan/
  Changes    Path           Action
  +7 -0      prefs-int.h    Modified
  +100 -75   prefs.c        Modified