aboutsummaryrefslogtreecommitdiffstats
path: root/epan/funnel.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2006-02-05 20:02:41 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2006-02-05 20:02:41 +0000
commit50d651fe5be3cbc70a245b7a5225b19c79e0c198 (patch)
treecece4c5f412b64d01f14cb2b21ea0a59f449c11f /epan/funnel.c
parent2826417ef72907abc80a1894e141210d01f1df68 (diff)
* add an option to funnel_register_menu to retap the packets right after been called
* add a set_close_cllback function to the textwindow mini-api to set a callback to be called when the window gets closed. * fix few issues regarding the closing of the window svn path=/trunk/; revision=17165
Diffstat (limited to 'epan/funnel.c')
-rw-r--r--epan/funnel.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/funnel.c b/epan/funnel.c
index 9bac9b472a..126df09958 100644
--- a/epan/funnel.c
+++ b/epan/funnel.c
@@ -33,6 +33,7 @@ typedef struct _funnel_menu_t {
REGISTER_STAT_GROUP_E group;
void (*callback)(gpointer);
gpointer callback_data;
+ gboolean retap;
struct _funnel_menu_t* next;
} funnel_menu_t;
@@ -45,12 +46,14 @@ void funnel_set_funnel_ops(const funnel_ops_t* o) { ops = o; }
void funnel_register_menu(const char *name,
REGISTER_STAT_GROUP_E group,
void (*callback)(gpointer),
- gpointer callback_data) {
+ gpointer callback_data,
+ gboolean retap) {
funnel_menu_t* m = g_malloc(sizeof(funnel_menu_t));
m->name = g_strdup(name);
m->group = group;
m->callback = callback;
m->callback_data = callback_data;
+ m->retap = retap;
m->next = NULL;
if (!menus) {
@@ -65,7 +68,7 @@ void funnel_register_menu(const char *name,
void funnel_register_all_menus(funnel_registration_cb_t r_cb) {
funnel_menu_t* c;
for (c = menus; c; c = c->next) {
- r_cb(c->name,c->group,c->callback,c->callback_data);
+ r_cb(c->name,c->group,c->callback,c->callback_data,c->retap);
}
}