summaryrefslogtreecommitdiff
path: root/capture_sync.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2007-08-02 21:45:27 +0000
committerGerald Combs <gerald@wireshark.org>2007-08-02 21:45:27 +0000
commit89a2966ced23693ab513131ef37641ed40787e01 (patch)
treecca4caad8e2d8be6877bd0cb6820661817c69dfb /capture_sync.h
parent98309a6c837fb050aeab6106b619701cbb75af9f (diff)
downloadwireshark-89a2966ced23693ab513131ef37641ed40787e01.tar.gz
Add a "-S" flag to dumpcap, which prints out interface statistics. Use
this in the GUI rather than calling pcap_stats() directly. This gets rid of the last pcap_open_live() call in the GUI code. Update README.packaging. svn path=/trunk/; revision=22443
Diffstat (limited to 'capture_sync.h')
-rw-r--r--capture_sync.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/capture_sync.h b/capture_sync.h
index e82027efc7..a0a9f55185 100644
--- a/capture_sync.h
+++ b/capture_sync.h
@@ -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 */