| Wireshark 4.7.3 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
18 extern "C" {
19#endif /* __cplusplus */
20
24 typedef enum {
25 DVB_ENCODING_INVALID = -3,
26 DVB_ENCODING_RESERVED = -2,
27 DVB_ENCODING_UNKNOWN = -1,
28
29 DVB_ENCODING_LATIN = 0,
30 /* These enumerator values do not have to match the prefix byte 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
65WS_DLL_PUBLIC
66 unsigned dvb_analyze_string_charset(tvbuff_t *tvb, int offset, int length,
67 dvb_encoding_e *encoding);
68
75WS_DLL_PUBLIC
76 unsigned dvb_enc_to_item_enc(dvb_encoding_e encoding);
77
90WS_DLL_PUBLIC
91 void dvb_add_chartbl(proto_tree *tree, int hf,
92 tvbuff_t *tvb, int offset, int length,
93 dvb_encoding_e encoding);
94
95#ifdef __cplusplus
96}
97#endif /* __cplusplus */
98
99/*
100 * Editor modelines - https://www.wireshark.org/tools/modelines.html
101 *
102 * Local variables:
103 * c-basic-offset: 4
104 * tab-width: 8
105 * indent-tabs-mode: nil
106 * End:
107 *
108 * vi: set shiftwidth=4 tabstop=8 expandtab:
109 * :indentSize=4:tabSize=8:noTabs=true:
110 */
dvb_add_chartbl
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
dvb_encoding_e
dvb_encoding_e
Character encoding types for DVB Service Information (DVB-SI) text fields.
Definition dvb_chartbl.h:24
DVB_ENCODING_LATIN
@ DVB_ENCODING_LATIN
Definition dvb_chartbl.h:29
DVB_ENCODING_ISO_8859_15
@ DVB_ENCODING_ISO_8859_15
Definition dvb_chartbl.h:45
DVB_ENCODING_ISO_8859_10
@ DVB_ENCODING_ISO_8859_10
Definition dvb_chartbl.h:41
DVB_ENCODING_ISO_8859_9
@ DVB_ENCODING_ISO_8859_9
Definition dvb_chartbl.h:40
DVB_ENCODING_ISO_8859_8
@ DVB_ENCODING_ISO_8859_8
Definition dvb_chartbl.h:39
DVB_ENCODING_ISO_8859_1
@ DVB_ENCODING_ISO_8859_1
Definition dvb_chartbl.h:32
DVB_ENCODING_ISO_8859_2
@ DVB_ENCODING_ISO_8859_2
Definition dvb_chartbl.h:33
DVB_ENCODING_ISO_8859_13
@ DVB_ENCODING_ISO_8859_13
Definition dvb_chartbl.h:43
DVB_ENCODING_ISO_10646_BIG5
@ DVB_ENCODING_ISO_10646_BIG5
Definition dvb_chartbl.h:50
DVB_ENCODING_ISO_8859_3
@ DVB_ENCODING_ISO_8859_3
Definition dvb_chartbl.h:34
DVB_ENCODING_ISO_8859_6
@ DVB_ENCODING_ISO_8859_6
Definition dvb_chartbl.h:37
DVB_ENCODING_ISO_8859_5
@ DVB_ENCODING_ISO_8859_5
Definition dvb_chartbl.h:36
DVB_ENCODING_ISO_8859_7
@ DVB_ENCODING_ISO_8859_7
Definition dvb_chartbl.h:38
DVB_ENCODING_ISO_8859_11
@ DVB_ENCODING_ISO_8859_11
Definition dvb_chartbl.h:42
DVB_ENCODING_GB_2312
@ DVB_ENCODING_GB_2312
Definition dvb_chartbl.h:49
DVB_ENCODING_KSX_1001
@ DVB_ENCODING_KSX_1001
Definition dvb_chartbl.h:48
DVB_ENCODING_INVALID
@ DVB_ENCODING_INVALID
Definition dvb_chartbl.h:25
DVB_ENCODING_ISO_8859_14
@ DVB_ENCODING_ISO_8859_14
Definition dvb_chartbl.h:44
DVB_ENCODING_UNKNOWN
@ DVB_ENCODING_UNKNOWN
Definition dvb_chartbl.h:27
DVB_ENCODING_ISO_8859_4
@ DVB_ENCODING_ISO_8859_4
Definition dvb_chartbl.h:35
DVB_ENCODING_RESERVED
@ DVB_ENCODING_RESERVED
Definition dvb_chartbl.h:26
DVB_ENCODING_ISO_10646_BMP
@ DVB_ENCODING_ISO_10646_BMP
Definition dvb_chartbl.h:47
DVB_ENCODING_ISO_10646_UTF8_BMP
@ DVB_ENCODING_ISO_10646_UTF8_BMP
Definition dvb_chartbl.h:51
dvb_analyze_string_charset
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
dvb_enc_to_item_enc
WS_DLL_PUBLIC unsigned dvb_enc_to_item_enc(dvb_encoding_e encoding)
Convert DVB encoding to item encoding.
Definition dvb_chartbl.c:211
to_str.h
proto.h
tvbuff.h