a1f252373394a23bfde07ee286ae29523ed4175b
4 * Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; only
9 * version 2.1 of the License.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 #define ctf_integer(_type, _item, _src) \
23 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 10, 0, 0)
25 #undef ctf_integer_hex
26 #define ctf_integer_hex(_type, _item, _src) \
27 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 16, 0, 0)
29 #undef ctf_integer_oct
30 #define ctf_integer_oct(_type, _item, _src) \
31 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 8, 0, 0)
33 #undef ctf_integer_network
34 #define ctf_integer_network(_type, _item, _src) \
35 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 10, 0, 0)
37 #undef ctf_integer_network_hex
38 #define ctf_integer_network_hex(_type, _item, _src) \
39 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 16, 0, 0)
42 #define ctf_array(_type, _item, _src, _length) \
43 _ctf_array_encoded(_type, _item, _src, _length, none, 0, 0)
46 #define ctf_array_text(_type, _item, _src, _length) \
47 _ctf_array_encoded(_type, _item, _src, _length, UTF8, 0, 0)
49 #undef ctf_array_bitfield
50 #define ctf_array_bitfield(_type, _item, _src, _length) \
51 _ctf_array_bitfield(_type, _item, _src, _length, 0, 0)
54 #define ctf_sequence(_type, _item, _src, _length_type, _src_length) \
55 _ctf_sequence_encoded(_type, _item, _src, \
56 _length_type, _src_length, none, __BYTE_ORDER, 10, 0, 0)
58 #undef ctf_sequence_hex
59 #define ctf_sequence_hex(_type, _item, _src, _length_type, _src_length) \
60 _ctf_sequence_encoded(_type, _item, _src, \
61 _length_type, _src_length, none, __BYTE_ORDER, 16, 0, 0)
63 #undef ctf_sequence_network
64 #define ctf_sequence_network(_type, _item, _src, _length_type, _src_length) \
65 _ctf_sequence_encoded(_type, _item, _src, \
66 _length_type, _src_length, none, __BIG_ENDIAN, 10, 0, 0)
68 #undef ctf_sequence_text
69 #define ctf_sequence_text(_type, _item, _src, _length_type, _src_length) \
70 _ctf_sequence_encoded(_type, _item, _src, \
71 _length_type, _src_length, UTF8, __BYTE_ORDER, 10, 0, 0)
73 #undef ctf_sequence_bitfield
74 #define ctf_sequence_bitfield(_type, _item, _src, _length_type, _src_length) \
75 _ctf_sequence_bitfield(_type, _item, _src, \
76 _length_type, _src_length, 0, 0)
79 #define ctf_string(_item, _src) \
80 _ctf_string(_item, _src, 0, 0)
83 #undef ctf_user_integer
84 #define ctf_user_integer(_type, _item, _src) \
85 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 10, 1, 0)
87 #undef ctf_user_integer_hex
88 #define ctf_user_integer_hex(_type, _item, _src) \
89 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 16, 1, 0)
91 #undef ctf_user_integer_network
92 #define ctf_user_integer_network(_type, _item, _src) \
93 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 10, 1, 0)
95 #undef ctf_user_integer_network_hex
96 #define ctf_user_integer_network_hex(_type, _item, _src) \
97 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 16, 1, 0)
100 #define ctf_user_array(_type, _item, _src, _length) \
101 _ctf_array_encoded(_type, _item, _src, _length, none, 1, 0)
103 #undef ctf_user_array_text
104 #define ctf_user_array_text(_type, _item, _src, _length) \
105 _ctf_array_encoded(_type, _item, _src, _length, UTF8, 1, 0)
107 #undef ctf_user_array_bitfield
108 #define ctf_user_array_bitfield(_type, _item, _src, _length) \
109 _ctf_array_bitfield(_type, _item, _src, _length, 1, 0)
111 #undef ctf_user_sequence
112 #define ctf_user_sequence(_type, _item, _src, _length_type, _src_length) \
113 _ctf_sequence_encoded(_type, _item, _src, \
114 _length_type, _src_length, none, __BYTE_ORDER, 10, 1, 0)
116 #undef ctf_user_sequence_hex
117 #define ctf_user_sequence_hex(_type, _item, _src, _length_type, _src_length) \
118 _ctf_sequence_encoded(_type, _item, _src, \
119 _length_type, _src_length, none, __BYTE_ORDER, 16, 1, 0)
121 #undef ctf_user_sequence_text
122 #define ctf_user_sequence_text(_type, _item, _src, _length_type, _src_length) \
123 _ctf_sequence_encoded(_type, _item, _src, \
124 _length_type, _src_length, UTF8, __BYTE_ORDER, 10, 1, 0)
126 #undef ctf_user_sequence_bitfield
127 #define ctf_user_sequence_bitfield(_type, _item, _src, _length_type, _src_length) \
128 _ctf_sequence_bitfield(_type, _item, _src, \
129 _length_type, _src_length, 1, 0)
131 #undef ctf_user_string
132 #define ctf_user_string(_item, _src) \
133 _ctf_string(_item, _src, 1, 0)
136 #undef ctf_integer_type
137 #define ctf_integer_type(_type, _src) \
138 ctf_integer(_type, unused, _src)
140 #undef ctf_integer_hex_type
141 #define ctf_integer_hex_type(_type, _src) \
142 ctf_integer_hex(_type, unused, _src)
144 #undef ctf_integer_oct_type
145 #define ctf_integer_oct_type(_type, _item, _src) \
146 ctf_integer_oct(_type, unused, _src)
148 #undef ctf_integer_network_type
149 #define ctf_integer_network_type(_type, _src) \
150 ctf_integer_network(_type, unused, _src)
152 #undef ctf_integer_network_hex_type
153 #define ctf_integer_network_hex_type(_type, _src) \
154 ctf_integer_network_hex(_type, unused, _src)
156 #undef ctf_array_type
157 #define ctf_array_type(_type, _src, _length) \
158 ctf_array(_type, unused, _src, _length)
160 #undef ctf_array_text_type
161 #define ctf_array_text_type(_type, _src, _length) \
162 ctf_array_text(_type, unused, _src, _length)
164 #undef ctf_array_bitfield_type
165 #define ctf_array_bitfield_type(_type, _src, _length) \
166 ctf_array_bitfield(_type, unused, _src, _length)
168 #undef ctf_sequence_type
169 #define ctf_sequence_type(_type, _src, _length_type, _src_length) \
170 ctf_sequence(_type, unused, _src, _length_type, _src_length)
172 #undef ctf_sequence_hex_type
173 #define ctf_sequence_hex_type(_type, _src, _length_type, _src_length) \
174 ctf_sequence_hex(_type, unused, _src, _length_type, _src_length)
176 #undef ctf_sequence_network_type
177 #define ctf_sequence_network_type(_type, _src, _length_type, _src_length) \
178 ctf_sequence_network(_type, unused, _src, _length_type, _src_length)
180 #undef ctf_sequence_text_type
181 #define ctf_sequence_text_type(_type, _src, _length_type, _src_length) \
182 ctf_sequence_text(_type, unused, _src, _length_type, _src_length)
184 #undef ctf_sequence_bitfield_type
185 #define ctf_sequence_bitfield_type(_type, _src, _length_type, _src_length) \
186 ctf_sequence_bitfield(_type, unused, _src, _length_type, _src_length)
188 #undef ctf_string_type
189 #define ctf_string_type(_src) \
190 ctf_string(unused, _src)
193 #undef ctf_user_integer_type
194 #define ctf_user_integer_type(_type, _src) \
195 ctf_user_integer(_type, unused, _src)
197 #undef ctf_user_integer_hex_type
198 #define ctf_user_integer_hex_type(_type, _src) \
199 ctf_user_integer_hex(_type, unused, _src)
201 #undef ctf_user_integer_oct_type
202 #define ctf_user_integer_oct_type(_type, _item, _src) \
203 ctf_user_integer_oct(_type, unused, _src)
205 #undef ctf_user_integer_network_type
206 #define ctf_user_integer_network_type(_type, _src) \
207 ctf_user_integer_network(_type, unused, _src)
209 #undef ctf_user_integer_network_hex_type
210 #define ctf_user_integer_network_hex_type(_type, _src) \
211 ctf_user_integer_network_hex(_type, unused, _src)
213 #undef ctf_user_array_type
214 #define ctf_user_array_type(_type, _src, _length) \
215 ctf_user_array(_type, unused, _src, _length)
217 #undef ctf_user_array_text_type
218 #define ctf_user_array_text_type(_type, _src, _length) \
219 ctf_user_array_text(_type, unused, _src, _length)
221 #undef ctf_user_array_bitfield_type
222 #define ctf_user_array_bitfield_type(_type, _src, _length) \
223 ctf_user_array_bitfield(_type, unused, _src, _length)
225 #undef ctf_user_sequence_type
226 #define ctf_user_sequence_type(_type, _src, _length_type, _src_length) \
227 ctf_user_sequence(_type, unused, _src, _length_type, _src_length)
229 #undef ctf_user_sequence_hex_type
230 #define ctf_user_sequence_hex_type(_type, _src, _length_type, _src_length) \
231 ctf_user_sequence_hex(_type, unused, _src, _length_type, _src_length)
233 #undef ctf_user_sequence_network_type
234 #define ctf_user_sequence_network_type(_type, _src, _length_type, _src_length) \
235 ctf_user_sequence_network(_type, unused, _src, _length_type, _src_length)
237 #undef ctf_user_sequence_text_type
238 #define ctf_user_sequence_text_type(_type, _src, _length_type, _src_length) \
239 ctf_user_sequence_text(_type, unused, _src, _length_type, _src_length)
241 #undef ctf_user_sequence_bitfield_type
242 #define ctf_user_sequence_bitfield_type(_type, _src, _length_type, _src_length) \
243 ctf_user_sequence_bitfield(_type, unused, _src, _length_type, _src_length)
245 #undef ctf_user_string_type
246 #define ctf_user_string_type(_src) \
247 ctf_user_string(unused, _src)
This page took 0.043701 seconds and 4 git commands to generate.