aboutsummaryrefslogtreecommitdiffstats
path: root/tap_dfilter_dlg.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-21 11:09:36 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-21 11:09:36 +0000
commitf6a401fed23ace54e00083eeb52cc9f2748e8d3f (patch)
tree5766dc83aebeaeb817c5ee3a7ff525eb31fedc51 /tap_dfilter_dlg.h
parentb8c063ef164816a7fe94d9283688d1a4fdf6bf1f (diff)
"gtk_tap_dfilter_dlg_cb()" is no longer used outside
gtk/tap_dfilter_dlg.c; don't export it. That means that gtk/tap_dfilter_dlg.h is no longer useful; get rid of it. Rename "gtk_tap_dfilter_dlg_cb()" to "tap_dfilter_dlg_cb()", as it's inside GTK+-specific code, so there's no need to distinguish it from non-GTK+ callbacks. Update some comments to reflect the name change and the new API for registering tap_dfilter_dlg stats. Make the AFP and SMB stats use the gtk/tap_dfilter_dlg.c stuff. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15496 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tap_dfilter_dlg.h')
-rw-r--r--tap_dfilter_dlg.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/tap_dfilter_dlg.h b/tap_dfilter_dlg.h
index 5d398fa6de..427502cd82 100644
--- a/tap_dfilter_dlg.h
+++ b/tap_dfilter_dlg.h
@@ -31,20 +31,24 @@
* Initiate it with:
* 1) a title string for the Dialog Window
* 2) the init string, which is the same as the string after "-z" option without
- * the filter string and without the seperating comma.
+ * the filter string and without the separating comma.
* 3) a pointer to the init function of the tap, which will be called when you click
* on the start button in the display filter dialog.
* 4) the index with "-1"
*
- * Within register_tap_menu_yourtap(void), call register_stat_menu_item() with gtk_tap_dfilter_dlg_cb as callback and a pointer
- * to the global tap_dfilter_dlg structure .
+ * Within register_tap_menu_yourtap(void), call register_dfilter_stat()
+ * with a pointer to the tap_dfilter_dlg structure, a string for the
+ * menu item (don't put "..." at the end, register_dfilter_stat() will
+ * add it for you), and the REGISTER_STAT_GROUP_ value for the stat
+ * group to which your stat should belong.
*
* Usage:
*
* tap_dfilter_dlg my_tap_dfilter_dlg = {"My Title", "myproto,mytap", gtk_mytap_init, -1};
*
* register_tap_menu_mytap(void) {
- * register_stat_menu_item(char *menu_string, gtk_tap_dfilter_dlg_cb, NULL, NULL, &(my_tap_dfilter_dlg));
+ * register_dfilter_stat(&my_tap_dfilter_dlg, "My Menu Item",
+ * REGISTER_STAT_GROUP_my_group);
* }
*
* See also: h225_ras_srt.c or h225_counter.c