aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.h
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2013-06-27 17:10:50 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2013-06-27 17:10:50 +0000
commit0bdc0efc46ec66a298306aae253225c702ed6bea (patch)
tree1d6db93f3252994330777f123cb3d038518080e9 /capture_sync.h
parentb450609a5561db9ddfc23b41c742979f5c4b3a32 (diff)
get main_window_update out of the way... pass an update_cb to the capture_sync stuff
... as per the XXX comment removed from tshark.c this was a mess to keep the linker happy... I couldn't! I did this without even understanding whether calling main_window_update was realy necessary in most cases. I guess nothing or more specific update cbs would be best. svn path=/trunk/; revision=50188
Diffstat (limited to 'capture_sync.h')
-rw-r--r--capture_sync.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/capture_sync.h b/capture_sync.h
index 337abc5819..8da65956fe 100644
--- a/capture_sync.h
+++ b/capture_sync.h
@@ -47,7 +47,7 @@
* @return TRUE if a capture could be started, FALSE if not
*/
extern gboolean
-sync_pipe_start(capture_options *capture_opts, capture_session *cap_session);
+sync_pipe_start(capture_options *capture_opts, capture_session *cap_session, void(*update_cb)(void));
/** User wants to stop capturing, gracefully close the capture child */
extern void
@@ -61,22 +61,22 @@ sync_pipe_kill(int fork_child);
extern int
sync_interface_set_80211_chan(const gchar *iface, const char *freq, const gchar *type,
gchar **data, gchar **primary_msg,
- gchar **secondary_msg);
+ gchar **secondary_msg, void (*update_cb)(void));
/** Get an interface list using dumpcap */
extern int
sync_interface_list_open(gchar **data, gchar **primary_msg,
- gchar **secondary_msg);
+ gchar **secondary_msg, void (*update_cb)(void));
/** Get interface capabilities using dumpcap */
extern int
sync_if_capabilities_open(const gchar *ifname, gboolean monitor_mode,
gchar **data, gchar **primary_msg,
- gchar **secondary_msg);
+ gchar **secondary_msg, void (*update_cb)(void));
/** Start getting interface statistics using dumpcap. */
extern int
-sync_interface_stats_open(int *read_fd, int *fork_child, gchar **msg);
+sync_interface_stats_open(int *read_fd, int *fork_child, gchar **msg, void (*update_cb)(void));
/** Stop gathering statistics. */
extern int