6 * (c) 2006, Luis E. Garcia Ontanon <luis.ontanon@gmail.com>
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1998 Gerald Combs
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
36 #include "../stat_menu.h"
38 typedef struct _funnel_text_window_t funnel_text_window_t ;
39 typedef struct _funnel_tree_window_t funnel_tree_window_t ;
40 typedef struct _funnel_node_t funnel_node_t ;
42 typedef void (*text_win_close_cb_t)(void*);
44 typedef void (*funnel_dlg_cb_t)(gchar** user_input, void* data);
46 typedef gboolean (*funnel_bt_cb_t)(funnel_text_window_t* tw, void* data);
48 typedef struct _funnel_bt_t {
49 funnel_text_window_t* tw;
53 void (*free_data)(void*);
56 typedef struct _funnel_ops_t {
57 funnel_text_window_t* (*new_text_window)(const gchar* label);
58 void (*set_text)(funnel_text_window_t* win, const gchar* text);
59 void (*append_text)(funnel_text_window_t* win, const gchar* text);
60 void (*prepend_text)(funnel_text_window_t* win, const gchar* text);
61 void (*clear_text)(funnel_text_window_t* win);
62 const gchar* (*get_text)(funnel_text_window_t* win);
63 void (*set_close_cb)(funnel_text_window_t* win, text_win_close_cb_t cb, void* data);
64 void (*set_editable)(funnel_text_window_t* win, gboolean editable);
65 void (*destroy_text_window)(funnel_text_window_t* win);
66 void (*add_button)(funnel_text_window_t* win, funnel_bt_t* cb, const gchar* label);
70 void (*new_dialog)(const gchar* title,
71 const gchar** fieldnames,
72 funnel_dlg_cb_t dlg_cb,
76 void (*logger)(const gchar *log_domain,
77 GLogLevelFlags log_level,
82 void (*retap_packets)(void);
83 void (*copy_to_clipboard)(GString *str);
84 void (*set_filter)(const char*);
85 gboolean (*open_file)(const char* fname, const char* filter, char** error);
87 void (*apply_filter)(void);
88 gboolean (*browser_open_url)(const gchar *url);
89 void (*browser_open_data_file)(const gchar *filename);
93 extern const funnel_ops_t* funnel_get_funnel_ops(void);
94 extern void funnel_set_funnel_ops(const funnel_ops_t*);
97 extern void funnel_register_menu(const char *name,
98 register_stat_group_t group,
99 void (*callback)(gpointer),
100 gpointer callback_data,
104 typedef void (*funnel_registration_cb_t)(const char *name,
105 register_stat_group_t group,
106 void (*callback)(gpointer),
107 gpointer callback_data,
110 extern void funnel_register_all_menus(funnel_registration_cb_t r_cb);
112 extern void initialize_funnel_ops(void);
114 extern void funnel_dump_all_text_windows(void);