3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef __IFACE_TOOLBAR_H__
23 #define __IFACE_TOOLBAR_H__
29 #endif /* __cplusplus */
32 INTERFACE_TYPE_UNKNOWN,
33 INTERFACE_TYPE_BOOLEAN,
34 INTERFACE_TYPE_BUTTON,
35 INTERFACE_TYPE_SELECTOR,
37 } iface_toolbar_ctrl_type;
40 INTERFACE_ROLE_UNKNOWN,
41 INTERFACE_ROLE_CONTROL,
43 INTERFACE_ROLE_LOGGER,
44 INTERFACE_ROLE_RESTORE
45 } iface_toolbar_ctrl_role;
47 typedef struct _iface_toolbar_value {
52 } iface_toolbar_value;
54 typedef struct _iface_toolbar_control {
56 iface_toolbar_ctrl_type ctrl_type;
57 iface_toolbar_ctrl_role ctrl_role;
68 } iface_toolbar_control;
70 typedef struct _iface_toolbar {
77 typedef void (*iface_toolbar_add_cb_t)(const iface_toolbar *);
78 typedef void (*iface_toolbar_remove_cb_t)(const gchar *);
80 void iface_toolbar_add(const iface_toolbar *toolbar);
82 void iface_toolbar_remove(const gchar *menu_title);
84 gboolean iface_toolbar_use(void);
86 void iface_toolbar_register_cb(iface_toolbar_add_cb_t, iface_toolbar_remove_cb_t);
90 #endif /* __cplusplus */
92 #endif /* __IFACE_TOOLBAR_H__ */
100 * indent-tabs-mode: nil
103 * ex: set shiftwidth=4 tabstop=8 expandtab:
104 * :indentSize=4:tabSize=8:noTabs=true: