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#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
19#ifdef __cplusplus
20extern "C" {
21#endif /* __cplusplus */
22
23typedef enum {
24 DVB_ENCODING_INVALID = -3, /* length invalid */
25 DVB_ENCODING_RESERVED = -2, /* reserved by spec */
26 DVB_ENCODING_UNKNOWN = -1, /* not defined by spec */
27
28 DVB_ENCODING_LATIN = 0,
29 /* these defines don't have to match with the values
30 from the DVB-SI specification */
31 DVB_ENCODING_ISO_8859_1,
32 DVB_ENCODING_ISO_8859_2,
33 DVB_ENCODING_ISO_8859_3,
34 DVB_ENCODING_ISO_8859_4,
35 DVB_ENCODING_ISO_8859_5,
36 DVB_ENCODING_ISO_8859_6,
37 DVB_ENCODING_ISO_8859_7,
38 DVB_ENCODING_ISO_8859_8,
39 DVB_ENCODING_ISO_8859_9,
40 DVB_ENCODING_ISO_8859_10,
41 DVB_ENCODING_ISO_8859_11,
42 DVB_ENCODING_ISO_8859_13,
43 DVB_ENCODING_ISO_8859_14,
44 DVB_ENCODING_ISO_8859_15,
45
46 DVB_ENCODING_ISO_10646_BMP,
47 DVB_ENCODING_KSX_1001,
48 DVB_ENCODING_GB_2312,
49 DVB_ENCODING_ISO_10646_BIG5,
50 DVB_ENCODING_ISO_10646_UTF8_BMP
51} dvb_encoding_e;
52
53WS_DLL_PUBLIC
54unsigned dvb_analyze_string_charset(tvbuff_t *tvb, int offset, int length,
55 dvb_encoding_e *encoding);
56
57WS_DLL_PUBLIC
58unsigned dvb_enc_to_item_enc(dvb_encoding_e encoding);
59
60WS_DLL_PUBLIC
61void dvb_add_chartbl(proto_tree *tree, int hf,
62 tvbuff_t *tvb, int offset, int length,
63 dvb_encoding_e encoding);
64
65#ifdef __cplusplus
66}
67#endif /* __cplusplus */
68
69#endif /* __DVB_CHARTBL_H__ */
70
71/*
72 * Editor modelines - https://www.wireshark.org/tools/modelines.html
73 *
74 * Local variables:
75 * c-basic-offset: 4
76 * tab-width: 8
77 * indent-tabs-mode: nil
78 * End:
79 *
80 * vi: set shiftwidth=4 tabstop=8 expandtab:
81 * :indentSize=4:tabSize=8:noTabs=true:
82 */
Definition proto.h:907
Definition tvbuff-int.h:35