diff options
author | lego <lego@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-02-11 13:05:24 +0000 |
---|---|---|
committer | lego <lego@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-02-11 13:05:24 +0000 |
commit | 4cf0965e67b7901ce372f9a41e815d99b3d69902 (patch) | |
tree | 04149b75555afc2d39791e321970f76b1bcaca38 /gtk/conversations_tcpip.c | |
parent | 4eeeb7d9231419272efd9b32edcdec2f0d1591c7 (diff) |
add an userdata argument to register_stat_cmd_arg() and its callback to use the callback for multiple registrations.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17252 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/conversations_tcpip.c')
-rw-r--r-- | gtk/conversations_tcpip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/conversations_tcpip.c b/gtk/conversations_tcpip.c index f3a099f787..67f932968f 100644 --- a/gtk/conversations_tcpip.c +++ b/gtk/conversations_tcpip.c @@ -55,7 +55,7 @@ tcpip_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_ static void -tcpip_conversation_init(const char *optarg) +tcpip_conversation_init(const char *optarg, void* userdata _U_) { const char *filter=NULL; @@ -73,14 +73,14 @@ tcpip_conversation_init(const char *optarg) static void tcpip_conversation_cb(GtkWidget *w _U_, gpointer d _U_) { - tcpip_conversation_init("conv,tcp"); + tcpip_conversation_init("conv,tcp",NULL); } void register_tap_listener_tcpip_conversation(void) { - register_stat_cmd_arg("conv,tcp", tcpip_conversation_init); + register_stat_cmd_arg("conv,tcp", tcpip_conversation_init,NULL); register_stat_menu_item("TCP (IPv4 & IPv6)", REGISTER_STAT_GROUP_CONVERSATION_LIST, tcpip_conversation_cb, NULL, NULL, NULL); |