|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Go to the source code of this file.
Classes | |
| struct | _funnel_bt_t |
| struct | _funnel_ops_t |
Typedefs | |
| typedef struct _funnel_ops_id_t | funnel_ops_id_t |
| typedef struct _funnel_text_window_t | funnel_text_window_t |
| typedef void(* | text_win_close_cb_t) (void *) |
| typedef void(* | funnel_dlg_cb_t) (char **user_input, void *data) |
| typedef void(* | funnel_dlg_cb_data_free_t) (void *data) |
| typedef bool(* | funnel_bt_cb_t) (funnel_text_window_t *tw, void *data) |
| typedef void(* | funnel_menu_callback) (void *) |
| typedef void(* | funnel_menu_callback_data_free) (void *) |
| typedef struct _funnel_bt_t | funnel_bt_t |
| typedef struct _funnel_ops_t | funnel_ops_t |
| typedef void(* | funnel_registration_cb_t) (const char *name, register_stat_group_t group, funnel_menu_callback callback, void *callback_data, bool retap) |
| typedef void(* | funnel_deregistration_cb_t) (funnel_menu_callback callback) |
| typedef void(* | funnel_packet_menu_callback) (void *, GPtrArray *) |
| typedef void(* | funnel_registration_packet_cb_t) (const char *name, const char *required_fields, funnel_packet_menu_callback callback, void *callback_data, bool retap) |
| typedef int(* | funnel_console_eval_cb_t) (const char *console_input, char **error_ptr, char **error_hint, void *callback_data) |
| typedef void(* | funnel_console_open_cb_t) (void(*print_func) (const char *, void *), void *print_data, void *callback_data) |
| typedef void(* | funnel_console_close_cb_t) (void *callback_data) |
| typedef void(* | funnel_console_data_free_cb_t) (void *callback_data) |
| typedef void(* | funnel_registration_console_cb_t) (const char *name, funnel_console_eval_cb_t eval_cb, funnel_console_open_cb_t open_cb, funnel_console_close_cb_t close_cb, void *callback_data) |
Functions | |
| WS_DLL_PUBLIC const funnel_ops_t * | funnel_get_funnel_ops (void) |
| Get the funnel operations. | |
| WS_DLL_PUBLIC bool | funnel_menu_registered (void) |
| Checks if a menu is registered. | |
| WS_DLL_PUBLIC void | funnel_register_menu (const char *name, register_stat_group_t group, funnel_menu_callback callback, void *callback_data, funnel_menu_callback_data_free callback_data_free, bool retap) |
| void | funnel_deregister_menus (funnel_menu_callback callback) |
| Deregisters a menu callback. | |
| WS_DLL_PUBLIC void | funnel_reload_menus (funnel_deregistration_cb_t d_cb, funnel_registration_cb_t r_cb) |
| Reloads the menus by deregistering and registering them again using provided callbacks. | |
| WS_DLL_PUBLIC void | funnel_cleanup (void) |
| Cleans up resources used by the funnel subsystem. | |
| WS_DLL_PUBLIC void | funnel_register_all_packet_menus (funnel_registration_packet_cb_t r_cb) |
| WS_DLL_PUBLIC void | funnel_register_packet_menu (const char *name, const char *required_fields, funnel_packet_menu_callback callback, void *callback_data, bool retap) |
| Entry point for Lua code to register a packet menu. | |
| WS_DLL_PUBLIC bool | funnel_packet_menus_modified (void) |
| WS_DLL_PUBLIC void | funnel_register_console_menu (const char *name, funnel_console_eval_cb_t eval_cb, funnel_console_open_cb_t open_cb, funnel_console_close_cb_t close_cb, void *callback_data, funnel_console_data_free_cb_t free_data) |
| WS_DLL_PUBLIC void | funnel_ops_init (const funnel_ops_t *ops, funnel_registration_cb_t r_cb, funnel_registration_console_cb_t rconsole_cb) |
EPAN's GUI mini-API
(c) 2006, Luis E. Garcia Ontanon luis@.nosp@m.onta.nosp@m.non.o.nosp@m.rg
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
| typedef void(* funnel_console_close_cb_t) (void *callback_data) |
Signature of function that can be called to remove logger.
| typedef void(* funnel_console_data_free_cb_t) (void *callback_data) |
Signature of function that can be called to free user data.
| typedef int(* funnel_console_eval_cb_t) (const char *console_input, char **error_ptr, char **error_hint, void *callback_data) |
Signature of function that can be called to evaluate code. Returns zero on success, -1 if precompilation failed, positive for runtime errors.
| typedef void(* funnel_console_open_cb_t) (void(*print_func)(const char *, void *), void *print_data, void *callback_data) |
Signature of function that can be called to install a logger.
| typedef void(* funnel_packet_menu_callback) (void *, GPtrArray *) |
Signature of function that can be called from a custom packet menu entry
| typedef void(* funnel_registration_console_cb_t) (const char *name, funnel_console_eval_cb_t eval_cb, funnel_console_open_cb_t open_cb, funnel_console_close_cb_t close_cb, void *callback_data) |
Signature of callback function to register console menu entries
| typedef void(* funnel_registration_packet_cb_t) (const char *name, const char *required_fields, funnel_packet_menu_callback callback, void *callback_data, bool retap) |
Signature of callback function to register packet menu entries
| WS_DLL_PUBLIC void funnel_cleanup | ( | void | ) |
Cleans up resources used by the funnel subsystem.
This function is responsible for freeing all allocated resources and cleaning up any state held by the funnel subsystem before it is terminated.
| void funnel_deregister_menus | ( | funnel_menu_callback | callback | ) |
Deregisters a menu callback.
| callback | The callback function to be deregistered. |
| WS_DLL_PUBLIC const funnel_ops_t * funnel_get_funnel_ops | ( | void | ) |
Get the funnel operations.
| WS_DLL_PUBLIC bool funnel_menu_registered | ( | void | ) |
Checks if a menu is registered.
| WS_DLL_PUBLIC void funnel_ops_init | ( | const funnel_ops_t * | ops, |
| funnel_registration_cb_t | r_cb, | ||
| funnel_registration_console_cb_t | rconsole_cb | ||
| ) |
Initialize the funnel operations. This is done outside of epan_init() because the funnel operations depend on GUI code.
| r_cb | function which will be called to register each console menu entry |
| WS_DLL_PUBLIC bool funnel_packet_menus_modified | ( | void | ) |
Returns whether the packet menus have been modified since they were last registered
| WS_DLL_PUBLIC void funnel_register_all_packet_menus | ( | funnel_registration_packet_cb_t | r_cb | ) |
Entry point for Wireshark GUI to obtain all registered packet menus
| r_cb | function which will be called to register each packet menu entry |
Entry point for Wireshark GUI to obtain all registered packet menus
Calls the supplied callback for each packet menu registered with funnel_register_packet_menu().
| r_cb | the callback function to call with each registered packet menu |
| WS_DLL_PUBLIC void funnel_register_console_menu | ( | const char * | name, |
| funnel_console_eval_cb_t | eval_cb, | ||
| funnel_console_open_cb_t | open_cb, | ||
| funnel_console_close_cb_t | close_cb, | ||
| void * | callback_data, | ||
| funnel_console_data_free_cb_t | free_data | ||
| ) |
Entry point for Lua code to register a console menu
Entry point for code to register a console menu
| WS_DLL_PUBLIC void funnel_register_packet_menu | ( | const char * | name, |
| const char * | required_fields, | ||
| funnel_packet_menu_callback | callback, | ||
| void * | callback_data, | ||
| bool | retap | ||
| ) |
Entry point for Lua code to register a packet menu.
| name | packet menu item's name |
| required_fields | fields required to be present for the packet menu to be displayed |
| callback | function called when the menu item is invoked. The function must take one argument and return nothing. |
| callback_data | Lua state for the callback function |
| retap | whether or not to rescan all packets |
Entry point for Lua code to register a packet menu
Stores the menu name and callback from the Lua code into registered_packet_menus so that the Wireshark GUI code can retrieve it with funnel_register_all_packet_menus().
| WS_DLL_PUBLIC void funnel_reload_menus | ( | funnel_deregistration_cb_t | d_cb, |
| funnel_registration_cb_t | r_cb | ||
| ) |
Reloads the menus by deregistering and registering them again using provided callbacks.
| d_cb | Callback function to deregister menu items. |
| r_cb | Callback function to register new menu items. |