|
Wireshark 4.7.3
The Wireshark network protocol analyzer
|
#include "ui/capture_opts.h"#include "capture_info.h"#include <epan/cfile.h>#include "capture/capture_session.h"Go to the source code of this file.
Typedefs | |
| typedef void(* | capture_callback_t) (int event, capture_session *cap_session, void *user_data) |
Enumerations | |
| enum | capture_cbs { capture_cb_capture_prepared , capture_cb_capture_update_started , capture_cb_capture_update_continue , capture_cb_capture_update_finished , capture_cb_capture_fixed_started , capture_cb_capture_fixed_continue , capture_cb_capture_fixed_finished , capture_cb_capture_stopping , capture_cb_capture_failed } |
| Event identifiers for live capture lifecycle callbacks. More... | |
Functions | |
| void | capture_callback_add (capture_callback_t func, void *user_data) |
| Add a capture callback. | |
| void | capture_callback_remove (capture_callback_t func, void *user_data) |
| Remove a capture callback. | |
| void | capture_input_init (capture_session *cap_session, capture_file *cf) |
| bool | capture_start (capture_options *capture_opts, GPtrArray *capture_comments, capture_session *cap_session, info_data_t *cap_data, void(*update_cb)(void)) |
| void | capture_stop (capture_session *cap_session) |
| Stop a capture session (usually from a menu item). | |
| void | capture_kill_child (capture_session *cap_session) |
| Terminate the capture child cleanly when exiting. | |
Definitions for packet capture windows
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
Capture related things.
| enum capture_cbs |
Event identifiers for live capture lifecycle callbacks.
|
extern |
Add a capture callback.
| func | The callback function. |
| user_data | User data to pass to the callback. |
|
extern |
Remove a capture callback.
| func | The callback function. |
| user_data | User data to pass to the callback. |
|
extern |
Initialize a capture session.
| cap_session | the handle for the capture session |
| cf | the capture_file for the file |
|
extern |
Terminate the capture child cleanly when exiting.
| cap_session | The handle for the capture session. |
|
extern |
Start a capture session.
| capture_opts | the numerous capture options |
| capture_comments | if not NULL, a GPtrArray * to a set of comments to put in the capture file's Section Header Block if it's a pcapng file |
| cap_session | the handle for the capture session |
| cap_data | a struct with capture info data |
| update_cb | update screen |
|
extern |
Stop a capture session (usually from a menu item).
| cap_session | The handle for the capture session. |