1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler */
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"
10 * Definitions for H.248/MEGACO packet dissection
12 * Ronnie Sahlberg 2004
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.
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
);
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 */
61 typedef struct _h248_pkg_param_t
{
64 h248_pkg_param_dissector_t dissector
;
68 typedef struct _h248_pkg_sig_t
{
72 const h248_pkg_param_t
* parameters
;
73 const value_string
* param_names
;
76 typedef struct _h248_pkg_evt_t
{
80 const h248_pkg_param_t
* parameters
;
81 const value_string
* param_names
;
84 typedef struct _h248_pkg_stat_t
{
88 const h248_pkg_param_t
* parameters
;
89 const value_string
* param_names
;
92 typedef struct _h248_package_t
{
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
;
106 typedef struct _save_h248_package_t
{
111 struct _h248_curr_info_t
{
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
;
125 void h248_register_package(const h248_package_t
* pkg
, pkg_reg_action reg_action
);
127 #endif /* PACKET_H248_H */