aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/h225_ras_srt.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-08-21 09:48:27 +0000
committerGuy Harris <guy@alum.mit.edu>2005-08-21 09:48:27 +0000
commita0e68da9180d65493a42f892fc298eefc9b1d17d (patch)
treed7b146739aeaeeadc557498ee810da7b71f3d8b9 /gtk/h225_ras_srt.c
parente88b3ccb323aa7df6f1c89ff56c28cdfb4b1265a (diff)
Add a "register_dfilter_stat()", to register stats that take a display
filter as an argument on the command line and have a dialog box to enter the display filter through the GUI. Use it for all stats using "gtk_tap_dfilter_dlg_cb()". Add a top-level "stat_menu.h" file to declare "REGISTER_STAT_GROUP_E" for the benefit of the declaration of "register_dfilter_stat()" in the top-level "tap_dfilter_dlg.h". Rename the "stat_menu.h" in the gtk directory to "gtk_stat_menu.h", so as not to have two headers with the same name. Get rid of headers not declaring any functions not being used in the module. svn path=/trunk/; revision=15493
Diffstat (limited to 'gtk/h225_ras_srt.c')
-rw-r--r--gtk/h225_ras_srt.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk/h225_ras_srt.c b/gtk/h225_ras_srt.c
index 6203bff88c..6e3ea7c81d 100644
--- a/gtk/h225_ras_srt.c
+++ b/gtk/h225_ras_srt.c
@@ -39,8 +39,6 @@
#include <epan/epan.h>
#include <epan/value_string.h>
-#include <epan/stat_cmd_args.h>
-#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"
#include <epan/dissectors/packet-h225.h>
@@ -51,6 +49,7 @@
#include "dlg_utils.h"
#include "../file.h"
#include "../globals.h"
+#include "../stat_menu.h"
#include "../tap_dfilter_dlg.h"
#include "tap_dfilter_dlg.h"
#include "gui_utils.h"
@@ -343,8 +342,6 @@ gtk_h225rassrt_init(const char *optarg)
void
register_tap_listener_gtk_h225rassrt(void)
{
- register_stat_cmd_arg("h225,srt", gtk_h225rassrt_init);
-
- register_stat_menu_item("H.225 RAS...", REGISTER_STAT_GROUP_RESPONSE_TIME,
- gtk_tap_dfilter_dlg_cb, NULL, NULL, &(h225_rassrt_dlg));
+ register_dfilter_stat(&h225_rassrt_dlg, "H.225 RAS...",
+ REGISTER_STAT_GROUP_RESPONSE_TIME);
}