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__
19 #endif /* __cplusplus */
22 INTERFACE_TYPE_UNKNOWN
,
23 INTERFACE_TYPE_BOOLEAN
,
24 INTERFACE_TYPE_BUTTON
,
25 INTERFACE_TYPE_SELECTOR
,
27 } iface_toolbar_ctrl_type
;
30 INTERFACE_ROLE_UNKNOWN
,
31 INTERFACE_ROLE_CONTROL
,
33 INTERFACE_ROLE_LOGGER
,
34 INTERFACE_ROLE_RESTORE
35 } iface_toolbar_ctrl_role
;
37 typedef struct _iface_toolbar_value
{
42 } iface_toolbar_value
;
44 typedef struct _iface_toolbar_control
{
46 iface_toolbar_ctrl_type ctrl_type
;
47 iface_toolbar_ctrl_role ctrl_role
;
58 } iface_toolbar_control
;
60 typedef struct _iface_toolbar
{
67 typedef void (*iface_toolbar_add_cb_t
)(const iface_toolbar
*);
68 typedef void (*iface_toolbar_remove_cb_t
)(const char *);
70 void iface_toolbar_add(const iface_toolbar
*toolbar
);
72 void iface_toolbar_remove(const char *menu_title
);
74 bool iface_toolbar_use(void);
76 void iface_toolbar_register_cb(iface_toolbar_add_cb_t
, iface_toolbar_remove_cb_t
);
80 #endif /* __cplusplus */
82 #endif /* __IFACE_TOOLBAR_H__ */