diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2006-02-11 13:05:24 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2006-02-11 13:05:24 +0000 |
commit | fcf7b3789cec5595880d27e0109387e2d8733b38 (patch) | |
tree | 04149b75555afc2d39791e321970f76b1bcaca38 /gtk/hostlist_eth.c | |
parent | ca970e37571a3a39d6fc257c899ffacc25222269 (diff) |
add an userdata argument to register_stat_cmd_arg() and its callback to use the callback for multiple registrations.
svn path=/trunk/; revision=17252
Diffstat (limited to 'gtk/hostlist_eth.c')
-rw-r--r-- | gtk/hostlist_eth.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/hostlist_eth.c b/gtk/hostlist_eth.c index 5c0fcbc1ca..c7dacea0f9 100644 --- a/gtk/hostlist_eth.c +++ b/gtk/hostlist_eth.c @@ -60,7 +60,8 @@ eth_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, cons static void -gtk_eth_hostlist_init(const char *optarg) +gtk_eth_hostlist_init(const char *optarg, + void* userdata _U_) { const char *filter=NULL; @@ -78,14 +79,14 @@ gtk_eth_hostlist_init(const char *optarg) static void gtk_eth_hostlist_cb(GtkWidget *w _U_, gpointer d _U_) { - gtk_eth_hostlist_init("hosts,eth"); + gtk_eth_hostlist_init("hosts,eth",NULL); } void register_tap_listener_eth_hostlist(void) { - register_stat_cmd_arg("hosts,eth", gtk_eth_hostlist_init); + register_stat_cmd_arg("hosts,eth", gtk_eth_hostlist_init,NULL); register_stat_menu_item("Ethernet", REGISTER_STAT_GROUP_ENDPOINT_LIST, gtk_eth_hostlist_cb, NULL, NULL, NULL); |