Ethereal-dev: Re: [Ethereal-dev] allowing (sub-)dissector to know preferences of another disse

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: Mon, 9 Jul 2001 12:58:37 -0700 (PDT)
> Any thoughts on whether a dissector (say, ISUP) should be able to know
> the preferences settings of another dissector (say, MTP3)?  There
> doesn't seem to be any mechanism (short of making the preference
> variable in MTP3 non-static and extern'ing it from ISUP, which I imagine
> won't fly)

It'll fly technically; is the "won't fly" concern that it may not be
obvious to the user that an MTP3 option is the way to control the
behavior of other protocols?

If so, another option might be to use "prefs_register_module()" to
create a preferences module with a name that's *not* the name of a
particular protocol, register preferences under that, and make the
variables controlled by those preferences global.