20#ifndef __CAPTURE_SYNC_H__
21#define __CAPTURE_SYNC_H__
54 void(*update_cb)(
void));
102 const char *center_freq1,
const char *center_freq2,
103 char **data,
char **primary_msg,
104 char **secondary_msg,
void (*update_cb)(
void));
128 bool optimize,
char **data,
char **primary_msg,
129 char **secondary_msg,
void (*update_cb)(
void));
144 char **secondary_msg,
void (*update_cb)(
void));
162 char **data,
char **primary_msg,
163 char **secondary_msg,
void (*update_cb)(
void));
178 char **data,
char **primary_msg,
179 char **secondary_msg,
void (*update_cb)(
void));
void sync_pipe_kill(ws_process_id fork_child)
Forcefully terminate the capture child process as quickly as possible.
void sync_pipe_stop(capture_session *cap_session)
Request that the capture child stop capturing and shut down cleanly.
int sync_interface_list_open(const char *app_name, char **data, char **primary_msg, char **secondary_msg, void(*update_cb)(void))
Get an interface list using dumpcap.
bool sync_pipe_start(capture_options *capture_opts, GPtrArray *capture_comments, capture_session *cap_session, struct _info_data *cap_data, void(*update_cb)(void))
Start a new capture session.
int sync_interface_set_80211_chan(const char *app_name, const char *iface, const char *freq, const char *type, const char *center_freq1, const char *center_freq2, char **data, char **primary_msg, char **secondary_msg, void(*update_cb)(void))
Set wireless channel using dumpcap.
int sync_pipe_gets_nonblock(int pipe_fd, char *bytes, int max)
Read a line from a pipe in non‑blocking mode.
void capture_sync_set_fetch_dumpcap_pid_cb(void(*cb)(ws_process_id pid))
Set a callback function to to be called with the PID of the forked child.
int sync_interface_stats_open(const char *app_name, int *read_fd, ws_process_id *fork_child, char **data, char **msg, void(*update_cb)(void))
Open an interface statistics stream using dumpcap.
int sync_if_capabilities_open(const char *app_name, const char *ifname, bool monitor_mode, const char *auth, char **data, char **primary_msg, char **secondary_msg, void(*update_cb)(void))
Get interface capabilities using dumpcap.
int sync_if_list_capabilities_open(const char *app_name, GList *ifqueries, char **data, char **primary_msg, char **secondary_msg, void(*update_cb)(void))
Start getting interface statistics using dumpcap.
int sync_if_bpf_filter_open(const char *app_name, const char *ifname, const char *filter, int linktype, bool optimize, char **data, char **primary_msg, char **secondary_msg, void(*update_cb)(void))
Compile a capture filter and get its BPF bytecode (in human-readable form.)
int sync_interface_stats_close(int *read_fd, ws_process_id *fork_child, char **msg)
Close an interface statistics stream previously opened with dumpcap.
Definition capture_session.h:136
Definition capture_info.h:40
Definition capture_opts.h:236
const char * app_name
Definition capture_opts.h:249