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
21 #undef ctf_integer_nowrite
22 #define ctf_integer_nowrite(_type, _item, _user_src) \
23 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 10, 0, 1)
25 #undef ctf_integer_hex_nowrite
26 #define ctf_integer_hex_nowrite(_type, _item, _user_src) \
27 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 16, 0, 1)
29 #undef ctf_integer_oct_nowrite
30 #define ctf_integer_oct_nowrite(_type, _item, _user_src) \
31 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 8, 0, 1)
33 #undef ctf_integer_network_nowrite
34 #define ctf_integer_network_nowrite(_type, _item, _user_src) \
35 _ctf_integer_ext(_type, _item, _user_src, __BIG_ENDIAN, 10, 0, 1)
37 #undef ctf_integer_network_hex_nowrite
38 #define ctf_integer_network_hex_nowrite(_type, _item, _user_src) \
39 _ctf_integer_ext(_type, _item, _user_src, __BIG_ENDIAN, 16, 0, 1)
41 #undef ctf_array_nowrite
42 #define ctf_array_nowrite(_type, _item, _user_src, _length) \
43 _ctf_array_encoded(_type, _item, _user_src, _length, none, 0, 1)
45 #undef ctf_array_text_nowrite
46 #define ctf_array_text_nowrite(_type, _item, _user_src, _length) \
47 _ctf_array_encoded(_type, _item, _user_src, _length, UTF8, 0, 1)
49 #undef ctf_array_bitfield_nowrite
50 #define ctf_array_bitfield_nowrite(_type, _item, _src, _length) \
51 _ctf_array_bitfield(_type, _item, _src, _length, 0, 1)
53 #undef ctf_sequence_nowrite
54 #define ctf_sequence_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
55 _ctf_sequence_encoded(_type, _item, _user_src, \
56 _length_type, _user_src_length, none, __BYTE_ORDER, 10, 0, 1)
58 #undef ctf_sequence_text_nowrite
59 #define ctf_sequence_text_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
60 _ctf_sequence_encoded(_type, _item, _user_src, \
61 _length_type, _user_src_length, UTF8, __BYTE_ORDER, 10, 0, 1)
63 #undef ctf_sequence_bitfield_nowrite
64 #define ctf_sequence_bitfield_nowrite(_type, _item, _src, _length_type, _src_length) \
65 _ctf_sequence_bitfield(_type, _item, _src, \
66 _length_type, _src_length, 0, 1)
68 #undef ctf_string_nowrite
69 #define ctf_string_nowrite(_item, _user_src) \
70 _ctf_string(_item, _user_src, 0, 1)
72 #undef ctf_enum_nowrite
73 #define ctf_enum_nowrite(_name, _type, _item, _src) \
74 _ctf_enum(_name, _type, _item, _src, 0, 1)
77 #undef ctf_user_integer_nowrite
78 #define ctf_user_integer_nowrite(_type, _item, _user_src) \
79 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 10, 1, 1)
81 #undef ctf_user_integer_hex_nowrite
82 #define ctf_user_integer_hex_nowrite(_type, _item, _user_src) \
83 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 16, 1, 1)
85 #undef ctf_user_integer_network_nowrite
86 #define ctf_user_integer_network_nowrite(_type, _item, _user_src) \
87 _ctf_integer_ext(_type, _item, _user_src, __BIG_ENDIAN, 10, 1, 1)
89 #undef ctf_user_integer_network_hex_nowrite
90 #define ctf_user_integer_network_hex_nowrite(_type, _item, _user_src) \
91 _ctf_integer_ext(_type, _item, _user_src, __BIG_ENDIAN, 16, 1, 1)
93 #undef ctf_user_array_nowrite
94 #define ctf_user_array_nowrite(_type, _item, _user_src, _length) \
95 _ctf_array_encoded(_type, _item, _user_src, _length, none, 1, 1)
97 #undef ctf_user_array_text_nowrite
98 #define ctf_user_array_text_nowrite(_type, _item, _user_src, _length) \
99 _ctf_array_encoded(_type, _item, _user_src, _length, UTF8, 1, 1)
101 #undef ctf_user_array_bitfield_nowrite
102 #define ctf_user_array_bitfield_nowrite(_type, _item, _src, _length) \
103 _ctf_array_bitfield(_type, _item, _src, _length, 1, 1)
105 #undef ctf_user_sequence_nowrite
106 #define ctf_user_sequence_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
107 _ctf_sequence_encoded(_type, _item, _user_src, \
108 _length_type, _user_src_length, none, __BYTE_ORDER, 10, 1, 1)
110 #undef ctf_user_sequence_text_nowrite
111 #define ctf_user_sequence_text_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
112 _ctf_sequence_encoded(_type, _item, _user_src, \
113 _length_type, _user_src_length, UTF8, __BYTE_ORDER, 10, 1, 1)
115 #undef ctf_user_sequence_bitfield_nowrite
116 #define ctf_user_sequence_bitfield_nowrite(_type, _item, _src, _length_type, _src_length) \
117 _ctf_sequence_bitfield(_type, _item, _src, \
118 _length_type, _src_length, 1, 1)
120 #undef ctf_user_string_nowrite
121 #define ctf_user_string_nowrite(_item, _user_src) \
122 _ctf_string(_item, _user_src, 1, 1)
124 #undef ctf_user_enum_nowrite
125 #define ctf_user_enum_nowrite(_name, _type, _item, _src) \
126 _ctf_enum(_name, _type, _item, _src, 1, 1)
This page took 0.031624 seconds and 4 git commands to generate.