X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=blobdiff_plain;f=capture_sync.h;h=d38e2ddd77d6cdf95f045af2c845764903038936;hp=46eff4a71519ce1f22ecf9540078ebf2b73efcc4;hb=d9bd6b6f4469d6c090a07eb657392529f53f4833;hpb=735f46b6cb3d084bc9e41535206ffc6efbe462b8 diff --git a/capture_sync.h b/capture_sync.h index 46eff4a715..d38e2ddd77 100644 --- a/capture_sync.h +++ b/capture_sync.h @@ -57,21 +57,16 @@ sync_pipe_stop(capture_options *capture_opts); extern void sync_pipe_kill(int fork_child); -/** Has the parent signalled the child to stop? */ -#define SIGNAL_PIPE_CTRL_ID_NONE "none" -#ifdef _WIN32 -extern gboolean -signal_pipe_check_running(void); -#define SIGNAL_PIPE_FORMAT "\\\\.\\pipe\\wireshark.%s.signal" -#endif - /** Get an interface list using dumpcap */ extern int -sync_interface_list_open(gchar **msg); +sync_interface_list_open(gchar **data, gchar **primary_msg, + gchar **secondary_msg); -/** Get a linktype list using dumpcap */ +/** Get interface capabilities using dumpcap */ extern int -sync_linktype_list_open(gchar *ifname, gchar **msg); +sync_if_capabilities_open(const gchar *ifname, gboolean monitor_mode, + gchar **data, gchar **primary_msg, + gchar **secondary_msg); /** Start getting interface statistics using dumpcap. */ extern int @@ -83,7 +78,7 @@ sync_interface_stats_close(int *read_fd, int *fork_child, gchar **msg); /** Read a line from a pipe, similar to fgets. Non-blocking. */ extern int -sync_pipe_gets_nonblock(int pipe, char *bytes, int max); +sync_pipe_gets_nonblock(int pipe_fd, char *bytes, int max); #endif /* capture_sync.h */