fix usage of "if(tree) {" to display the right things, even if no coloring rule is set
[obnox/wireshark/wip.git] / epan / dissectors / packet-q931.h
1 /* packet-q931.h
2  * Declarations of exported routines and tables for Q.931 and Q.2931 frame
3  * disassembly
4  * Guy Harris <guy@alum.mit.edu>
5  *
6  * $Id$
7  *
8  * Ethereal - Network traffic analyzer
9  * By Gerald Combs <gerald@ethereal.com>
10  * Copyright 1998
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25  */
26
27 #ifndef __PACKET_Q931_H__
28 #define __PACKET_Q931_H__
29
30 extern void dissect_q931_bearer_capability_ie(tvbuff_t *, int, int,
31     proto_tree *);
32
33 extern void dissect_q931_cause_ie(tvbuff_t *, int, int,
34     proto_tree *, int, guint8 *);
35
36 extern void dissect_q931_progress_indicator_ie(tvbuff_t *, int, int,
37     proto_tree *);
38
39 extern void dissect_q931_high_layer_compat_ie(tvbuff_t *, int, int,
40     proto_tree *);
41
42 extern void dissect_q931_user_user_ie(tvbuff_t *tvb, int offset, int len,
43     proto_tree *tree);
44
45 extern const value_string q931_cause_location_vals[];
46
47 typedef struct _q931_packet_info {
48        gchar *calling_number;
49        gchar *called_number;
50        guint8 cause_value;
51        gint32 crv;
52 } q931_packet_info;
53
54 /*
55  * the following allows TAP code access to the messages
56  * without having to duplicate it. With MSVC and a
57  * libethereal.dll, we need a special declaration.
58  */
59 ETH_VAR_IMPORT const value_string q931_cause_code_vals[];
60
61 extern const value_string q931_protocol_discriminator_vals[];
62
63 #endif