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 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef __DVB_CHARTBL_H__
11 #define __DVB_CHARTBL_H__
13 #include "ws_symbol_export.h"
15 #include <epan/proto.h>
16 #include <epan/to_str.h>
17 #include <epan/tvbuff.h>
18 #include <epan/value_string.h>
22 #endif /* __cplusplus */
25 DVB_ENCODING_INVALID
= -3, /* length invalid */
26 DVB_ENCODING_RESERVED
= -2, /* reserved by spec */
27 DVB_ENCODING_UNKNOWN
= -1, /* not defined by spec */
29 DVB_ENCODING_LATIN
= 0,
30 /* these defines don't have to match with the values
31 from the DVB-SI specification */
32 DVB_ENCODING_ISO_8859_1
,
33 DVB_ENCODING_ISO_8859_2
,
34 DVB_ENCODING_ISO_8859_3
,
35 DVB_ENCODING_ISO_8859_4
,
36 DVB_ENCODING_ISO_8859_5
,
37 DVB_ENCODING_ISO_8859_6
,
38 DVB_ENCODING_ISO_8859_7
,
39 DVB_ENCODING_ISO_8859_8
,
40 DVB_ENCODING_ISO_8859_9
,
41 DVB_ENCODING_ISO_8859_10
,
42 DVB_ENCODING_ISO_8859_11
,
43 DVB_ENCODING_ISO_8859_13
,
44 DVB_ENCODING_ISO_8859_14
,
45 DVB_ENCODING_ISO_8859_15
,
47 DVB_ENCODING_ISO_10646_BMP
,
48 DVB_ENCODING_KSX_1001
,
50 DVB_ENCODING_ISO_10646_BIG5
,
51 DVB_ENCODING_ISO_10646_UTF8_BMP
55 unsigned dvb_analyze_string_charset(tvbuff_t
*tvb
, int offset
, int length
,
56 dvb_encoding_e
*encoding
);
59 unsigned dvb_enc_to_item_enc(dvb_encoding_e encoding
);
62 void dvb_add_chartbl(proto_tree
*tree
, int hf
,
63 tvbuff_t
*tvb
, int offset
, int length
,
64 dvb_encoding_e encoding
);
68 #endif /* __cplusplus */
70 #endif /* __DVB_CHARTBL_H__ */
73 * Editor modelines - https://www.wireshark.org/tools/modelines.html
78 * indent-tabs-mode: nil
81 * vi: set shiftwidth=4 tabstop=8 expandtab:
82 * :indentSize=4:tabSize=8:noTabs=true: