Re: [Wireshark-dev] plugin_if menu problems

2015-11-27 Thread Paul Offord
] On Behalf Of Roland Knall Sent: 27 November 2015 09:41 To: Developer support list for Wireshark Subject: Re: [Wireshark-dev] plugin_if menu problems Hi I do not have anything standing in front of my callbacks, therefore I would remove WS_DLL_PUBLIC_DEF completely. It is not necessary in your

Re: [Wireshark-dev] plugin_if menu problems

2015-11-27 Thread Roland Knall
Hi I do not have anything standing in front of my callbacks, therefore I would remove WS_DLL_PUBLIC_DEF completely. It is not necessary in your case. Secondly, if you are using the latest git source of Wireshark or the 2.0 source, the correct prototype for the callback would be: void menu_cb(ext_

Re: [Wireshark-dev] plugin_if menu problems

2015-11-26 Thread Paul Offord
I can answer part of the problem myself. Adding #define WS_BUILD_DLL to the head of the file stops the dllimport issue. Best regards...Paul From: Paul Offord Sent: 26 November 2015 22:37 To: 'wireshark-dev@wireshark.org' Subject: plugin_if menu problems Hi, I am experimenting with the plugin

[Wireshark-dev] plugin_if menu problems

2015-11-26 Thread Paul Offord
Hi, I am experimenting with the plugin_if menu functions. I'm creating the code in VS2013 and I have two stubborn errors that I can't seem to resolve. The code is: #include extern int proto_tmsvc; void menu_setup() { ext_menu_t * ext_menu, *os_menu = NULL; ext_menu = ext_menubar_register