diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-12-19 23:41:55 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-12-19 23:41:55 +0000 |
commit | 39f5418dc0d40df41f329c4b9eeb59fd5a530e9a (patch) | |
tree | 1e98a2488910ce5e2ef9e67ab11250ecedf6b3b6 /gtk/tap_dfilter_dlg.h | |
parent | bbcb86c56492cd33fb9708fc99e3760443da6846 (diff) |
From Lars Roland:
use the common display filter dialog infrastructure in the MGCP
service response time tap;
add common infrastructure for updating the titles of tap dialogs
when the capture file name changes.
svn path=/trunk/; revision=9366
Diffstat (limited to 'gtk/tap_dfilter_dlg.h')
-rw-r--r-- | gtk/tap_dfilter_dlg.h | 39 |
1 files changed, 2 insertions, 37 deletions
diff --git a/gtk/tap_dfilter_dlg.h b/gtk/tap_dfilter_dlg.h index 23fcd6b61a..142f9d5917 100644 --- a/gtk/tap_dfilter_dlg.h +++ b/gtk/tap_dfilter_dlg.h @@ -1,8 +1,8 @@ /* tap_dfilter_dlg.h - * Header file for display filter dialog used by gui taps + * Header file for display filter dialog used by GTK gui taps * Copyright 2003 Lars Roland * - * $Id: tap_dfilter_dlg.h,v 1.1 2003/12/17 22:13:08 guy Exp $ + * $Id: tap_dfilter_dlg.h,v 1.2 2003/12/19 23:41:55 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -23,39 +23,4 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* - * You can easily add a display filter dialog for your gui tap by using - * the following infrastructure: - * - * Define a global structure of tap_dfilter_dlg within your tap source file. - * 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. - * 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_tap_menu_item() with gtk_tap_dfilter_dlg_cb as callback and a pointer - * to the global tap_dfilter_dlg structure . - * - * Usage: - * - * tap_dfilter_dlg my_tap_dfilter_dlg = {"My Title", "myproto,mytap", gtk_mytap_init, -1}; - * - * register_tap_menu_mytap(void) { - * register_tap_menu_item(char *menu_string, gtk_tap_dfilter_dlg_cb, NULL, NULL, &(my_tap_dfilter_dlg)); - * } - * - * See also: h225_ras_srt.c or h225_counter.c - * - */ - -typedef struct _tap_dfilter_dlg { - char *win_title; /* title */ - char *init_string; /* the string to call the tap without a filter via "-z" option */ - void (* tap_init_cb)(char *); /* callback to init function of the tap */ - gint index; /* initiate this value always with "-1" */ -} tap_dfilter_dlg; - void gtk_tap_dfilter_dlg_cb(GtkWidget *w, gpointer data); |