1 /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
5 * Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
9 #define ctf_integer(_type, _item, _src) \
10 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 10, 0, 0)
12 #undef ctf_integer_bitfield
13 #define ctf_integer_bitfield(_type, _item, _src) \
14 _ctf_integer_ext(_type, _item, _src, __LITTLE_ENDIAN, 10, 0, 0)
16 #undef ctf_integer_hex
17 #define ctf_integer_hex(_type, _item, _src) \
18 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 16, 0, 0)
20 #undef ctf_integer_oct
21 #define ctf_integer_oct(_type, _item, _src) \
22 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 8, 0, 0)
24 #undef ctf_integer_network
25 #define ctf_integer_network(_type, _item, _src) \
26 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 10, 0, 0)
28 #undef ctf_integer_network_hex
29 #define ctf_integer_network_hex(_type, _item, _src) \
30 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 16, 0, 0)
33 #define ctf_array(_type, _item, _src, _length) \
34 _ctf_array_encoded(_type, _item, _src, \
35 _length, none, __BYTE_ORDER, 10, 0, 0)
38 #define ctf_array_hex(_type, _item, _src, _length) \
39 _ctf_array_encoded(_type, _item, _src, \
40 _length, none, __BYTE_ORDER, 16, 0, 0)
42 #undef ctf_array_network
43 #define ctf_array_network(_type, _item, _src, _length) \
44 _ctf_array_encoded(_type, _item, _src, \
45 _length, none, __BIG_ENDIAN, 10, 0, 0)
47 #undef ctf_array_network_hex
48 #define ctf_array_network_hex(_type, _item, _src, _length) \
49 _ctf_array_encoded(_type, _item, _src, \
50 _length, none, __BIG_ENDIAN, 16, 0, 0)
53 #define ctf_array_text(_type, _item, _src, _length) \
54 _ctf_array_encoded(_type, _item, _src, \
55 _length, UTF8, __BYTE_ORDER, 10, 0, 0)
57 #undef ctf_array_bitfield
58 #define ctf_array_bitfield(_type, _item, _src, _length) \
59 _ctf_array_bitfield(_type, _item, _src, _length, 0, 0)
62 #define ctf_sequence(_type, _item, _src, _length_type, _src_length) \
63 _ctf_sequence_encoded(_type, _item, _src, \
64 _length_type, _src_length, none, __BYTE_ORDER, 10, 0, 0)
66 #undef ctf_sequence_hex
67 #define ctf_sequence_hex(_type, _item, _src, _length_type, _src_length) \
68 _ctf_sequence_encoded(_type, _item, _src, \
69 _length_type, _src_length, none, __BYTE_ORDER, 16, 0, 0)
71 #undef ctf_sequence_network
72 #define ctf_sequence_network(_type, _item, _src, _length_type, _src_length) \
73 _ctf_sequence_encoded(_type, _item, _src, \
74 _length_type, _src_length, none, __BIG_ENDIAN, 10, 0, 0)
76 #undef ctf_sequence_network_hex
77 #define ctf_sequence_network_hex(_type, _item, _src, _length_type, _src_length) \
78 _ctf_sequence_encoded(_type, _item, _src, \
79 _length_type, _src_length, none, __BIG_ENDIAN, 16, 0, 0)
81 #undef ctf_sequence_text
82 #define ctf_sequence_text(_type, _item, _src, _length_type, _src_length) \
83 _ctf_sequence_encoded(_type, _item, _src, \
84 _length_type, _src_length, UTF8, __BYTE_ORDER, 10, 0, 0)
86 #undef ctf_sequence_bitfield
87 #define ctf_sequence_bitfield(_type, _item, _src, _length_type, _src_length) \
88 _ctf_sequence_bitfield(_type, _item, _src, \
89 _length_type, _src_length, 0, 0)
92 #define ctf_string(_item, _src) \
93 _ctf_string(_item, _src, 0, 0)
96 #define ctf_enum(_name, _type, _item, _src) \
97 _ctf_enum(_name, _type, _item, _src, 0, 0)
100 #undef ctf_user_integer
101 #define ctf_user_integer(_type, _item, _src) \
102 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 10, 1, 0)
104 #undef ctf_user_integer_hex
105 #define ctf_user_integer_hex(_type, _item, _src) \
106 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 16, 1, 0)
108 #undef ctf_user_integer_network
109 #define ctf_user_integer_network(_type, _item, _src) \
110 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 10, 1, 0)
112 #undef ctf_user_integer_network_hex
113 #define ctf_user_integer_network_hex(_type, _item, _src) \
114 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 16, 1, 0)
116 #undef ctf_user_array
117 #define ctf_user_array(_type, _item, _src, _length) \
118 _ctf_array_encoded(_type, _item, _src, \
119 _length, none, __BYTE_ORDER, 10, 1, 0)
121 #undef ctf_user_array_hex
122 #define ctf_user_array_hex(_type, _item, _src, _length) \
123 _ctf_array_encoded(_type, _item, _src, \
124 _length, none, __BYTE_ORDER, 16, 1, 0)
126 #undef ctf_user_array_network
127 #define ctf_user_array_network(_type, _item, _src, _length) \
128 _ctf_array_encoded(_type, _item, _src, \
129 _length, none, __BIG_ENDIAN, 10, 1, 0)
131 #undef ctf_user_array_network_hex
132 #define ctf_user_array_network_hex(_type, _item, _src, _length) \
133 _ctf_array_encoded(_type, _item, _src, \
134 _length, none, __BIG_ENDIAN, 16, 1, 0)
136 #undef ctf_user_array_text
137 #define ctf_user_array_text(_type, _item, _src, _length) \
138 _ctf_array_encoded(_type, _item, _src, \
139 _length, UTF8, __BYTE_ORDER, 10, 1, 0)
141 #undef ctf_user_array_bitfield
142 #define ctf_user_array_bitfield(_type, _item, _src, _length) \
143 _ctf_array_bitfield(_type, _item, _src, _length, 1, 0)
145 #undef ctf_user_sequence
146 #define ctf_user_sequence(_type, _item, _src, _length_type, _src_length) \
147 _ctf_sequence_encoded(_type, _item, _src, \
148 _length_type, _src_length, none, __BYTE_ORDER, 10, 1, 0)
150 #undef ctf_user_sequence_hex
151 #define ctf_user_sequence_hex(_type, _item, _src, _length_type, _src_length) \
152 _ctf_sequence_encoded(_type, _item, _src, \
153 _length_type, _src_length, none, __BYTE_ORDER, 16, 1, 0)
155 #undef ctf_user_sequence_network
156 #define ctf_user_sequence_network(_type, _item, _src, _length_type, _src_length) \
157 _ctf_sequence_encoded(_type, _item, _src, \
158 _length_type, _src_length, none, __BIG_ENDIAN, 10, 1, 0)
160 #undef ctf_user_sequence_network_hex
161 #define ctf_user_sequence_network_hex(_type, _item, _src, _length_type, _src_length) \
162 _ctf_sequence_encoded(_type, _item, _src, \
163 _length_type, _src_length, none, __BIG_ENDIAN, 16, 1, 0)
165 #undef ctf_user_sequence_text
166 #define ctf_user_sequence_text(_type, _item, _src, _length_type, _src_length) \
167 _ctf_sequence_encoded(_type, _item, _src, \
168 _length_type, _src_length, UTF8, __BYTE_ORDER, 10, 1, 0)
170 #undef ctf_user_sequence_bitfield
171 #define ctf_user_sequence_bitfield(_type, _item, _src, _length_type, _src_length) \
172 _ctf_sequence_bitfield(_type, _item, _src, \
173 _length_type, _src_length, 1, 0)
175 #undef ctf_user_string
176 #define ctf_user_string(_item, _src) \
177 _ctf_string(_item, _src, 1, 0)
180 #define ctf_user_enum(_name, _type, _item, _src) \
181 _ctf_enum(_name, _type, _item, _src, 1, 0)
184 #undef ctf_integer_type
185 #define ctf_integer_type(_type, _src) \
186 ctf_integer(_type, unused, _src)
188 #undef ctf_integer_bitfield_type
189 #define ctf_integer_bitfield_type(_type, _src) \
190 ctf_integer_bitfield(_type, unused, _src)
192 #undef ctf_integer_hex_type
193 #define ctf_integer_hex_type(_type, _src) \
194 ctf_integer_hex(_type, unused, _src)
196 #undef ctf_integer_oct_type
197 #define ctf_integer_oct_type(_type, _item, _src) \
198 ctf_integer_oct(_type, unused, _src)
200 #undef ctf_integer_network_type
201 #define ctf_integer_network_type(_type, _src) \
202 ctf_integer_network(_type, unused, _src)
204 #undef ctf_integer_network_hex_type
205 #define ctf_integer_network_hex_type(_type, _src) \
206 ctf_integer_network_hex(_type, unused, _src)
208 #undef ctf_array_type
209 #define ctf_array_type(_type, _src, _length) \
210 ctf_array(_type, unused, _src, _length)
212 #undef ctf_array_hex_type
213 #define ctf_array_hex_type(_type, _src, _length) \
214 ctf_array_hex(_type, unused, _src, _length)
216 #undef ctf_array_network_type
217 #define ctf_array_network_type(_type, _src, _length) \
218 ctf_array_network(_type, unused, _src, _length)
220 #undef ctf_array_network_hex_type
221 #define ctf_array_network_hex_type(_type, _src, _length) \
222 ctf_array_network_hex(_type, unused, _src, _length)
224 #undef ctf_array_text_type
225 #define ctf_array_text_type(_type, _src, _length) \
226 ctf_array_text(_type, unused, _src, _length)
228 #undef ctf_array_bitfield_type
229 #define ctf_array_bitfield_type(_type, _src, _length) \
230 ctf_array_bitfield(_type, unused, _src, _length)
232 #undef ctf_sequence_type
233 #define ctf_sequence_type(_type, _src, _length_type, _src_length) \
234 ctf_sequence(_type, unused, _src, _length_type, _src_length)
236 #undef ctf_sequence_hex_type
237 #define ctf_sequence_hex_type(_type, _src, _length_type, _src_length) \
238 ctf_sequence_hex(_type, unused, _src, _length_type, _src_length)
240 #undef ctf_sequence_network_type
241 #define ctf_sequence_network_type(_type, _src, _length_type, _src_length) \
242 ctf_sequence_network(_type, unused, _src, _length_type, _src_length)
244 #undef ctf_sequence_network_hex_type
245 #define ctf_sequence_network_hex_type(_type, _src, _length_type, _src_length) \
246 ctf_sequence_network_hex(_type, unused, _src, _length_type, _src_length)
248 #undef ctf_sequence_text_type
249 #define ctf_sequence_text_type(_type, _src, _length_type, _src_length) \
250 ctf_sequence_text(_type, unused, _src, _length_type, _src_length)
252 #undef ctf_sequence_bitfield_type
253 #define ctf_sequence_bitfield_type(_type, _src, _length_type, _src_length) \
254 ctf_sequence_bitfield(_type, unused, _src, _length_type, _src_length)
256 #undef ctf_string_type
257 #define ctf_string_type(_src) \
258 ctf_string(unused, _src)
261 #define ctf_enum_type(_name, _type, _src) \
262 ctf_enum(_name, _type, unused, _src)
265 #undef ctf_user_integer_type
266 #define ctf_user_integer_type(_type, _src) \
267 ctf_user_integer(_type, unused, _src)
269 #undef ctf_user_integer_hex_type
270 #define ctf_user_integer_hex_type(_type, _src) \
271 ctf_user_integer_hex(_type, unused, _src)
273 #undef ctf_user_integer_oct_type
274 #define ctf_user_integer_oct_type(_type, _item, _src) \
275 ctf_user_integer_oct(_type, unused, _src)
277 #undef ctf_user_integer_network_type
278 #define ctf_user_integer_network_type(_type, _src) \
279 ctf_user_integer_network(_type, unused, _src)
281 #undef ctf_user_integer_network_hex_type
282 #define ctf_user_integer_network_hex_type(_type, _src) \
283 ctf_user_integer_network_hex(_type, unused, _src)
285 #undef ctf_user_array_type
286 #define ctf_user_array_type(_type, _src, _length) \
287 ctf_user_array(_type, unused, _src, _length)
289 #undef ctf_user_array_hex_type
290 #define ctf_user_array_hex_type(_type, _src, _length) \
291 ctf_user_array_hex(_type, unused, _src, _length)
293 #undef ctf_user_array_network_type
294 #define ctf_user_array_network_type(_type, _src, _length) \
295 ctf_user_array_network(_type, unused, _src, _length)
297 #undef ctf_user_array_network_hex_type
298 #define ctf_user_array_network_hex_type(_type, _src, _length) \
299 ctf_user_array_network_hex(_type, unused, _src, _length)
301 #undef ctf_user_array_text_type
302 #define ctf_user_array_text_type(_type, _src, _length) \
303 ctf_user_array_text(_type, unused, _src, _length)
305 #undef ctf_user_array_bitfield_type
306 #define ctf_user_array_bitfield_type(_type, _src, _length) \
307 ctf_user_array_bitfield(_type, unused, _src, _length)
309 #undef ctf_user_sequence_type
310 #define ctf_user_sequence_type(_type, _src, _length_type, _src_length) \
311 ctf_user_sequence(_type, unused, _src, _length_type, _src_length)
313 #undef ctf_user_sequence_hex_type
314 #define ctf_user_sequence_hex_type(_type, _src, _length_type, _src_length) \
315 ctf_user_sequence_hex(_type, unused, _src, _length_type, _src_length)
317 #undef ctf_user_sequence_network_type
318 #define ctf_user_sequence_network_type(_type, _src, _length_type, _src_length) \
319 ctf_user_sequence_network(_type, unused, _src, _length_type, _src_length)
321 #undef ctf_user_sequence_network_hex_type
322 #define ctf_user_sequence_network_hex_type(_type, _src, _length_type, _src_length) \
323 ctf_user_sequence_network_hex(_type, unused, _src, _length_type, _src_length)
325 #undef ctf_user_sequence_text_type
326 #define ctf_user_sequence_text_type(_type, _src, _length_type, _src_length) \
327 ctf_user_sequence_text(_type, unused, _src, _length_type, _src_length)
329 #undef ctf_user_sequence_bitfield_type
330 #define ctf_user_sequence_bitfield_type(_type, _src, _length_type, _src_length) \
331 ctf_user_sequence_bitfield(_type, unused, _src, _length_type, _src_length)
333 #undef ctf_user_string_type
334 #define ctf_user_string_type(_src) \
335 ctf_user_string(unused, _src)
337 #undef ctf_user_enum_type
338 #define ctf_user_enum_type(_name, _type, _src) \
339 ctf_user_enum(_name, _type, unused, _src)
This page took 0.035935 seconds and 4 git commands to generate.