aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/sip_stat.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/sip_stat.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/sip_stat.c')
-rw-r--r--gtk/sip_stat.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/sip_stat.c b/gtk/sip_stat.c
index e838fb6a17..3618a720ce 100644
--- a/gtk/sip_stat.c
+++ b/gtk/sip_stat.c
@@ -34,8 +34,6 @@
#include <epan/packet_info.h>
#include <epan/epan.h>
-#include <epan/stat_cmd_args.h>
-#include "stat_menu.h"
#include "simple_dialog.h"
#include "gui_utils.h"
#include "dlg_utils.h"
@@ -44,6 +42,7 @@
#include <epan/dissectors/packet-sip.h>
#include "../globals.h"
#include "compat_macros.h"
+#include "../stat_menu.h"
#include "../tap_dfilter_dlg.h"
#include "tap_dfilter_dlg.h"
@@ -663,8 +662,5 @@ static tap_dfilter_dlg sip_stat_dlg = {
void
register_tap_listener_gtksipstat(void)
{
- register_stat_cmd_arg("sip,stat", gtk_sipstat_init);
-
- register_stat_menu_item("SIP", REGISTER_STAT_GROUP_TELEPHONY,
- gtk_tap_dfilter_dlg_cb, NULL, NULL, &(sip_stat_dlg));
+ register_dfilter_stat(&sip_stat_dlg, "SIP", REGISTER_STAT_GROUP_TELEPHONY);
}