dcerpc-nt: add UNION_ALIGN_TO... helpers
[wireshark-sm.git] / epan / dvb_chartbl.h
blob4092f48f52feb7064424933b3a6a4904fa9e0a19
1 /** @file
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
9 */
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>
20 #ifdef __cplusplus
21 extern "C" {
22 #endif /* __cplusplus */
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 */
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,
49 DVB_ENCODING_GB_2312,
50 DVB_ENCODING_ISO_10646_BIG5,
51 DVB_ENCODING_ISO_10646_UTF8_BMP
52 } dvb_encoding_e;
54 WS_DLL_PUBLIC
55 unsigned dvb_analyze_string_charset(tvbuff_t *tvb, int offset, int length,
56 dvb_encoding_e *encoding);
58 WS_DLL_PUBLIC
59 unsigned dvb_enc_to_item_enc(dvb_encoding_e encoding);
61 WS_DLL_PUBLIC
62 void dvb_add_chartbl(proto_tree *tree, int hf,
63 tvbuff_t *tvb, int offset, int length,
64 dvb_encoding_e encoding);
66 #ifdef __cplusplus
68 #endif /* __cplusplus */
70 #endif /* __DVB_CHARTBL_H__ */
73 * Editor modelines - https://www.wireshark.org/tools/modelines.html
75 * Local variables:
76 * c-basic-offset: 4
77 * tab-width: 8
78 * indent-tabs-mode: nil
79 * End:
81 * vi: set shiftwidth=4 tabstop=8 expandtab:
82 * :indentSize=4:tabSize=8:noTabs=true: