Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions
iface_toolbar.h File Reference
#include <stdbool.h>
#include <glib.h>

Go to the source code of this file.

Classes

struct  _iface_toolbar_value
 
struct  _iface_toolbar_control
 
struct  _iface_toolbar
 

Typedefs

typedef struct _iface_toolbar_value iface_toolbar_value
 
typedef struct _iface_toolbar_control iface_toolbar_control
 
typedef struct _iface_toolbar iface_toolbar
 
typedef void(* iface_toolbar_add_cb_t) (const iface_toolbar *)
 
typedef void(* iface_toolbar_remove_cb_t) (const char *)
 

Enumerations

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
}
 

Functions

void iface_toolbar_add (const iface_toolbar *toolbar)
 Adds an interface toolbar to the application.
 
void iface_toolbar_remove (const char *menu_title)
 Removes an interface toolbar item from the menu.
 
bool iface_toolbar_use (void)
 Checks if the interface toolbar is in use.
 
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.
 

Detailed Description

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

Function Documentation

◆ iface_toolbar_add()

void iface_toolbar_add ( const iface_toolbar toolbar)

Adds an interface toolbar to the application.

Parameters
toolbarPointer 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_cbCallback function to be called when an item is added to the toolbar.
remove_cbCallback 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_titleThe 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.