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);
90 ws_process_id fork_child;
91 int fork_child_status;
94 int signal_pipe_write_fd;
101 bool session_will_restart;
103 uint32_t count_pending;
108 struct _info_data *cap_data_info;
111 fifo_string_cache_t frame_dup_cache;
112 GChecksum *frame_cksum;
118 new_file_fn new_file;
119 new_packets_fn new_packets;
122 cfilter_error_fn cfilter_error;
129 new_file_fn new_file, new_packets_fn new_packets,
130 drops_fn drops, message_fn error,
131 cfilter_error_fn cfilter_error,
132 message_fn warning, closed_fn closed);
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:144
int dummy
Definition capture_session.h:145
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.