Calculate/show time between Msg3 and Msg4
[obnox/wireshark/wip.git] / capture_sync.h
index 5e3cb7c9e5049dee522b8ad8f39906189f74b61d..26a6b7afe452abbba83b0710c637cb5b88d77bd8 100644 (file)
@@ -58,14 +58,30 @@ 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);
 
+/** Get a linktype list using dumpcap */
+extern int
+sync_linktype_list_open(const gchar *ifname, gchar **msg);
+
+/** Start getting interface statistics using dumpcap. */
+extern int
+sync_interface_stats_open(int *read_fd, int *fork_child, gchar **msg);
+
+/** Stop gathering statistics. */
+extern int
+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_fd, char *bytes, int max);
+
 
 #endif /* capture_sync.h */