Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
dvb_chartbl.h
Go to the documentation of this file.
1
10#pragma once
11#include "ws_symbol_export.h"
12
13#include <epan/proto.h>
14#include <epan/to_str.h>
15#include <epan/tvbuff.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21typedef enum {
22 DVB_ENCODING_INVALID = -3, /* length invalid */
23 DVB_ENCODING_RESERVED = -2, /* reserved by spec */
24 DVB_ENCODING_UNKNOWN = -1, /* not defined by spec */
25
26 DVB_ENCODING_LATIN = 0,
27 /* these defines don't have to match with the values
28 from the DVB-SI specification */
29 DVB_ENCODING_ISO_8859_1,
30 DVB_ENCODING_ISO_8859_2,
31 DVB_ENCODING_ISO_8859_3,
32 DVB_ENCODING_ISO_8859_4,
33 DVB_ENCODING_ISO_8859_5,
34 DVB_ENCODING_ISO_8859_6,
35 DVB_ENCODING_ISO_8859_7,
36 DVB_ENCODING_ISO_8859_8,
37 DVB_ENCODING_ISO_8859_9,
38 DVB_ENCODING_ISO_8859_10,
39 DVB_ENCODING_ISO_8859_11,
40 DVB_ENCODING_ISO_8859_13,
41 DVB_ENCODING_ISO_8859_14,
42 DVB_ENCODING_ISO_8859_15,
43
44 DVB_ENCODING_ISO_10646_BMP,
45 DVB_ENCODING_KSX_1001,
46 DVB_ENCODING_GB_2312,
47 DVB_ENCODING_ISO_10646_BIG5,
48 DVB_ENCODING_ISO_10646_UTF8_BMP
49} dvb_encoding_e;
50
62WS_DLL_PUBLIC
63unsigned dvb_analyze_string_charset(tvbuff_t *tvb, int offset, int length,
64 dvb_encoding_e *encoding);
65
72WS_DLL_PUBLIC
73unsigned dvb_enc_to_item_enc(dvb_encoding_e encoding);
74
87WS_DLL_PUBLIC
88void dvb_add_chartbl(proto_tree *tree, int hf,
89 tvbuff_t *tvb, int offset, int length,
90 dvb_encoding_e encoding);
91
92#ifdef __cplusplus
93}
94#endif /* __cplusplus */
95
96/*
97 * Editor modelines - https://www.wireshark.org/tools/modelines.html
98 *
99 * Local variables:
100 * c-basic-offset: 4
101 * tab-width: 8
102 * indent-tabs-mode: nil
103 * End:
104 *
105 * vi: set shiftwidth=4 tabstop=8 expandtab:
106 * :indentSize=4:tabSize=8:noTabs=true:
107 */
WS_DLL_PUBLIC void dvb_add_chartbl(proto_tree *tree, int hf, tvbuff_t *tvb, int offset, int length, dvb_encoding_e encoding)
Adds a character table to the protocol tree.
Definition dvb_chartbl.c:269
WS_DLL_PUBLIC unsigned dvb_analyze_string_charset(tvbuff_t *tvb, int offset, int length, dvb_encoding_e *encoding)
Analyzes the character set of a DVB string.
Definition dvb_chartbl.c:166
WS_DLL_PUBLIC unsigned dvb_enc_to_item_enc(dvb_encoding_e encoding)
Convert DVB encoding to item encoding.
Definition dvb_chartbl.c:211
Definition proto.h:902
Definition tvbuff-int.h:33