2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 #define ctf_integer(_type, _item, _src) \
9 _ctf_integer_ext(_type, _item, _src, BYTE_ORDER, 10, 0)
11 #undef ctf_integer_hex
12 #define ctf_integer_hex(_type, _item, _src) \
13 _ctf_integer_ext(_type, _item, _src, BYTE_ORDER, 16, 0)
15 #undef ctf_integer_network
16 #define ctf_integer_network(_type, _item, _src) \
17 _ctf_integer_ext(_type, _item, _src, BIG_ENDIAN, 10, 0)
19 #undef ctf_integer_network_hex
20 #define ctf_integer_network_hex(_type, _item, _src) \
21 _ctf_integer_ext(_type, _item, _src, BIG_ENDIAN, 16, 0)
24 #define ctf_float(_type, _item, _src) \
25 _ctf_float(_type, _item, _src, 0)
28 #define ctf_array(_type, _item, _src, _length) \
29 _ctf_array_encoded(_type, _item, _src, BYTE_ORDER, \
33 #define ctf_array_hex(_type, _item, _src, _length) \
34 _ctf_array_encoded(_type, _item, _src, BYTE_ORDER, \
37 #undef ctf_array_network
38 #define ctf_array_network(_type, _item, _src, _length) \
39 _ctf_array_encoded(_type, _item, _src, BIG_ENDIAN, \
42 #undef ctf_array_network_hex
43 #define ctf_array_network_hex(_type, _item, _src, _length) \
44 _ctf_array_encoded(_type, _item, _src, BIG_ENDIAN, \
48 #define ctf_array_text(_type, _item, _src, _length) \
49 _ctf_array_encoded(_type, _item, _src, BYTE_ORDER, \
53 #define ctf_sequence(_type, _item, _src, _length_type, _src_length) \
54 _ctf_sequence_encoded(_type, _item, _src, BYTE_ORDER, \
55 _length_type, _src_length, none, 0, 10)
57 #undef ctf_sequence_hex
58 #define ctf_sequence_hex(_type, _item, _src, _length_type, _src_length) \
59 _ctf_sequence_encoded(_type, _item, _src, BYTE_ORDER, \
60 _length_type, _src_length, none, 0, 16)
62 #undef ctf_sequence_network
63 #define ctf_sequence_network(_type, _item, _src, _length_type, _src_length) \
64 _ctf_sequence_encoded(_type, _item, _src, BIG_ENDIAN, \
65 _length_type, _src_length, none, 0, 10)
67 #undef ctf_sequence_network_hex
68 #define ctf_sequence_network_hex(_type, _item, _src, _length_type, _src_length) \
69 _ctf_sequence_encoded(_type, _item, _src, BIG_ENDIAN, \
70 _length_type, _src_length, none, 0, 16)
72 #undef ctf_sequence_text
73 #define ctf_sequence_text(_type, _item, _src, _length_type, _src_length) \
74 _ctf_sequence_encoded(_type, _item, _src, BYTE_ORDER, \
75 _length_type, _src_length, UTF8, 0, 10)
78 #define ctf_string(_item, _src) \
79 _ctf_string(_item, _src, 0)
82 #define ctf_enum(_provider, _name, _type, _item, _src) \
83 _ctf_enum(_provider, _name, _type, _item, _src, 0)
This page took 0.030541 seconds and 4 git commands to generate.