Wireshark-dev: Re: [Wireshark-dev] Warnings when loading preferences
From: Evan Huus <eapache@xxxxxxxxx>
Date: Wed, 1 Aug 2012 10:30:16 -0400
On Wed, Aug 1, 2012 at 9:55 AM, Kurt Knochner
<ws.dev.list@xxxxxxxxxxxxxxxxxxx> wrote:
> would it make sense to add version sections to the preferences file? Parsing
> the
> preference file would a bit more work, but one could separate the modified
> preferences
> in a proper way from each other.
>
> Extra benefit: One could use the same preference file with different (older)
> versions of
> Wireshark, without any problem (if such a feature get's backported).
>
> Something like this:
>
> <version: 1.6.0>
> ...
> </version: 1.6.0>
> <version: 1.8.0>
> ...
> </version: 1.8.0>
>
> Regards
> Kurt

Very neat idea. It would probably make more sense to split into
minversion (for new preferences introduced in a certain release) and
maxversion (for preferences deprecated in a certain release) but the
concept is cool. It wouldn't solve this particular problem
unfortunately, because 1.8 and prior don't have support for those tags
and would throw a warning (or an error?) if it saw them. It would be
nice to have some version of this going forward for 1.10+ though.

Cheers,
Evan