Removed some more "statement not reached" warnings.
[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  * Wireshark - Network traffic analyzer
9  * By Gerald Combs <gerald@wireshark.org>
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            guint8 message_type;
53 } q931_packet_info;
54
55 /*
56  * the following allows TAP code access to the messages
57  * without having to duplicate it. With MSVC and a
58  * libwireshark.dll, we need a special declaration.
59  */
60 WS_VAR_IMPORT const value_string q931_cause_code_vals[];
61 WS_VAR_IMPORT const value_string q931_message_type_vals[];
62
63 extern const value_string q931_protocol_discriminator_vals[];
64
65 /*
66  * Q.931 message types.
67  */
68 #define Q931_ESCAPE             0x00
69 #define Q931_ALERTING           0x01
70 #define Q931_CALL_PROCEEDING    0x02
71 #define Q931_CONNECT            0x07
72 #define Q931_CONNECT_ACK        0x0F
73 #define Q931_PROGRESS           0x03
74 #define Q931_SETUP              0x05
75 #define Q931_SETUP_ACK          0x0D
76 #define Q931_HOLD               0x24
77 #define Q931_HOLD_ACK           0x28
78 #define Q931_HOLD_REJECT        0x30
79 #define Q931_RESUME             0x26
80 #define Q931_RESUME_ACK         0x2E
81 #define Q931_RESUME_REJECT      0x22
82 #define Q931_RETRIEVE           0x31
83 #define Q931_RETRIEVE_ACK       0x33
84 #define Q931_RETRIEVE_REJECT    0x37
85 #define Q931_SUSPEND            0x25
86 #define Q931_SUSPEND_ACK        0x2D
87 #define Q931_SUSPEND_REJECT     0x21
88 #define Q931_USER_INFORMATION   0x20
89 #define Q931_DISCONNECT         0x45
90 #define Q931_RELEASE            0x4D
91 #define Q931_RELEASE_COMPLETE   0x5A
92 #define Q931_RESTART            0x46
93 #define Q931_RESTART_ACK        0x4E
94 #define Q931_CONGESTION_CONTROL 0x79
95 #define Q931_FACILITY           0x62
96 #define Q931_INFORMATION        0x7B
97 #define Q931_NOTIFY             0x6E
98 #define Q931_REGISTER           0x64
99 #define Q931_SEGMENT            0x60
100 #define Q931_STATUS             0x7D
101 #define Q931_STATUS_ENQUIRY     0x75
102 #define Q931_VERSION            0x0a
103 #define Q931_GROUIP_SERVICE     0x06
104 #define Q931_GROUIP_SERVICE_ACK 0x0b
105 #define Q931_RESYNC_REQ         0x08
106 #define Q931_RESYNC_RESP        0x09
107
108 #endif