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)
50 #define ctf_sequence(_type, _item, _src, _length_type, _src_length) \
51 _ctf_sequence_encoded(_type, _item, _src, \
52 _length_type, _src_length, none, __BYTE_ORDER, 10, 0, 0)
54 #undef ctf_sequence_hex
55 #define ctf_sequence_hex(_type, _item, _src, _length_type, _src_length) \
56 _ctf_sequence_encoded(_type, _item, _src, \
57 _length_type, _src_length, none, __BYTE_ORDER, 16, 0, 0)
59 #undef ctf_sequence_network
60 #define ctf_sequence_network(_type, _item, _src, _length_type, _src_length) \
61 _ctf_sequence_encoded(_type, _item, _src, \
62 _length_type, _src_length, none, __BIG_ENDIAN, 10, 0, 0)
64 #undef ctf_sequence_text
65 #define ctf_sequence_text(_type, _item, _src, _length_type, _src_length) \
66 _ctf_sequence_encoded(_type, _item, _src, \
67 _length_type, _src_length, UTF8, __BYTE_ORDER, 10, 0, 0)
70 #define ctf_string(_item, _src) \
71 _ctf_string(_item, _src, 0, 0)
74 #undef ctf_user_integer
75 #define ctf_user_integer(_type, _item, _src) \
76 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 10, 1, 0)
78 #undef ctf_user_integer_hex
79 #define ctf_user_integer_hex(_type, _item, _src) \
80 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 16, 1, 0)
82 #undef ctf_user_integer_network
83 #define ctf_user_integer_network(_type, _item, _src) \
84 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 10, 1, 0)
86 #undef ctf_user_integer_network_hex
87 #define ctf_user_integer_network_hex(_type, _item, _src) \
88 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 16, 1, 0)
91 #define ctf_user_array(_type, _item, _src, _length) \
92 _ctf_array_encoded(_type, _item, _src, _length, none, 1, 0)
94 #undef ctf_user_array_text
95 #define ctf_user_array_text(_type, _item, _src, _length) \
96 _ctf_array_encoded(_type, _item, _src, _length, UTF8, 1, 0)
98 #undef ctf_user_sequence
99 #define ctf_user_sequence(_type, _item, _src, _length_type, _src_length) \
100 _ctf_sequence_encoded(_type, _item, _src, \
101 _length_type, _src_length, none, __BYTE_ORDER, 10, 1, 0)
103 #undef ctf_user_sequence_hex
104 #define ctf_user_sequence_hex(_type, _item, _src, _length_type, _src_length) \
105 _ctf_sequence_encoded(_type, _item, _src, \
106 _length_type, _src_length, none, __BYTE_ORDER, 16, 1, 0)
108 #undef ctf_user_sequence_text
109 #define ctf_user_sequence_text(_type, _item, _src, _length_type, _src_length) \
110 _ctf_sequence_encoded(_type, _item, _src, \
111 _length_type, _src_length, UTF8, __BYTE_ORDER, 10, 1, 0)
113 #undef ctf_user_string
114 #define ctf_user_string(_item, _src) \
115 _ctf_string(_item, _src, 1, 0)
This page took 0.039469 seconds and 5 git commands to generate.