LATER... ei_kerberos_kdc_session_key ...
[wireshark-sm.git] / ui / iface_toolbar.c
blob0e8d0768ac52e044eb2e023e8f7d386aa5c67ffe
1 /* iface_toolbar.cpp
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
8 */
10 #include "config.h"
12 #include <glib.h>
14 #include "iface_toolbar.h"
17 static iface_toolbar_add_cb_t iface_toolbar_add_cb;
18 static iface_toolbar_remove_cb_t iface_toolbar_remove_cb;
20 void iface_toolbar_add(const iface_toolbar *toolbar)
22 if (iface_toolbar_add_cb) {
23 iface_toolbar_add_cb(toolbar);
27 void iface_toolbar_remove(const char *menu_title)
29 if (iface_toolbar_remove_cb) {
30 iface_toolbar_remove_cb(menu_title);
34 bool iface_toolbar_use(void)
36 return iface_toolbar_add_cb ? true : false;
39 void iface_toolbar_register_cb(iface_toolbar_add_cb_t add_cb, iface_toolbar_remove_cb_t remove_cb)
41 iface_toolbar_add_cb = add_cb;
42 iface_toolbar_remove_cb = remove_cb;