2 * Routines for handling DVB-SI character tables (as defined in EN 300 468)
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
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.
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.
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.
22 #ifndef __DVB_CHARTBL_H__
23 #define __DVB_CHARTBL_H__
25 #include "ws_symbol_export.h"
27 #include <epan/proto.h>
28 #include <epan/to_str.h>
29 #include <epan/tvbuff.h>
30 #include <epan/value_string.h>
34 #endif /* __cplusplus */
37 DVB_ENCODING_INVALID = -3, /* length invalid */
38 DVB_ENCODING_RESERVED = -2, /* reserved by spec */
39 DVB_ENCODING_UNKNOWN = -1, /* not defined by spec */
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,
59 DVB_ENCODING_ISO_10646_BMP,
60 DVB_ENCODING_KSX_1001,
62 DVB_ENCODING_ISO_10646_BIG5,
63 DVB_ENCODING_ISO_10646_UTF8_BMP
67 guint dvb_analyze_string_charset(tvbuff_t *tvb, int offset, int length,
68 dvb_encoding_e *encoding);
71 guint dvb_enc_to_item_enc(dvb_encoding_e encoding);
74 void dvb_add_chartbl(proto_tree *tree, int hf,
75 tvbuff_t *tvb, gint offset, gint length,
76 dvb_encoding_e encoding);
80 #endif /* __cplusplus */
82 #endif /* __DVB_CHARTBL_H__ */
85 * Editor modelines - http://www.wireshark.org/tools/modelines.html
90 * indent-tabs-mode: nil
93 * vi: set shiftwidth=4 tabstop=8 expandtab:
94 * :indentSize=4:tabSize=8:noTabs=true: