[Wireshark-dev] How do I initialise a boolean preference

2007-01-22 Thread Hal Lander
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

Re: [Wireshark-dev] How do I initialise a boolean preference

2007-01-22 Thread skydiver
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).

Re: [Wireshark-dev] How do I initialise a boolean preference

2007-01-22 Thread Hal Lander
#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

Re: [Wireshark-dev] How do I initialise a boolean preference

2007-01-22 Thread Jaap Keuter
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, > > > >

Re: [Wireshark-dev] How do I initialise a boolean preference

2007-01-22 Thread Gerald Combs
>> 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)

Re: [Wireshark-dev] How do I initialise a boolean preference

2007-01-22 Thread Guy Harris
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

Re: [Wireshark-dev] How do I initialise a boolean preference

2007-01-29 Thread Hal Lander
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

Re: [Wireshark-dev] How do I initialise a boolean preference

2007-01-29 Thread Hal Lander
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