aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/rpc_stat.c
diff options
context:
space:
mode:
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2006-02-11 13:05:24 +0000
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2006-02-11 13:05:24 +0000
commit4cf0965e67b7901ce372f9a41e815d99b3d69902 (patch)
tree04149b75555afc2d39791e321970f76b1bcaca38 /gtk/rpc_stat.c
parent4eeeb7d9231419272efd9b32edcdec2f0d1591c7 (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/rpc_stat.c')
-rw-r--r--gtk/rpc_stat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/rpc_stat.c b/gtk/rpc_stat.c
index 094d70aa22..471a1cf666 100644
--- a/gtk/rpc_stat.c
+++ b/gtk/rpc_stat.c
@@ -216,7 +216,7 @@ win_destroy_cb(GtkWindow *win _U_, gpointer data)
/* When called, this function will create a new instance of gtk2-rpcstat.
*/
static void
-gtk_rpcstat_init(const char *optarg)
+gtk_rpcstat_init(const char *optarg, void* userdata _U_)
{
rpcstat_t *rs;
guint32 i;
@@ -333,7 +333,7 @@ rpcstat_start_button_clicked(GtkWidget *item _U_, gpointer data _U_)
g_string_sprintfa(str, ",%s", filter);
}
- gtk_rpcstat_init(str->str);
+ gtk_rpcstat_init(str->str,NULL);
g_string_free(str, TRUE);
}
@@ -538,7 +538,7 @@ gtk_rpcstat_cb(GtkWidget *w _U_, gpointer d _U_)
void
register_tap_listener_gtkrpcstat(void)
{
- register_stat_cmd_arg("rpc,srt,", gtk_rpcstat_init);
+ register_stat_cmd_arg("rpc,srt,", gtk_rpcstat_init, NULL);
register_stat_menu_item("ONC-RPC...", REGISTER_STAT_GROUP_RESPONSE_TIME,
gtk_rpcstat_cb, NULL, NULL, NULL);