diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2013-06-27 17:10:50 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2013-06-27 17:10:50 +0000 |
commit | 0bdc0efc46ec66a298306aae253225c702ed6bea (patch) | |
tree | 1d6db93f3252994330777f123cb3d038518080e9 /capture_ifinfo.h | |
parent | b450609a5561db9ddfc23b41c742979f5c4b3a32 (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_ifinfo.h')
-rw-r--r-- | capture_ifinfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/capture_ifinfo.h b/capture_ifinfo.h index 097d9e10ba..b19454f899 100644 --- a/capture_ifinfo.h +++ b/capture_ifinfo.h @@ -77,7 +77,7 @@ typedef struct { /** * Fetch the interface list from a child process. */ -extern GList *capture_interface_list(int *err, char **err_str); +extern GList *capture_interface_list(int *err, char **err_str, void (*update_cb)(void)); /* Error values from "get_interface_list()/capture_interface_list()". */ #define CANT_GET_INTERFACE_LIST 1 /* error getting list */ @@ -110,7 +110,7 @@ typedef struct { */ extern if_capabilities_t * capture_get_if_capabilities(const char *devname, gboolean monitor_mode, - char **err_str); + char **err_str, void (*update_cb)(void)); void free_if_capabilities(if_capabilities_t *caps); |