18#ifndef __SYNC_PIPE_H__
19#define __SYNC_PIPE_H__
21#include <ws_posix_compat.h>
38#define SP_MAX_MSG_LEN (512 * 1000)
47#define SP_EXEC_FAILED 'X'
49#define SP_ERROR_MSG 'E'
50#define SP_WARNING_MSG 'W'
52#define SP_BAD_FILTER 'B'
53#define SP_PACKET_COUNT 'P'
56#define SP_TOOLBAR_CTRL 'T'
57#define SP_IFACE_LIST 'I'
65sync_pipe_convert_header(
const unsigned char *header,
char *indicator,
unsigned *block_len);
67sync_pipe_read_block(GIOChannel *pipe_io,
char *indicator,
unsigned len,
char *msg,
123 const char *secondary_error_msg);
133 const char *secondary_warning_msg);
136#define SIGNAL_PIPE_CTRL_ID_NONE "none"
138#define SIGNAL_PIPE_FORMAT "\\\\.\\pipe\\wireshark.%s.signal"
void sync_pipe_write_uint_msg(int pipe_fd, char indicator, unsigned int num)
Writes a string message to the recipient pipe.
Definition sync_pipe_write.c:91
void sync_pipe_write_int_msg(int pipe_fd, char indicator, int num)
Writes a string message to the recipient pipe.
Definition sync_pipe_write.c:104
void sync_pipe_write_errmsgs_to_parent(int pipe_fd, const char *error_msg, const char *secondary_error_msg)
Notify the parent that the child encountered an error.
Definition sync_pipe_write.c:120
void sync_pipe_write_warnmsgs_to_parent(int pipe_fd, const char *warning_msg, const char *secondary_warning_msg)
Notify the parent that the child encountered an warning indication.
Definition sync_pipe_write.c:137
void sync_pipe_write_string_msg(int pipe_fd, char indicator, const char *msg)
Writes a string message to the recipient pipe.
Definition sync_pipe_write.c:48