Motr  M0
xcode_fops_ff.c
Go to the documentation of this file.
1 /* This file is automatically generated from xcode_fops.ff */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "xcode_fops_ff.h"
8 
17 
18 
19 
20 static struct _m0_test_buf_s {
23 } _m0_test_buf = {
24  ._type = {
26  .xct_name = "m0_test_buf",
27  .xct_sizeof = sizeof (struct m0_test_buf),
28  .xct_nr = 2
29  }
30 };
31 
33 M0_BASSERT(offsetof(struct _m0_test_buf_s, _child[0]) ==
34  offsetof(struct m0_xcode_type, xct_child[0]));
35 
36 static struct _m0_test_key_s {
39 } _m0_test_key = {
40  ._type = {
42  .xct_name = "m0_test_key",
43  .xct_sizeof = sizeof (struct m0_test_key),
44  .xct_nr = 3
45  }
46 };
47 
49 M0_BASSERT(offsetof(struct _m0_test_key_s, _child[0]) ==
50  offsetof(struct m0_xcode_type, xct_child[0]));
51 
52 static struct _m0_pair_s {
55 } _m0_pair = {
56  ._type = {
58  .xct_name = "m0_pair",
59  .xct_sizeof = sizeof (struct m0_pair),
60  .xct_nr = 4
61  }
62 };
63 
65 M0_BASSERT(offsetof(struct _m0_pair_s, _child[0]) ==
66  offsetof(struct m0_xcode_type, xct_child[0]));
67 
68 static struct _m0_desc_arr_s {
71 } _m0_desc_arr = {
72  ._type = {
74  .xct_name = "m0_desc_arr",
75  .xct_sizeof = sizeof (struct m0_desc_arr),
76  .xct_nr = 2
77  }
78 };
79 
81 M0_BASSERT(offsetof(struct _m0_desc_arr_s, _child[0]) ==
82  offsetof(struct m0_xcode_type, xct_child[0]));
83 
84 static struct _m0_fop_test_arr_s {
87 } _m0_fop_test_arr = {
88  ._type = {
90  .xct_name = "m0_fop_test_arr",
91  .xct_sizeof = sizeof (struct m0_fop_test_arr),
92  .xct_nr = 2
93  }
94 };
95 
97 M0_BASSERT(offsetof(struct _m0_fop_test_arr_s, _child[0]) ==
98  offsetof(struct m0_xcode_type, xct_child[0]));
99 
100 static struct _m0_fop_test_s {
103 } _m0_fop_test = {
104  ._type = {
106  .xct_name = "m0_fop_test",
107  .xct_sizeof = sizeof (struct m0_fop_test),
108  .xct_nr = 3
109  }
110 };
111 
113 M0_BASSERT(offsetof(struct _m0_fop_test_s, _child[0]) ==
114  offsetof(struct m0_xcode_type, xct_child[0]));
115 
116 static struct _m0_biquad_s {
119 } _m0_biquad = {
120  ._type = {
122  .xct_name = "m0_biquad",
123  .xct_sizeof = sizeof (struct m0_biquad),
124  .xct_nr = 1
125  }
126 };
127 
129 M0_BASSERT(offsetof(struct _m0_biquad_s, _child[0]) ==
130  offsetof(struct m0_xcode_type, xct_child[0]));
131 
132 static struct _m0_octopair_s {
135 } _m0_octopair = {
136  ._type = {
138  .xct_name = "m0_octopair",
139  .xct_sizeof = sizeof (struct m0_octopair),
140  .xct_nr = 1
141  }
142 };
143 
145 M0_BASSERT(offsetof(struct _m0_octopair_s, _child[0]) ==
146  offsetof(struct m0_xcode_type, xct_child[0]));
147 
148 
149 
150 M0_INTERNAL void m0_xc_xcode_fops_init(void)
151 {
152  _m0_test_buf._child[0] = (struct m0_xcode_field) {
153  .xf_name = "tb_cnt",
154  .xf_type = &M0_XT_U32,
155  .xf_tag = 0,
156  .xf_opaque = NULL,
157  .xf_offset = offsetof(struct m0_test_buf, tb_cnt)
158  };
159  _m0_test_buf._child[1] = (struct m0_xcode_field) {
160  .xf_name = "tb_buf",
161  .xf_type = &M0_XT_U8,
162  .xf_tag = 0,
163  .xf_opaque = NULL,
164  .xf_offset = offsetof(struct m0_test_buf, tb_buf)
165  };
166 
167  _m0_test_key._child[0] = (struct m0_xcode_field) {
168  .xf_name = "tk_index",
169  .xf_type = &M0_XT_U32,
170  .xf_tag = 0,
171  .xf_opaque = NULL,
172  .xf_offset = offsetof(struct m0_test_key, tk_index)
173  };
174  _m0_test_key._child[1] = (struct m0_xcode_field) {
175  .xf_name = "tk_val",
176  .xf_type = &M0_XT_U64,
177  .xf_tag = 0,
178  .xf_opaque = NULL,
179  .xf_offset = offsetof(struct m0_test_key, tk_val)
180  };
181  _m0_test_key._child[2] = (struct m0_xcode_field) {
182  .xf_name = "tk_flag",
183  .xf_type = &M0_XT_U8,
184  .xf_tag = 0,
185  .xf_opaque = NULL,
186  .xf_offset = offsetof(struct m0_test_key, tk_flag)
187  };
188 
189  _m0_pair._child[0] = (struct m0_xcode_field) {
190  .xf_name = "p_offset",
191  .xf_type = &M0_XT_U64,
192  .xf_tag = 0,
193  .xf_opaque = NULL,
194  .xf_offset = offsetof(struct m0_pair, p_offset)
195  };
196  _m0_pair._child[1] = (struct m0_xcode_field) {
197  .xf_name = "p_cnt",
198  .xf_type = &M0_XT_U32,
199  .xf_tag = 0,
200  .xf_opaque = NULL,
201  .xf_offset = offsetof(struct m0_pair, p_cnt)
202  };
203  _m0_pair._child[2] = (struct m0_xcode_field) {
204  .xf_name = "p_key",
205  .xf_type = m0_test_key_xc,
206  .xf_tag = 0,
207  .xf_opaque = NULL,
208  .xf_offset = offsetof(struct m0_pair, p_key)
209  };
210  _m0_pair._child[3] = (struct m0_xcode_field) {
211  .xf_name = "p_buf",
212  .xf_type = m0_test_buf_xc,
213  .xf_tag = 0,
214  .xf_opaque = NULL,
215  .xf_offset = offsetof(struct m0_pair, p_buf)
216  };
217 
218  _m0_desc_arr._child[0] = (struct m0_xcode_field) {
219  .xf_name = "da_cnt",
220  .xf_type = &M0_XT_U32,
221  .xf_tag = 0,
222  .xf_opaque = NULL,
223  .xf_offset = offsetof(struct m0_desc_arr, da_cnt)
224  };
225  _m0_desc_arr._child[1] = (struct m0_xcode_field) {
226  .xf_name = "da_pair",
227  .xf_type = m0_pair_xc,
228  .xf_tag = 0,
229  .xf_opaque = NULL,
230  .xf_offset = offsetof(struct m0_desc_arr, da_pair)
231  };
232 
233  _m0_fop_test_arr._child[0] = (struct m0_xcode_field) {
234  .xf_name = "fta_cnt",
235  .xf_type = &M0_XT_U32,
236  .xf_tag = 0,
237  .xf_opaque = NULL,
238  .xf_offset = offsetof(struct m0_fop_test_arr, fta_cnt)
239  };
240  _m0_fop_test_arr._child[1] = (struct m0_xcode_field) {
241  .xf_name = "fta_data",
242  .xf_type = m0_desc_arr_xc,
243  .xf_tag = 0,
244  .xf_opaque = NULL,
245  .xf_offset = offsetof(struct m0_fop_test_arr, fta_data)
246  };
247 
248  _m0_fop_test._child[0] = (struct m0_xcode_field) {
249  .xf_name = "ft_cnt",
250  .xf_type = &M0_XT_U32,
251  .xf_tag = 0,
252  .xf_opaque = NULL,
253  .xf_offset = offsetof(struct m0_fop_test, ft_cnt)
254  };
255  _m0_fop_test._child[1] = (struct m0_xcode_field) {
256  .xf_name = "ft_offset",
257  .xf_type = &M0_XT_U64,
258  .xf_tag = 0,
259  .xf_opaque = NULL,
260  .xf_offset = offsetof(struct m0_fop_test, ft_offset)
261  };
262  _m0_fop_test._child[2] = (struct m0_xcode_field) {
263  .xf_name = "ft_arr",
264  .xf_type = m0_fop_test_arr_xc,
265  .xf_tag = 0,
266  .xf_opaque = NULL,
267  .xf_offset = offsetof(struct m0_fop_test, ft_arr)
268  };
269 
270  _m0_biquad._child[0] = (struct m0_xcode_field) {
271  .xf_name = "el",
272  .xf_type = &M0_XT_U32,
273  .xf_tag = 8,
274  .xf_opaque = NULL,
275  .xf_offset = offsetof(struct m0_biquad, el)
276  };
277 
278  _m0_octopair._child[0] = (struct m0_xcode_field) {
279  .xf_name = "p",
280  .xf_type = m0_pair_xc,
281  .xf_tag = 8,
282  .xf_opaque = NULL,
283  .xf_offset = offsetof(struct m0_octopair, p)
284  };
285 
286 }
287 M0_INTERNAL void m0_xc_xcode_fops_fini(void)
288 {}
struct m0_xcode_type _type
Definition: xcode_fops_ff.c:53
static struct _m0_desc_arr_s _m0_desc_arr
static struct m0_addb2_philter p
Definition: consumer.c:40
static struct _m0_fop_test_s _m0_fop_test
struct m0_xcode_type * m0_fop_test_arr_xc
Definition: xcode_fops_ff.c:13
#define NULL
Definition: misc.h:38
static struct _m0_fop_test_arr_s _m0_fop_test_arr
struct m0_xcode_type _type
Definition: xcode_fops_ff.c:21
struct m0_xcode_type * m0_test_key_xc
Definition: xcode_fops_ff.c:10
struct m0_xcode_field _child[2]
Definition: xcode_fops_ff.c:70
struct m0_xcode_type * m0_fop_test_xc
Definition: xcode_fops_ff.c:14
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
m0_bindex_t p_offset
Definition: xcode.h:82
struct m0_xcode_type _type
struct m0_xcode_field _child[3]
struct m0_xcode_field _child[2]
Definition: xcode_fops_ff.c:22
struct m0_xcode_field _child[1]
struct m0_xcode_type * m0_pair_xc
Definition: xcode_fops_ff.c:11
struct m0_xcode_type _type
struct m0_xcode_field _child[4]
Definition: xcode_fops_ff.c:54
static struct _m0_test_buf_s _m0_test_buf
M0_INTERNAL void m0_xc_xcode_fops_fini(void)
struct m0_xcode_type * m0_biquad_xc
Definition: xcode_fops_ff.c:15
static struct _m0_octopair_s _m0_octopair
struct m0_xcode_field _child[2]
Definition: xcode_fops_ff.c:86
struct m0_xcode_type _type
struct m0_xcode_type * m0_test_buf_xc
Definition: xcode_fops_ff.c:9
static struct _m0_biquad_s _m0_biquad
M0_BASSERT(offsetof(struct _m0_test_buf_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
const struct m0_xcode_type M0_XT_U32
Definition: xcode.c:932
struct m0_xcode_type _type
Definition: xcode_fops_ff.c:85
M0_INTERNAL void m0_xc_xcode_fops_init(void)
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
struct m0_xcode_field _child[1]
const struct m0_xcode_type M0_XT_U8
Definition: xcode.c:924
struct m0_xcode_type * m0_desc_arr_xc
Definition: xcode_fops_ff.c:12
static struct _m0_test_key_s _m0_test_key
static struct elevator el
Definition: chs_test.c:102
struct m0_xcode_type _type
Definition: xcode_fops_ff.c:69
const char * xf_name
Definition: xcode.h:251
struct m0_xcode_field _child[3]
Definition: xcode_fops_ff.c:38
const struct m0_xcode_type M0_XT_U64
Definition: xcode.c:940
struct m0_xcode_type * m0_octopair_xc
Definition: xcode_fops_ff.c:16
static struct _m0_pair_s _m0_pair
#define offsetof(typ, memb)
Definition: misc.h:29
struct m0_xcode_type _type
Definition: xcode_fops_ff.c:37