#include <stdbool.h>
#include <glib.h>
Go to the source code of this file.
|
| enum | iface_toolbar_ctrl_type {
INTERFACE_TYPE_UNKNOWN
, INTERFACE_TYPE_BOOLEAN
, INTERFACE_TYPE_BUTTON
, INTERFACE_TYPE_SELECTOR
,
INTERFACE_TYPE_STRING
} |
| |
| enum | iface_toolbar_ctrl_role {
INTERFACE_ROLE_UNKNOWN
, INTERFACE_ROLE_CONTROL
, INTERFACE_ROLE_HELP
, INTERFACE_ROLE_LOGGER
,
INTERFACE_ROLE_RESTORE
} |
| |
Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later
◆ iface_toolbar_add()
Adds an interface toolbar to the application.
- Parameters
-
| toolbar | Pointer to the interface toolbar structure to be added. |
◆ iface_toolbar_register_cb()
| void iface_toolbar_register_cb |
( |
iface_toolbar_add_cb_t |
add_cb, |
|
|
iface_toolbar_remove_cb_t |
remove_cb |
|
) |
| |
Registers callback functions for interface toolbar operations.
- Parameters
-
| add_cb | Callback function to be called when an item is added to the toolbar. |
| remove_cb | Callback function to be called when an item is removed from the toolbar. |
◆ iface_toolbar_remove()
| void iface_toolbar_remove |
( |
const char * |
menu_title | ) |
|
Removes an interface toolbar item from the menu.
- Parameters
-
| menu_title | The title of the menu item to remove. |
◆ iface_toolbar_use()
| bool iface_toolbar_use |
( |
void |
| ) |
|
Checks if the interface toolbar is in use.
- Returns
- true if an add callback is registered, false otherwise.