3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef __IFACE_TOOLBAR_H__
11 #define __IFACE_TOOLBAR_H__
17 #endif /* __cplusplus */
20 INTERFACE_TYPE_UNKNOWN,
21 INTERFACE_TYPE_BOOLEAN,
22 INTERFACE_TYPE_BUTTON,
23 INTERFACE_TYPE_SELECTOR,
25 } iface_toolbar_ctrl_type;
28 INTERFACE_ROLE_UNKNOWN,
29 INTERFACE_ROLE_CONTROL,
31 INTERFACE_ROLE_LOGGER,
32 INTERFACE_ROLE_RESTORE
33 } iface_toolbar_ctrl_role;
35 typedef struct _iface_toolbar_value {
40 } iface_toolbar_value;
42 typedef struct _iface_toolbar_control {
44 iface_toolbar_ctrl_type ctrl_type;
45 iface_toolbar_ctrl_role ctrl_role;
56 } iface_toolbar_control;
58 typedef struct _iface_toolbar {
65 typedef void (*iface_toolbar_add_cb_t)(const iface_toolbar *);
66 typedef void (*iface_toolbar_remove_cb_t)(const gchar *);
68 void iface_toolbar_add(const iface_toolbar *toolbar);
70 void iface_toolbar_remove(const gchar *menu_title);
72 gboolean iface_toolbar_use(void);
74 void iface_toolbar_register_cb(iface_toolbar_add_cb_t, iface_toolbar_remove_cb_t);
78 #endif /* __cplusplus */
80 #endif /* __IFACE_TOOLBAR_H__ */
88 * indent-tabs-mode: nil
91 * ex: set shiftwidth=4 tabstop=8 expandtab:
92 * :indentSize=4:tabSize=8:noTabs=true: