I start Wireshark (don't open a file or anything).
My dissector's proto_reg_handoff routine is called.
In the code that runs only once I initialise a variable
static gboolean prefTick
to TRUE, and register the preference.
Before returning the variable is printed out and it is TRUE.
My dissecto
Hi,
Question: is our preference already in the preferences file?
Then your default gets overwritten by this stored value. The default is
default only when the preference is newly introduced.
Thanx,
Jaap
On Mon, 22 Jan 2007, Hal Lander wrote:
> I start Wireshark (don't open a file or anything).
#x27; directory.
Do you know what the filenames and directory path should be?
Thanks again
Hal
From: skydiver <[EMAIL PROTECTED]>
Reply-To: Developer support list for Wireshark
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] How do I initialise a boolean prefere
TECTED]>
> >Reply-To: Developer support list for Wireshark
> >
> >To: Developer support list for Wireshark
> >Subject: Re: [Wireshark-dev] How do I initialise a boolean preference
> >Date: Mon, 22 Jan 2007 16:39:49 +0100 (CET)
> >
> >Hi,
> >
> >
>> From: skydiver <[EMAIL PROTECTED]>
>> Reply-To: Developer support list for Wireshark
>>
>> To: Developer support list for Wireshark
>> Subject: Re: [Wireshark-dev] How do I initialise a boolean preference
>> Date: Mon, 22 Jan 2007 16:39:49 +0100 (CET)
On Jan 22, 2007, at 7:24 AM, Hal Lander wrote:
> I start Wireshark (don't open a file or anything).
> My dissector's proto_reg_handoff routine is called.
> In the code that runs only once I initialise a variable
>static gboolean prefTick
> to TRUE, and register the preference.
What name did
eg_handoff_foo);
prefTick=TRUE;
prefs_register_bool_preference(foo_module,"tick","MyTitle","MyDescription",&prefTick);
Hal
From: Guy Harris <[EMAIL PROTECTED]>
Reply-To: Developer support list for Wireshark
To: Developer support list for Wireshark
Subject: Re: [Wir
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] How do I initialise a boolean preference
Date: Mon, 22 Jan 2007 13:18:57 -0800
You might try checking Help->About Wireshark->Folders. Specific
locations vary by platform and compile-time options.
Hal Lander wrote:
> I di