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*/
9 #ifndef __IFACE_TOOLBAR_H__
10 #define __IFACE_TOOLBAR_H__
16 #endif /* __cplusplus */
19 INTERFACE_TYPE_UNKNOWN,
20 INTERFACE_TYPE_BOOLEAN,
21 INTERFACE_TYPE_BUTTON,
22 INTERFACE_TYPE_SELECTOR,
24 } iface_toolbar_ctrl_type;
27 INTERFACE_ROLE_UNKNOWN,
28 INTERFACE_ROLE_CONTROL,
30 INTERFACE_ROLE_LOGGER,
31 INTERFACE_ROLE_RESTORE
32 } iface_toolbar_ctrl_role;
34 typedef struct _iface_toolbar_value {
39 } iface_toolbar_value;
41 typedef struct _iface_toolbar_control {
43 iface_toolbar_ctrl_type ctrl_type;
44 iface_toolbar_ctrl_role ctrl_role;
55 } iface_toolbar_control;
57 typedef struct _iface_toolbar {
64 typedef void (*iface_toolbar_add_cb_t)(const iface_toolbar *);
65 typedef void (*iface_toolbar_remove_cb_t)(const gchar *);
67 void iface_toolbar_add(const iface_toolbar *toolbar);
69 void iface_toolbar_remove(const gchar *menu_title);
71 gboolean iface_toolbar_use(void);
73 void iface_toolbar_register_cb(iface_toolbar_add_cb_t, iface_toolbar_remove_cb_t);
77 #endif /* __cplusplus */
79 #endif /* __IFACE_TOOLBAR_H__ */
87 * indent-tabs-mode: nil
90 * ex: set shiftwidth=4 tabstop=8 expandtab:
91 * :indentSize=4:tabSize=8:noTabs=true: