Re: [Wireshark-dev] When is the preference variable updated?

2015-11-12 Thread Anders Broman
Hi, If you look in epan/prefs.h you can see that the second argument is a callback function prefs_register_protocol(int id, void (*apply_cb)(void)); In packet-sip.c sip_module = prefs_register_protocol(proto_sip, proto_reg_handoff_sip); So proto_reg_handoff_sip is called every time the

Re: [Wireshark-dev] When is the preference variable updated?

2015-11-12 Thread Paul Offord
Hi Pascal, I wondered if that would be the case but it doesn’t seem to be set when I enter the handoff code. My handoff looks like this: proto_reg_handoff_tmsvc(void) { dissector_handle_t dissect_tmsvc_handle; HANDLE h_thread; if (tmsvc_port > 0) {

[Wireshark-dev] When is the preference variable updated?

2015-11-12 Thread Paul Offord
Hi, Frankly I feel a bit stupid asking this but I've been trying to figure it out for about 6 hours and I think I need help. I have a dissector which I register like this: static int tmsvc_port = 0; void proto_register_tmsvc(void) { module_t *tmsvc_module; proto_tmsvc =

Re: [Wireshark-dev] When is the preference variable updated?

2015-11-12 Thread Pascal Quantin
2015-11-12 15:07 GMT+01:00 Paul Offord : > Hi, > > > > Frankly I feel a bit stupid asking this but I've been trying to figure it > out for about 6 hours and I think I need help. I have a dissector which I > register like this: > > > > static int tmsvc_port = 0; > > > >

Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-11-12 Thread Gerald Combs
On 11/12/15 10:51 AM, Bill Meier wrote: > On 11/12/2015 1:13 PM, Bill Meier wrote: >> How do I disable building QT Wireshark when using CMake ? >> >> Thanks >> >> Bill > > > Answering my own question: > > cmake -DBUILD_wireshark=OFF ... You can also edit the corresponding BUILD_wireshark line

Re: [Wireshark-dev] When is the preference variable updated?

2015-11-12 Thread Paul Offord
Hi Pascal, You are right – it got called twice without the preference value being set and then the third time it was. Thanks to you both for your help, it’s saved me a lot of time. Best regards…Paul From: wireshark-dev-boun...@wireshark.org [mailto:wireshark-dev-boun...@wireshark.org] On

Re: [Wireshark-dev] When is the preference variable updated?

2015-11-12 Thread Pascal Quantin
2015-11-12 15:48 GMT+01:00 Paul Offord : > Hi Pascal, > > > > I wondered if that would be the case but it doesn’t seem to be set when I > enter the handoff code. My handoff looks like this: > > > > proto_reg_handoff_tmsvc(void) > > { > >

Re: [Wireshark-dev] When is the preference variable updated?

2015-11-12 Thread Paul Offord
Thanks Anders, That seems to be the answer. I modified the code to this: static int proto_tmsvc = -1; HANDLE h_thread = NULL; /* This is the handle to the service thread */ static int tmsvc_port = 0; void proto_register_tmsvc(void) { module_t *tmsvc_module; proto_tmsvc =

[Wireshark-dev] CMake: Disable building with QT ?

2015-11-12 Thread Bill Meier
How do I disable building QT Wireshark when using CMake ? Thanks Bill ___ Sent via:Wireshark-dev mailing list Archives:https://www.wireshark.org/lists/wireshark-dev Unsubscribe:

Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-11-12 Thread Bill Meier
On 11/12/2015 1:13 PM, Bill Meier wrote: How do I disable building QT Wireshark when using CMake ? Thanks Bill Answering my own question: cmake -DBUILD_wireshark=OFF ... ___ Sent via:Wireshark-dev mailing list

Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-11-12 Thread Peter Wu
Try cmake -DBUILD_wireshark=0 (case is significant). These options are defined in CMakeOptions.txt which you can also find via invocation of cmake-gui. Kind regards, Peter https://lekensteyn.nl (pardon my brevity, top-posting and formatting, sent from my phone) On 12 November 2015 19:13:07