|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Vtable of GUI operations provided to the Lua funnel API, abstracting all UI interactions behind function pointers. More...
#include <funnel.h>
Public Attributes | |
| funnel_ops_id_t * | ops_id |
| funnel_text_window_t *(* | new_text_window )(funnel_ops_id_t *ops_id, const char *label) |
| Creates and displays a new text window with the given label. | |
| void(* | set_text )(funnel_text_window_t *win, const char *text) |
| Replaces the entire contents of a text window with the given text. | |
| void(* | append_text )(funnel_text_window_t *win, const char *text) |
| Appends text to the end of a text window's contents. | |
| void(* | prepend_text )(funnel_text_window_t *win, const char *text) |
| Prepends text to the beginning of a text window's contents. | |
| void(* | clear_text )(funnel_text_window_t *win) |
| Clears all text content from a text window. | |
| const char *(* | get_text )(funnel_text_window_t *win) |
| Retrieves the current text content of a text window. | |
| void(* | set_close_cb )(funnel_text_window_t *win, text_win_close_cb_t cb, void *data) |
| Registers a callback to be invoked when a text window is closed. | |
| void(* | set_editable )(funnel_text_window_t *win, bool editable) |
| Sets whether a text window's content is user-editable. | |
| void(* | destroy_text_window )(funnel_text_window_t *win) |
| Destroys a text window and releases its associated resources. | |
| void(* | add_button )(funnel_text_window_t *win, funnel_bt_t *cb, const char *label) |
| Adds a button to a text window. | |
| void(* | new_dialog )(funnel_ops_id_t *ops_id, const char *title, const char **field_names, const char **field_values, funnel_dlg_cb_t dlg_cb, void *data, funnel_dlg_cb_data_free_t dlg_cb_data_free) |
| Opens a modal input dialog with a set of labeled fields. | |
| void(* | close_dialogs )(void) |
| Closes all open funnel dialogs. | |
| void(* | retap_packets )(funnel_ops_id_t *ops_id) |
| Triggers a retap of all packets, re-running tap listeners without full redissection. | |
| void(* | copy_to_clipboard )(GString *str) |
| Copies the contents of a GString to the system clipboard. | |
| const char *(* | get_filter )(funnel_ops_id_t *ops_id) |
| Retrieves the currently applied display filter string. | |
| void(* | set_filter )(funnel_ops_id_t *ops_id, const char *filter) |
| Applies a new display filter string to the packet list. | |
| char *(* | get_color_filter_slot )(uint8_t filt_nr) |
| Retrieves the display filter assigned to a color filter slot. | |
| void(* | set_color_filter_slot )(uint8_t filt_nr, const char *filter) |
| Assigns a display filter string to a color filter slot. | |
| bool(* | open_file )(funnel_ops_id_t *ops_id, const char *fname, const char *filter, char **error) |
| Opens a capture file, optionally applying a display filter. | |
| void(* | reload_packets )(funnel_ops_id_t *ops_id) |
| Reloads the current capture file from disk. | |
| void(* | redissect_packets )(funnel_ops_id_t *ops_id) |
| Forces a full redissection of all packets in the current capture. | |
| void(* | reload_lua_plugins )(funnel_ops_id_t *ops_id) |
| Reloads all Lua plugins and redissects packets. | |
| void(* | apply_filter )(funnel_ops_id_t *ops_id) |
| Applies the currently set display filter to the packet list. | |
| bool(* | browser_open_url )(const char *url) |
| Opens a URL in the system's default web browser. | |
| void(* | browser_open_data_file )(const char *filename) |
| Opens a local data file in the system's default application. | |
| struct progdlg *(* | new_progress_window )(funnel_ops_id_t *ops_id, const char *label, const char *task, bool terminate_is_stop, bool *stop_flag) |
| Creates and displays a progress dialog. | |
| void(* | update_progress )(struct progdlg *dlg, float pr, const char *task) |
| Updates the progress bar and task description of a progress dialog. | |
| void(* | destroy_progress_window )(struct progdlg *dlg) |
| Destroys a progress dialog and releases its resources. | |
Vtable of GUI operations provided to the Lua funnel API, abstracting all UI interactions behind function pointers.
| void(* _funnel_ops_t::add_button) (funnel_text_window_t *win, funnel_bt_t *cb, const char *label) |
Adds a button to a text window.
| win | The target text window. |
| cb | The button descriptor containing callback and data. |
| label | The label displayed on the button. |
| void(* _funnel_ops_t::append_text) (funnel_text_window_t *win, const char *text) |
Appends text to the end of a text window's contents.
| win | The target text window. |
| text | The text to append. |
| void(* _funnel_ops_t::apply_filter) (funnel_ops_id_t *ops_id) |
Applies the currently set display filter to the packet list.
| ops_id | The GUI instance identifier. |
| void(* _funnel_ops_t::browser_open_data_file) (const char *filename) |
Opens a local data file in the system's default application.
| filename | Path to the file to open. |
| bool(* _funnel_ops_t::browser_open_url) (const char *url) |
Opens a URL in the system's default web browser.
| url | The URL string to open. |
| void(* _funnel_ops_t::clear_text) (funnel_text_window_t *win) |
Clears all text content from a text window.
| win | The target text window. |
| void(* _funnel_ops_t::copy_to_clipboard) (GString *str) |
Copies the contents of a GString to the system clipboard.
| str | The string to copy to the clipboard. |
| void(* _funnel_ops_t::destroy_progress_window) (struct progdlg *dlg) |
Destroys a progress dialog and releases its resources.
| dlg | The progress dialog to destroy. |
| void(* _funnel_ops_t::destroy_text_window) (funnel_text_window_t *win) |
Destroys a text window and releases its associated resources.
| win | The text window to destroy. |
| char *(* _funnel_ops_t::get_color_filter_slot) (uint8_t filt_nr) |
Retrieves the display filter assigned to a color filter slot.
| filt_nr | Zero-based index of the color filter slot. |
| const char *(* _funnel_ops_t::get_filter) (funnel_ops_id_t *ops_id) |
Retrieves the currently applied display filter string.
| ops_id | The GUI instance identifier. |
| const char *(* _funnel_ops_t::get_text) (funnel_text_window_t *win) |
Retrieves the current text content of a text window.
| win | The target text window. |
| void(* _funnel_ops_t::new_dialog) (funnel_ops_id_t *ops_id, const char *title, const char **field_names, const char **field_values, funnel_dlg_cb_t dlg_cb, void *data, funnel_dlg_cb_data_free_t dlg_cb_data_free) |
Opens a modal input dialog with a set of labeled fields.
| ops_id | The GUI instance identifier. |
| title | Title of the dialog window. |
| field_names | NULL-terminated array of field label strings. |
| field_values | NULL-terminated array of default values for each field. |
| dlg_cb | Callback invoked when the user confirms the dialog. |
| data | User-supplied data passed to the dialog callback. |
| dlg_cb_data_free | Function used to free the user-supplied data when the dialog is dismissed. |
| struct progdlg *(* _funnel_ops_t::new_progress_window) (funnel_ops_id_t *ops_id, const char *label, const char *task, bool terminate_is_stop, bool *stop_flag) |
Creates and displays a progress dialog.
| ops_id | The GUI instance identifier. |
| label | Title label for the progress dialog. |
| task | Description of the current task shown in the dialog. |
| terminate_is_stop | True if termination should be labeled "Stop" rather than "Cancel". |
| stop_flag | Pointer to a flag set to true when the user requests cancellation. |
| funnel_text_window_t *(* _funnel_ops_t::new_text_window) (funnel_ops_id_t *ops_id, const char *label) |
Creates and displays a new text window with the given label.
| ops_id | The GUI instance identifier. |
| label | Title label for the new text window. |
| bool(* _funnel_ops_t::open_file) (funnel_ops_id_t *ops_id, const char *fname, const char *filter, char **error) |
Opens a capture file, optionally applying a display filter.
| ops_id | The GUI instance identifier. |
| fname | Path to the capture file to open. |
| filter | Optional display filter to apply after opening, or NULL. |
| error | On failure, set to a newly allocated error message string; caller must free it. |
| funnel_ops_id_t* _funnel_ops_t::ops_id |
Opaque identifier for the GUI instance that owns these operations.
| void(* _funnel_ops_t::prepend_text) (funnel_text_window_t *win, const char *text) |
Prepends text to the beginning of a text window's contents.
| win | The target text window. |
| text | The text to prepend. |
| void(* _funnel_ops_t::redissect_packets) (funnel_ops_id_t *ops_id) |
Forces a full redissection of all packets in the current capture.
| ops_id | The GUI instance identifier. |
| void(* _funnel_ops_t::reload_lua_plugins) (funnel_ops_id_t *ops_id) |
Reloads all Lua plugins and redissects packets.
| ops_id | The GUI instance identifier. |
| void(* _funnel_ops_t::reload_packets) (funnel_ops_id_t *ops_id) |
Reloads the current capture file from disk.
| ops_id | The GUI instance identifier. |
| void(* _funnel_ops_t::retap_packets) (funnel_ops_id_t *ops_id) |
Triggers a retap of all packets, re-running tap listeners without full redissection.
| ops_id | The GUI instance identifier. |
| void(* _funnel_ops_t::set_close_cb) (funnel_text_window_t *win, text_win_close_cb_t cb, void *data) |
Registers a callback to be invoked when a text window is closed.
| win | The target text window. |
| cb | The close callback function. |
| data | User-supplied data passed to the callback. |
| void(* _funnel_ops_t::set_color_filter_slot) (uint8_t filt_nr, const char *filter) |
Assigns a display filter string to a color filter slot.
| filt_nr | Zero-based index of the color filter slot. |
| filter | The display filter string to assign. |
| void(* _funnel_ops_t::set_editable) (funnel_text_window_t *win, bool editable) |
Sets whether a text window's content is user-editable.
| win | The target text window. |
| editable | True to allow editing, false to make the window read-only. |
| void(* _funnel_ops_t::set_filter) (funnel_ops_id_t *ops_id, const char *filter) |
Applies a new display filter string to the packet list.
| ops_id | The GUI instance identifier. |
| filter | The display filter string to apply. |
| void(* _funnel_ops_t::set_text) (funnel_text_window_t *win, const char *text) |
Replaces the entire contents of a text window with the given text.
| win | The target text window. |
| text | The replacement text. |
| void(* _funnel_ops_t::update_progress) (struct progdlg *dlg, float pr, const char *task) |
Updates the progress bar and task description of a progress dialog.
| dlg | The progress dialog to update. |
| pr | Progress value in the range [0.0, 1.0]. |
| task | Updated description of the current task. |