summaryrefslogtreecommitdiff
path: root/epan/funnel.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2006-02-05 03:59:56 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2006-02-05 03:59:56 +0000
commit2e36cb403a39f7cc26bdc9e2f05082133aeff118 (patch)
tree216abf326ff38bd6e2285d0f056cdca7e09b1f33 /epan/funnel.c
parentc9c2b97498581de0dff8842c8035bcb289de7416 (diff)
downloadwireshark-2e36cb403a39f7cc26bdc9e2f05082133aeff118.tar.gz
- add a register_menu funnel
- remove the field_menu altoghether (It was not what I thought) - move a declaration to the start of a function to allow VC6 to compile svn path=/trunk/; revision=17161
Diffstat (limited to 'epan/funnel.c')
-rw-r--r--epan/funnel.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/epan/funnel.c b/epan/funnel.c
index 084f2edaaa..9bac9b472a 100644
--- a/epan/funnel.c
+++ b/epan/funnel.c
@@ -36,17 +36,16 @@ typedef struct _funnel_menu_t {
struct _funnel_menu_t* next;
} funnel_menu_t;
-
static const funnel_ops_t* ops = NULL;
static funnel_menu_t* menus = NULL;
const funnel_ops_t* funnel_get_funnel_ops() { return ops; }
void funnel_set_funnel_ops(const funnel_ops_t* o) { ops = o; }
-extern void funnel_register_menu(const char *name,
- REGISTER_STAT_GROUP_E group,
- void (*callback)(gpointer),
- gpointer callback_data) {
+void funnel_register_menu(const char *name,
+ REGISTER_STAT_GROUP_E group,
+ void (*callback)(gpointer),
+ gpointer callback_data) {
funnel_menu_t* m = g_malloc(sizeof(funnel_menu_t));
m->name = g_strdup(name);
m->group = group;
@@ -63,19 +62,12 @@ extern void funnel_register_menu(const char *name,
}
}
-
-extern void funnel_register_field_menu(const char *name _U_,
- const char *field_abbrev _U_,
- REGISTER_STAT_GROUP_E group _U_,
- void (*callback)(gpointer) _U_,
- gpointer callback_data _U_) {
-
-}
-
-extern void funnel_register_all_menus(funnel_registration_cb_t r_cb) {
+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);
}
}
+
+