aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mate/mate.h
diff options
context:
space:
mode:
authorLars Roland <Lars.Roland@gmx.net>2004-12-16 19:36:23 +0000
committerLars Roland <Lars.Roland@gmx.net>2004-12-16 19:36:23 +0000
commitaf8041a316caa43265926cf92ba2c550b93d8d1e (patch)
tree14fa5f353ecc58228a8a4d569bd20f3239673dca /plugins/mate/mate.h
parent7d7a9ce1921226a6ece210581327ad45e403c16a (diff)
Patch for Mate Plugin.
From Luis Ontanon: - moves mate configuration from proto_register to proto_register_handoff - add the config file protocol preference - every item (gop,gog,pdu) has it's own ett - the tap doesn't do nothing, it just primes the tree - analyze_frame() what once was the tap now is called by the dissector - should work with tethereal now (to be tested) svn path=/trunk/; revision=12763
Diffstat (limited to 'plugins/mate/mate.h')
-rw-r--r--plugins/mate/mate.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/plugins/mate/mate.h b/plugins/mate/mate.h
index f8d09968a8..a6a2d9d3d7 100644
--- a/plugins/mate/mate.h
+++ b/plugins/mate/mate.h
@@ -153,6 +153,10 @@ typedef struct _mate_cfg_item {
int hfid;
GHashTable* my_hfids; /* for creating register info */
GHashTable* items; /* all the items of this type */
+ gint ett;
+ gint ett_attr;
+ gint ett_times;
+ gint ett_children;
/* pdu */
gboolean discard_pdu_attributes;
@@ -224,6 +228,8 @@ typedef struct _mate_config {
GHashTable* gogs_by_gopname; /* k=gopname v=loal where avpl->name == matchedgop->name */
GArray* hfrs;
+ gint ett_root;
+ GArray* ett;
} mate_config;
typedef struct _mate_runtime_data {
@@ -291,9 +297,10 @@ struct _mate_item {
};
/* from mate_runtime.c */
-extern void init_mate_runtime_data(void);
+extern void initialize_mate_runtime(void);
extern mate_pdu* mate_get_pdus(guint32 framenum);
-extern int mate_packet(void *prs _U_, packet_info *pinfo, epan_dissect_t *edt, void *dummy _U_);
+extern void analyze_frame(packet_info *pinfo, proto_tree* tree);
+extern int mate_packet(void* _U_, proto_tree* _U_, epan_dissect_t* _U_, void* _U_);
/* from mate_setup.c */
extern mate_config* mate_make_config(guint8* filename);