summaryrefslogtreecommitdiff
path: root/ui/gtk/rpc_stat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-11-14 10:31:04 -0800
committerGuy Harris <guy@alum.mit.edu>2014-11-14 18:31:34 +0000
commit7390516f61e64568e8cbdee64dbb6b908bbc2676 (patch)
treefe3df59e8bbc67667af55349680d610176e2fddf /ui/gtk/rpc_stat.c
parent09f0d2c6c4ac65f6e05c0943c4fb1ede42b1b633 (diff)
downloadwireshark-7390516f61e64568e8cbdee64dbb6b908bbc2676.tar.gz
For tap UIs, register a list of parameters and some menu information.
The intent here is to centralize more UI information so that we can move more tap UI stuff to common code. This is a beginning. Change-Id: Ic35ac0c01bc7b942aab88177db4065847a5e6c30 Reviewed-on: https://code.wireshark.org/review/5301 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/gtk/rpc_stat.c')
-rw-r--r--ui/gtk/rpc_stat.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/ui/gtk/rpc_stat.c b/ui/gtk/rpc_stat.c
index 81a7b01303..1687c68274 100644
--- a/ui/gtk/rpc_stat.c
+++ b/ui/gtk/rpc_stat.c
@@ -523,9 +523,19 @@ gtk_rpcstat_cb(GtkAction *action _U_, gpointer user_data _U_)
}
+static tap_ui rpcstat_ui = {
+ REGISTER_STAT_GROUP_GENERIC,
+ NULL,
+ "rpc,srt,",
+ gtk_rpcstat_init,
+ -1,
+ 0,
+ NULL
+};
+
void
register_tap_listener_gtkrpcstat(void)
{
- register_stat_cmd_arg("rpc,srt,", gtk_rpcstat_init, NULL);
+ register_tap_ui(&rpcstat_ui, NULL);
}