diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-08-21 09:48:27 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-08-21 09:48:27 +0000 |
commit | a0e68da9180d65493a42f892fc298eefc9b1d17d (patch) | |
tree | d7b146739aeaeeadc557498ee810da7b71f3d8b9 /tap_dfilter_dlg.h | |
parent | e88b3ccb323aa7df6f1c89ff56c28cdfb4b1265a (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 'tap_dfilter_dlg.h')
-rw-r--r-- | tap_dfilter_dlg.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tap_dfilter_dlg.h b/tap_dfilter_dlg.h index a4f0166c84..5d398fa6de 100644 --- a/tap_dfilter_dlg.h +++ b/tap_dfilter_dlg.h @@ -58,5 +58,12 @@ typedef struct _tap_dfilter_dlg { gint index; /* initiate this value always with "-1" */ } tap_dfilter_dlg; +/* + * Register a stat that has a display filter dialog. + * We register it both as a command-line stat and a menu item stat. + */ +void register_dfilter_stat(tap_dfilter_dlg *info, const char *name, + REGISTER_STAT_GROUP_E group); + /* This will update the titles of the dialog windows when we load a new capture file. */ void tap_dfilter_dlg_update (void); |