Zbee ZCL se: fix typo found by conflict hf
[metze/wireshark/wip.git] / epan / dvb_chartbl.h
1 /* dvb_chartbl.h
2  * Routines for handling DVB-SI character tables (as defined in EN 300 468)
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22 #ifndef __DVB_CHARTBL_H__
23 #define __DVB_CHARTBL_H__
24
25 #include "ws_symbol_export.h"
26
27 #include <epan/proto.h>
28 #include <epan/to_str.h>
29 #include <epan/tvbuff.h>
30 #include <epan/value_string.h>
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif /* __cplusplus */
35
36 typedef enum {
37     DVB_ENCODING_INVALID   = -3, /* length invalid */
38     DVB_ENCODING_RESERVED  = -2, /* reserved by spec */
39     DVB_ENCODING_UNKNOWN   = -1,  /* not defined by spec */
40
41     DVB_ENCODING_LATIN = 0,
42     /* these defines don't have to match with the values
43        from the DVB-SI specification */
44     DVB_ENCODING_ISO_8859_1,
45     DVB_ENCODING_ISO_8859_2,
46     DVB_ENCODING_ISO_8859_3,
47     DVB_ENCODING_ISO_8859_4,
48     DVB_ENCODING_ISO_8859_5,
49     DVB_ENCODING_ISO_8859_6,
50     DVB_ENCODING_ISO_8859_7,
51     DVB_ENCODING_ISO_8859_8,
52     DVB_ENCODING_ISO_8859_9,
53     DVB_ENCODING_ISO_8859_10,
54     DVB_ENCODING_ISO_8859_11,
55     DVB_ENCODING_ISO_8859_13,
56     DVB_ENCODING_ISO_8859_14,
57     DVB_ENCODING_ISO_8859_15,
58
59     DVB_ENCODING_ISO_10646_BMP,
60     DVB_ENCODING_KSX_1001,
61     DVB_ENCODING_GB_2312,
62     DVB_ENCODING_ISO_10646_BIG5,
63     DVB_ENCODING_ISO_10646_UTF8_BMP
64 } dvb_encoding_e;
65
66 WS_DLL_PUBLIC
67 guint dvb_analyze_string_charset(tvbuff_t *tvb, int offset, int length,
68       dvb_encoding_e *encoding);
69
70 WS_DLL_PUBLIC
71 guint dvb_enc_to_item_enc(dvb_encoding_e encoding);
72
73 WS_DLL_PUBLIC
74 void dvb_add_chartbl(proto_tree *tree, int hf,
75         tvbuff_t *tvb, gint offset, gint length,
76         dvb_encoding_e  encoding);
77
78 #ifdef __cplusplus
79 }
80 #endif /* __cplusplus */
81
82 #endif /* __DVB_CHARTBL_H__ */
83
84 /*
85  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
86  *
87  * Local variables:
88  * c-basic-offset: 4
89  * tab-width: 8
90  * indent-tabs-mode: nil
91  * End:
92  *
93  * vi: set shiftwidth=4 tabstop=8 expandtab:
94  * :indentSize=4:tabSize=8:noTabs=true:
95  */