forked from osmocom/wireshark
pluginifdemo compilable on Windows
Change-Id: I81c40746d3e523da690205186eb3e3c2e1f26292 Reviewed-on: https://code.wireshark.org/review/37935 Petri-Dish: Tomáš Kukosa <keksa@email.cz> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
2046666b97
commit
e80d08974a
|
@ -43,11 +43,6 @@ about_cb(ext_menubar_gui_type gui_type _U_, gpointer gui_data _U_, gpointer user
|
|||
void
|
||||
proto_register_pluginifdemo(void)
|
||||
{
|
||||
static hf_register_info hf[] = {
|
||||
};
|
||||
|
||||
static gint *ett[] = {
|
||||
};
|
||||
|
||||
#if 0
|
||||
module_t *pluginif_module = NULL;
|
||||
|
@ -56,9 +51,6 @@ proto_register_pluginifdemo(void)
|
|||
|
||||
proto_pluginifdemo = proto_register_protocol("Plugin IF Demo Protocol", "Pluginifdemo", "pluginifdemo");
|
||||
|
||||
proto_register_field_array(proto_pluginifdemo, hf, array_length(hf));
|
||||
proto_register_subtree_array(ett, array_length(ett));
|
||||
|
||||
ext_menu = ext_menubar_register_menu ( proto_pluginifdemo, "Plugin IF Demonstration", TRUE );
|
||||
ext_menubar_set_parentmenu (ext_menu, "Tools");
|
||||
|
||||
|
|
|
@ -39,8 +39,7 @@ void pluginifdemo_ui_main(ext_menubar_gui_type gui_type, gpointer gui_data)
|
|||
GString *error_string = register_tap_listener("frame", NULL, NULL, 0, reset_dialog, NULL, NULL, NULL);
|
||||
|
||||
if (error_string != NULL) {
|
||||
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
|
||||
"%s", error_string->str);
|
||||
fprintf(stderr, "%s ", error_string->str);
|
||||
g_string_free(error_string, TRUE);
|
||||
}
|
||||
GuiHandler::getInstance()->showMainDialog(gui_type, gui_data);
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include "ws_symbol_export.h"
|
||||
|
||||
class WS_DLL_PUBLIC_DEF GuiHandler : public QObject
|
||||
class GuiHandler : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
Loading…
Reference in New Issue