HACK: 2nd try to match RowsetProperties
[wireshark-wip.git] / epan / dissectors / packet-h248.h
blobe6b166ce0df5bd3affa174f5e786f52e34128559
1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated 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 . -O ../../epan/dissectors h248v3.asn h248v1support.asn */
6 /* Input file: packet-h248-template.h */
8 #line 1 "../../asn1/h248/packet-h248-template.h"
9 /* packet-h248.h
10 * Definitions for H.248/MEGACO packet dissection
12 * Ronnie Sahlberg 2004
13 * Luis Ontanon 2005
15 * $Id$
17 * Wireshark - Network traffic analyzer
18 * By Gerald Combs <gerald@wireshark.org>
19 * Copyright 1998 Gerald Combs
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
36 #ifndef PACKET_H248_H
38 #include <epan/gcp.h>
39 #include "ws_symbol_export.h"
40 /*#include "packet-h248-exp.h"*/
42 typedef struct _h248_curr_info_t h248_curr_info_t;
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*);
46 extern void h248_param_bytes_item(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored);
47 extern void h248_param_uint_item(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored);
48 WS_DLL_PUBLIC void h248_param_ber_integer(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored);
49 extern void h248_param_ber_octetstring(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored);
50 extern void h248_param_ber_boolean(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored);
51 extern void external_dissector(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* dissector_handle);
52 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);
54 typedef enum {
55 ADD_PKG, /* add package at registration ONLY if no matching package ID */
56 REPLACE_PKG, /* replace/add package at registration */
57 MERGE_PKG_HIGH, /* merge h248_package_t at registration favor new package */
58 MERGE_PKG_LOW /* merge h248_package_t at registration favor current package */
59 } pkg_reg_action;
61 typedef struct _h248_pkg_param_t {
62 guint32 id;
63 int* hfid;
64 h248_pkg_param_dissector_t dissector;
65 void* data;
66 } h248_pkg_param_t;
68 typedef struct _h248_pkg_sig_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_sig_t;
76 typedef struct _h248_pkg_evt_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_evt_t;
84 typedef struct _h248_pkg_stat_t {
85 guint32 id;
86 int* hfid;
87 gint* ett;
88 const h248_pkg_param_t* parameters;
89 const value_string* param_names;
90 } h248_pkg_stat_t;
92 typedef struct _h248_package_t {
93 guint32 id;
94 int* hfid;
95 gint* ett;
96 const value_string* param_names;
97 const value_string* signal_names;
98 const value_string* event_names;
99 const value_string* stats_names;
100 const h248_pkg_param_t* properties;
101 const h248_pkg_sig_t* signals;
102 const h248_pkg_evt_t* events;
103 const h248_pkg_stat_t* statistics;
104 } h248_package_t;
106 typedef struct _save_h248_package_t {
107 h248_package_t *pkg;
108 gboolean is_default;
109 } s_h248_package_t;
111 struct _h248_curr_info_t {
112 gcp_ctx_t* ctx;
113 gcp_trx_t* trx;
114 gcp_msg_t* msg;
115 gcp_term_t* term;
116 gcp_cmd_t* cmd;
117 const h248_package_t* pkg;
118 const h248_pkg_evt_t* evt;
119 const h248_pkg_sig_t* sig;
120 const h248_pkg_stat_t* stat;
121 const h248_pkg_param_t* par;
124 WS_DLL_PUBLIC
125 void h248_register_package(const h248_package_t* pkg, pkg_reg_action reg_action);
127 #endif /* PACKET_H248_H */