From 7390516f61e64568e8cbdee64dbb6b908bbc2676 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 14 Nov 2014 10:31:04 -0800 Subject: 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 --- ui/cli/tap-sctpchunkstat.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'ui/cli/tap-sctpchunkstat.c') diff --git a/ui/cli/tap-sctpchunkstat.c b/ui/cli/tap-sctpchunkstat.c index a19e5efb25..3c3843db93 100644 --- a/ui/cli/tap-sctpchunkstat.c +++ b/ui/cli/tap-sctpchunkstat.c @@ -241,11 +241,20 @@ sctpstat_init(const char *opt_arg, void *userdata _U_) } } +static tap_ui sctpstat_ui = { + REGISTER_STAT_GROUP_GENERIC, + NULL, + "sctp,stat", + sctpstat_init, + -1, + 0, + NULL +}; void register_tap_listener_sctpstat(void) { - register_stat_cmd_arg("sctp,stat", sctpstat_init, NULL); + register_tap_ui(&sctpstat_ui, NULL); } /* -- cgit v1.2.1