Add a "-S" flag to dumpcap, which prints out interface statistics. Use
[obnox/wireshark/wip.git] / capture_sync.h
index e82027efc7c557bdee4c6ed33ed6da7602e7f200..a0a9f551854ee3bd64bd50c38eea2150ac51e17d 100644 (file)
@@ -71,4 +71,17 @@ sync_interface_list_open(gchar **msg);
 extern int
 sync_linktype_list_open(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, char *bytes, int max);
+
+
 #endif /* capture_sync.h */