aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/bootp_stat.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-21 09:48:27 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-21 09:48:27 +0000
commit4e2dc614bee84c03924c069aa0d1a9a1ad7260ed (patch)
treed7b146739aeaeeadc557498ee810da7b71f3d8b9 /gtk/bootp_stat.c
parent725a18bc618e9e30db8162ce702de7ec5e0ab816 (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15493 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/bootp_stat.c')
-rw-r--r--gtk/bootp_stat.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk/bootp_stat.c b/gtk/bootp_stat.c
index bf90b5a6cb..539682c7f0 100644
--- a/gtk/bootp_stat.c
+++ b/gtk/bootp_stat.c
@@ -33,8 +33,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"
@@ -42,6 +40,7 @@
#include "../register.h"
#include "../globals.h"
#include "compat_macros.h"
+#include "../stat_menu.h"
#include "../tap_dfilter_dlg.h"
#include "tap_dfilter_dlg.h"
@@ -282,8 +281,6 @@ static tap_dfilter_dlg dhcp_stat_dlg = {
void
register_tap_listener_gtkdhcpstat(void)
{
- register_stat_cmd_arg("bootp,stat", dhcpstat_init);
-
- register_stat_menu_item("BOOTP-DHCP", REGISTER_STAT_GROUP_NONE,
- gtk_tap_dfilter_dlg_cb, NULL, NULL, &(dhcp_stat_dlg));
+ register_dfilter_stat(&dhcp_stat_dlg, "BOOTP-DHCP",
+ REGISTER_STAT_GROUP_NONE);
}