Move dissectors to epan/dissectors directory.
[obnox/wireshark/wip.git] / epan / dissectors / packet-gsm_a.h
1 /* packet-gsm_a.h
2  *
3  * $Id$
4  *
5  * Copyright 2003, Michael Lum <mlum [AT] telostech.com>,
6  * In association with Telos Technology Inc.
7  *
8  * Ethereal - Network traffic analyzer
9  * By Gerald Combs <gerald@ethereal.com>
10  * Copyright 1998 Gerald Combs
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 /*
28  * this enum must be kept in-sync with 'gsm_a_pd_str'
29  * it is used as an index into the array
30  */
31 typedef enum
32 {
33     PD_GCC = 0,
34     PD_BCC,
35     PD_RSVD_1,
36     PD_CC,
37     PD_GTTP,
38     PD_MM,
39     PD_RR,
40     PD_UNK_1,
41     PD_GMM,
42     PD_SMS,
43     PD_SM,
44     PD_SS,
45     PD_LCS,
46     PD_UNK_2,
47     PD_RSVD_EXT,
48     PD_RSVD_TEST
49 }
50 gsm_a_pd_str_e;
51
52 typedef struct _gsm_a_tap_rec_t {
53     /*
54      * value from packet-bssap.h
55      */
56     guint8              pdu_type;
57     guint8              message_type;
58     gsm_a_pd_str_e      protocol_disc;
59 } gsm_a_tap_rec_t;
60
61
62 /*
63  * the following allows TAP code access to the messages
64  * without having to duplicate it. With MSVC and a 
65  * libethereal.dll, we need a special declaration.
66  */
67 ETH_VAR_IMPORT const value_string gsm_a_bssmap_msg_strings[];
68 ETH_VAR_IMPORT const value_string gsm_a_dtap_msg_mm_strings[];
69 ETH_VAR_IMPORT const value_string gsm_a_dtap_msg_rr_strings[];
70 ETH_VAR_IMPORT const value_string gsm_a_dtap_msg_cc_strings[];
71 ETH_VAR_IMPORT const value_string gsm_a_dtap_msg_gmm_strings[];
72 ETH_VAR_IMPORT const value_string gsm_a_dtap_msg_sms_strings[];
73 ETH_VAR_IMPORT const value_string gsm_a_dtap_msg_sm_strings[];
74 ETH_VAR_IMPORT const value_string gsm_a_dtap_msg_ss_strings[];
75 ETH_VAR_IMPORT const gchar *gsm_a_pd_str[];
76
77