diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-12-03 22:38:50 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-12-03 22:38:50 +0000 |
commit | f856dbafa830a562da34b1aaf636fb941aa5a7c9 (patch) | |
tree | 628b6300241e9d52074a65bb42ffac05b6e5fe26 /dumpcap.c | |
parent | 8fdb9b2df974a38491cdcabc3e68ae2f66f15972 (diff) |
split some parts of the packet counting functions into their own files capture_info(.c/.h),
so we can use it from the main program
svn path=/trunk/; revision=16668
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -54,6 +54,7 @@ #include "capture.h" #include "capture_loop.h" +#include "capture_info.h" #ifdef _WIN32 #include "capture-wpcap.h" @@ -670,13 +671,13 @@ void main_window_update(void) {} -void capture_info_create(capture_info *cinfo, gchar *iface) {} +void capture_info_ui_create(capture_info *cinfo, gchar *iface) {} -void capture_info_update(capture_info *cinfo) { +void capture_info_ui_update(capture_info *cinfo) { printf("Packets: %u\r", cinfo->counts->total); } -void capture_info_destroy(capture_info *cinfo) {} +void capture_info_ui_destroy(capture_info *cinfo) {} static gpointer * |