Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10 #ifndef __DVB_CHARTBL_H__
11 #define __DVB_CHARTBL_H__
12
13 #include "ws_symbol_export.h"
14
15 #include <epan/proto.h>
16 #include <epan/to_str.h>
17 #include <epan/tvbuff.h>
18 #include <epan/value_string.h>
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif /* __cplusplus */
23
24 typedef enum {
25 DVB_ENCODING_INVALID = -3, /* length invalid */
26 DVB_ENCODING_RESERVED = -2, /* reserved by spec */
27 DVB_ENCODING_UNKNOWN = -1, /* not defined by spec */
28
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,
46
47 DVB_ENCODING_ISO_10646_BMP,
48 DVB_ENCODING_KSX_1001,
49 DVB_ENCODING_GB_2312,
50 DVB_ENCODING_ISO_10646_BIG5,
51 DVB_ENCODING_ISO_10646_UTF8_BMP
52 } dvb_encoding_e;
53
54 WS_DLL_PUBLIC
55 guint dvb_analyze_string_charset(tvbuff_t *tvb, int offset, int length,
56 dvb_encoding_e *encoding);
57
58 WS_DLL_PUBLIC
59 guint dvb_enc_to_item_enc(dvb_encoding_e encoding);
60
61 WS_DLL_PUBLIC
62 void dvb_add_chartbl(proto_tree *tree, int hf,
63 tvbuff_t *tvb, gint offset, gint length,
64 dvb_encoding_e encoding);
65
66 #ifdef __cplusplus
67 }
68 #endif /* __cplusplus */
69
70 #endif /* __DVB_CHARTBL_H__ */
71
72 /*
73 * Editor modelines - http://www.wireshark.org/tools/modelines.html
74 *
75 * Local variables:
76 * c-basic-offset: 4
77 * tab-width: 8
78 * indent-tabs-mode: nil
79 * End:
80 *
81 * vi: set shiftwidth=4 tabstop=8 expandtab:
82 * :indentSize=4:tabSize=8:noTabs=true:
83 */
tvbuff
Definition: tvbuff-int.h:35
proto.h
_proto_node
Definition: proto.h:759