1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
5 * Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 #undef ctf_integer_nowrite
9 #define ctf_integer_nowrite(_type, _item, _user_src) \
10 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 10, 0, 1)
12 #undef ctf_integer_hex_nowrite
13 #define ctf_integer_hex_nowrite(_type, _item, _user_src) \
14 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 16, 0, 1)
16 #undef ctf_integer_oct_nowrite
17 #define ctf_integer_oct_nowrite(_type, _item, _user_src) \
18 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 8, 0, 1)
20 #undef ctf_integer_network_nowrite
21 #define ctf_integer_network_nowrite(_type, _item, _user_src) \
22 _ctf_integer_ext(_type, _item, _user_src, __BIG_ENDIAN, 10, 0, 1)
24 #undef ctf_integer_network_hex_nowrite
25 #define ctf_integer_network_hex_nowrite(_type, _item, _user_src) \
26 _ctf_integer_ext(_type, _item, _user_src, __BIG_ENDIAN, 16, 0, 1)
28 #undef ctf_array_nowrite
29 #define ctf_array_nowrite(_type, _item, _src, _length) \
30 _ctf_array_encoded(_type, _item, _src, \
31 _length, none, __BYTE_ORDER, 10, 0, 1)
33 #undef ctf_array_network_nowrite
34 #define ctf_array_network_nowrite(_type, _item, _src, _length) \
35 _ctf_array_encoded(_type, _item, _src, \
36 _length, none, __BIG_ENDIAN, 10, 0, 1)
38 #undef ctf_array_text_nowrite
39 #define ctf_array_text_nowrite(_type, _item, _src, _length) \
40 _ctf_array_encoded(_type, _item, _src, \
41 _length, UTF8, __BYTE_ORDER, 10, 0, 1)
43 #undef ctf_array_bitfield_nowrite
44 #define ctf_array_bitfield_nowrite(_type, _item, _src, _length) \
45 _ctf_array_bitfield(_type, _item, _src, _length, 0, 1)
47 #undef ctf_sequence_nowrite
48 #define ctf_sequence_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
49 _ctf_sequence_encoded(_type, _item, _user_src, \
50 _length_type, _user_src_length, none, __BYTE_ORDER, 10, 0, 1)
52 #undef ctf_sequence_network_nowrite
53 #define ctf_sequence_network_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
54 _ctf_sequence_encoded(_type, _item, _user_src, \
55 _length_type, _user_src_length, none, __BIG_ENDIAN, 10, 0, 1)
57 #undef ctf_sequence_text_nowrite
58 #define ctf_sequence_text_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
59 _ctf_sequence_encoded(_type, _item, _user_src, \
60 _length_type, _user_src_length, UTF8, __BYTE_ORDER, 10, 0, 1)
62 #undef ctf_sequence_bitfield_nowrite
63 #define ctf_sequence_bitfield_nowrite(_type, _item, _src, _length_type, _src_length) \
64 _ctf_sequence_bitfield(_type, _item, _src, \
65 _length_type, _src_length, 0, 1)
67 #undef ctf_string_nowrite
68 #define ctf_string_nowrite(_item, _user_src) \
69 _ctf_string(_item, _user_src, 0, 1)
71 #undef ctf_enum_nowrite
72 #define ctf_enum_nowrite(_name, _type, _item, _src) \
73 _ctf_enum(_name, _type, _item, _src, 0, 1)
76 #undef ctf_user_integer_nowrite
77 #define ctf_user_integer_nowrite(_type, _item, _user_src) \
78 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 10, 1, 1)
80 #undef ctf_user_integer_hex_nowrite
81 #define ctf_user_integer_hex_nowrite(_type, _item, _user_src) \
82 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 16, 1, 1)
84 #undef ctf_user_integer_network_nowrite
85 #define ctf_user_integer_network_nowrite(_type, _item, _user_src) \
86 _ctf_integer_ext(_type, _item, _user_src, __BIG_ENDIAN, 10, 1, 1)
88 #undef ctf_user_integer_network_hex_nowrite
89 #define ctf_user_integer_network_hex_nowrite(_type, _item, _user_src) \
90 _ctf_integer_ext(_type, _item, _user_src, __BIG_ENDIAN, 16, 1, 1)
92 #undef ctf_user_array_nowrite
93 #define ctf_user_array_nowrite(_type, _item, _src, _length) \
94 _ctf_array_encoded(_type, _item, _src, \
95 _length, none, __BYTE_ORDER, 10, 1, 1)
97 #undef ctf_user_array_network_nowrite
98 #define ctf_user_array_network_nowrite(_type, _item, _src, _length) \
99 _ctf_array_encoded(_type, _item, _src, \
100 _length, none, __BIG_ENDIAN, 10, 1, 1)
102 #undef ctf_user_array_text_nowrite
103 #define ctf_user_array_text_nowrite(_type, _item, _src, _length) \
104 _ctf_array_encoded(_type, _item, _src, \
105 _length, UTF8, __BYTE_ORDER, 10, 1, 1)
107 #undef ctf_user_array_bitfield_nowrite
108 #define ctf_user_array_bitfield_nowrite(_type, _item, _src, _length) \
109 _ctf_array_bitfield(_type, _item, _src, _length, 1, 1)
111 #undef ctf_user_sequence_nowrite
112 #define ctf_user_sequence_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
113 _ctf_sequence_encoded(_type, _item, _user_src, \
114 _length_type, _user_src_length, none, __BYTE_ORDER, 10, 1, 1)
116 #undef ctf_user_sequence_network_nowrite
117 #define ctf_user_sequence_network_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
118 _ctf_sequence_encoded(_type, _item, _user_src, \
119 _length_type, _user_src_length, none, __BIG_ENDIAN, 10, 1, 1)
121 #undef ctf_user_sequence_text_nowrite
122 #define ctf_user_sequence_text_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
123 _ctf_sequence_encoded(_type, _item, _user_src, \
124 _length_type, _user_src_length, UTF8, __BYTE_ORDER, 10, 1, 1)
126 #undef ctf_user_sequence_bitfield_nowrite
127 #define ctf_user_sequence_bitfield_nowrite(_type, _item, _src, _length_type, _src_length) \
128 _ctf_sequence_bitfield(_type, _item, _src, \
129 _length_type, _src_length, 1, 1)
131 #undef ctf_user_string_nowrite
132 #define ctf_user_string_nowrite(_item, _user_src) \
133 _ctf_string(_item, _user_src, 1, 1)
135 #undef ctf_user_enum_nowrite
136 #define ctf_user_enum_nowrite(_name, _type, _item, _src) \
137 _ctf_enum(_name, _type, _item, _src, 1, 1)
This page took 0.032038 seconds and 4 git commands to generate.