Enable Lua tcp tap userdata.
[obnox/wireshark/wip.git] / epan / dissectors / packet-h248.h
1 /* Do not modify this file.                                                   */
2 /* It is created automatically by the ASN.1 to Wireshark dissector compiler   */
3 /* packet-h248.h                                                              */
4 /* ../../tools/asn2wrs.py -b -p h248 -c ./h248.cnf -s ./packet-h248-template -D . h248v3.asn */
5
6 /* Input file: packet-h248-template.h */
7
8 #line 1 "packet-h248-template.h"
9 /* packet-h248.h
10  * Definitions for H.248/MEGACO packet dissection
11  *
12  * Ronnie Sahlberg 2004
13  * Luis Ontanon 2005
14  *
15  * $Id$
16  *
17  * Wireshark - Network traffic analyzer
18  * By Gerald Combs <gerald@wireshark.org>
19  * Copyright 1998 Gerald Combs
20  *
21  * This program is free software; you can redistribute it and/or
22  * modify it under the terms of the GNU General Public License
23  * as published by the Free Software Foundation; either version 2
24  * of the License, or (at your option) any later version.
25  *
26  * This program is distributed in the hope that it will be useful,
27  * but WITHOUT ANY WARRANTY; without even the implied warranty of
28  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29  * GNU General Public License for more details.
30  *
31  * You should have received a copy of the GNU General Public License
32  * along with this program; if not, write to the Free Software
33  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
34  */
35
36 #ifndef PACKET_H248_H
37
38 #include <epan/gcp.h>
39
40 /*#include "packet-h248-exp.h"*/
41
42 typedef struct _h248_curr_info_t h248_curr_info_t;
43
44 typedef void (*h248_pkg_param_dissector_t)(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo _U_, int hfid, h248_curr_info_t*, void*);
45
46 extern void h248_param_item(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored);
47 extern void h248_param_ber_integer(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored);
48 extern void h248_param_ber_octetstring(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored);
49 extern void h248_param_ber_boolean(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored);
50 extern void external_dissector(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* dissector_handle);
51 extern void h248_param_PkgdName(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo , int hfid _U_, h248_curr_info_t* u _U_, void* dissector_hdl);
52
53 typedef struct _h248_pkg_param_t {
54         guint32 id;
55         int* hfid;
56         h248_pkg_param_dissector_t dissector;
57         void* data;
58 } h248_pkg_param_t;
59
60 typedef struct _h248_pkg_sig_t {
61         guint32 id;
62         int* hfid;
63         gint* ett;
64         const h248_pkg_param_t* parameters;     
65         const value_string* param_names;
66 } h248_pkg_sig_t;
67
68 typedef struct _h248_pkg_evt_t {
69         guint32 id;
70         int* hfid;
71         gint* ett;
72         const h248_pkg_param_t* parameters;     
73         const value_string* param_names;
74 } h248_pkg_evt_t;
75
76 typedef struct _h248_pkg_stat_t {
77         guint32 id;
78         int* hfid;
79         gint* ett;
80         const h248_pkg_param_t* parameters;     
81         const value_string* param_names;
82 } h248_pkg_stat_t;
83
84 typedef struct _h248_package_t {
85         guint32 id;
86         int* hfid;
87         gint* ett;
88         const value_string* param_names;
89         const value_string* signal_names;
90         const value_string* event_names;
91         const value_string* stats_names;
92         const h248_pkg_param_t* properties;
93         const h248_pkg_sig_t* signals;
94         const h248_pkg_evt_t* events;
95         const h248_pkg_stat_t* statistics;
96 } h248_package_t;
97
98 struct _h248_curr_info_t {
99         gcp_ctx_t* ctx;
100         gcp_trx_t* trx;
101         gcp_msg_t* msg;
102         gcp_term_t* term;
103         gcp_cmd_t* cmd;
104         const h248_package_t* pkg;
105         const h248_pkg_evt_t* evt;
106         const h248_pkg_sig_t* sig;
107         const h248_pkg_stat_t* stat;
108         const h248_pkg_param_t* par;
109 };
110
111 void h248_register_package(const h248_package_t*);
112
113 #endif  /* PACKET_H248_H */