aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/sctp_chunk_stat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-08-19 09:29:41 +0000
committerGuy Harris <guy@alum.mit.edu>2005-08-19 09:29:41 +0000
commitb2807e2ab65c7c96b38c4b08b4b491986719378a (patch)
tree76e4a11481ef4c452fdb6528527c87a5b32d6631 /gtk/sctp_chunk_stat.c
parent3723032609805d89e3a155d6273833f7febdd899 (diff)
Move the APIs for registering and processing "-z" command-line arguments
and "Statistics" menu items into "stat.h" and "stat.c", to separate them from the core tapping APIs. A tap could conceivably not register as a "-z" command-line argument or "Statistics" menu item, and a stat could conceivably not be implemented as a tap, and dissectors that implement tapping points don't need the UI-related stuff from "stat.h", they just want the tap-related stuff in <epan/tap.h>. svn path=/trunk/; revision=15427
Diffstat (limited to 'gtk/sctp_chunk_stat.c')
-rw-r--r--gtk/sctp_chunk_stat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/sctp_chunk_stat.c b/gtk/sctp_chunk_stat.c
index 0f7e4268bb..0aed0e9c0f 100644
--- a/gtk/sctp_chunk_stat.c
+++ b/gtk/sctp_chunk_stat.c
@@ -40,7 +40,8 @@
#include <epan/epan.h>
#include <epan/value_string.h>
-#include "tap_menu.h"
+#include "../stat.h"
+#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"
#include <epan/dissectors/packet-sctp.h>
@@ -344,8 +345,8 @@ sctpstat_init(const char *optarg)
void
register_tap_listener_sctpstat(void)
{
- register_tap_listener_cmd_arg("sctp,stat", sctpstat_init);
+ register_stat_cmd_arg("sctp,stat", sctpstat_init);
- register_tap_menu_item("SCTP/Chunk Counter", REGISTER_TAP_GROUP_TELEPHONY,
+ register_stat_menu_item("SCTP/Chunk Counter", REGISTER_STAT_GROUP_TELEPHONY,
gtk_tap_dfilter_dlg_cb, NULL, NULL, &(sctp_stat_dlg));
}