12#ifndef __CAPCHILD_CAPTURE_SESSION_H__
13#define __CAPCHILD_CAPTURE_SESSION_H__
22#include <epan/fifo_string_cache.h>
53typedef bool (*new_file_fn)(
capture_session *cap_session,
char *new_file);
58typedef void (*new_packets_fn)(
capture_session *cap_session,
int to_read);
64 const char *interface_name);
70typedef void (*message_fn)(
capture_session *cap_session,
char *error_msg,
71 char *secondary_error_msg);
77typedef void (*cfilter_error_fn)(
capture_session *cap_session,
unsigned i,
78 const char *error_message);
84 const char *interface_name);
96 ws_process_id fork_child;
97 int fork_child_status;
100 int signal_pipe_write_fd;
107 bool session_will_restart;
109 uint32_t count_pending;
114 struct _info_data *cap_data_info;
117 fifo_string_cache_t frame_dup_cache;
118 GChecksum *frame_cksum;
121 GQueue toolbar_queue;
122 GMutex toolbar_mutex;
128 new_file_fn new_file;
129 new_packets_fn new_packets;
132 cfilter_error_fn cfilter_error;
134 toolbar_control_fn toolbar;
140 new_file_fn new_file, new_packets_fn new_packets,
141 drops_fn drops, message_fn error,
142 cfilter_error_fn cfilter_error,
143 message_fn warning, toolbar_control_fn toolbar,
struct capture_options_tag capture_options
struct _capture_session capture_session
Opaque handle representing an active or pending capture session.
struct _capture_file capture_file
Represents a capture file and its associated metadata.
Opaque handle representing an active or pending capture session.
Definition capture_session.h:156
int dummy
Definition capture_session.h:157
Aggregates packet count statistics and UI state for a live capture info display.
Definition capture_info.h:43
struct wtap_rec wtap_rec
Represents a single capture record read from or written to a capture file, regardless of record type.