Motr  M0
isc_fops_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from iscservice/isc_fops.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "iscservice/isc_fops.h"
9 
12 
13 static struct _m0_fop_isc_s {
16 } _m0_fop_isc = {
17  ._type = {
19  .xct_name = "m0_fop_isc",
20  .xct_sizeof = sizeof (struct m0_fop_isc),
21  .xct_nr = 4,
22  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
23  }
24 };
25 
27 M0_BASSERT(offsetof(struct _m0_fop_isc_s, _child[0]) ==
28  offsetof(struct m0_xcode_type, xct_child[0]));
29 
30 static struct _m0_fop_isc_rep_s {
33 } _m0_fop_isc_rep = {
34  ._type = {
36  .xct_name = "m0_fop_isc_rep",
37  .xct_sizeof = sizeof (struct m0_fop_isc_rep),
38  .xct_nr = 3,
39  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
40  }
41 };
42 
44 M0_BASSERT(offsetof(struct _m0_fop_isc_rep_s, _child[0]) ==
45  offsetof(struct m0_xcode_type, xct_child[0]));
46 
47 
48 M0_BASSERT(sizeof(struct m0_fop_isc) == 144U);
49 
50 M0_BASSERT(sizeof ((struct m0_fop_isc *)0)->fi_comp_id == 16U);
52 M0_BASSERT(sizeof ((struct m0_fop_isc *)0)->fi_args == 56U);
53 M0_BASSERT(offsetof(struct m0_fop_isc, fi_args) == 16U);
54 M0_BASSERT(sizeof ((struct m0_fop_isc *)0)->fi_ret == 56U);
55 M0_BASSERT(offsetof(struct m0_fop_isc, fi_ret) == 72U);
56 M0_BASSERT(sizeof ((struct m0_fop_isc *)0)->fi_comp_cookie == 16U);
58 
59 M0_BASSERT(sizeof(struct m0_fop_isc_rep) == 80U);
60 
61 M0_BASSERT(sizeof ((struct m0_fop_isc_rep *)0)->fir_rc == 4U);
63 M0_BASSERT(sizeof ((struct m0_fop_isc_rep *)0)->fir_comp_cookie == 16U);
65 M0_BASSERT(sizeof ((struct m0_fop_isc_rep *)0)->fir_ret == 56U);
66 M0_BASSERT(offsetof(struct m0_fop_isc_rep, fir_ret) == 24U);
67 
68 
69 
70 M0_INTERNAL void m0_xc_m0_fop_isc_struct_init(void)
71 {
72  _m0_fop_isc._child[0] = (struct m0_xcode_field) {
73  .xf_name = "fi_comp_id",
74 
75  .xf_type = m0_fid_xc,
76 
77  .xf_tag = 0,
78  .xf_opaque = NULL,
79  .xf_offset = offsetof(struct m0_fop_isc, fi_comp_id),
80  .xf_read = NULL,
81  .xf_decor = {
83  }
84  };
86 
87  _m0_fop_isc._child[1] = (struct m0_xcode_field) {
88  .xf_name = "fi_args",
89 
90  .xf_type = m0_rpc_at_buf_xc,
91 
92  .xf_tag = 0,
93  .xf_opaque = NULL,
94  .xf_offset = offsetof(struct m0_fop_isc, fi_args),
95  .xf_read = NULL,
96  .xf_decor = {
98  }
99  };
101 
102  _m0_fop_isc._child[2] = (struct m0_xcode_field) {
103  .xf_name = "fi_ret",
104 
105  .xf_type = m0_rpc_at_buf_xc,
106 
107  .xf_tag = 0,
108  .xf_opaque = NULL,
109  .xf_offset = offsetof(struct m0_fop_isc, fi_ret),
110  .xf_read = NULL,
111  .xf_decor = {
113  }
114  };
116 
117  _m0_fop_isc._child[3] = (struct m0_xcode_field) {
118  .xf_name = "fi_comp_cookie",
119 
120  .xf_type = m0_cookie_xc,
121 
122  .xf_tag = 0,
123  .xf_opaque = NULL,
124  .xf_offset = offsetof(struct m0_fop_isc, fi_comp_cookie),
125  .xf_read = NULL,
126  .xf_decor = {
128  }
129  };
131 
133 }
134 
135 M0_INTERNAL void m0_xc_m0_fop_isc_rep_struct_init(void)
136 {
137  _m0_fop_isc_rep._child[0] = (struct m0_xcode_field) {
138  .xf_name = "fir_rc",
139 
140  .xf_type = &M0_XT_U32,
141 
142  .xf_tag = 0,
143  .xf_opaque = NULL,
144  .xf_offset = offsetof(struct m0_fop_isc_rep, fir_rc),
145  .xf_read = NULL,
146  .xf_decor = {
148  }
149  };
150  m0_xc_u32_init();
151 
152  _m0_fop_isc_rep._child[1] = (struct m0_xcode_field) {
153  .xf_name = "fir_comp_cookie",
154 
155  .xf_type = m0_cookie_xc,
156 
157  .xf_tag = 0,
158  .xf_opaque = NULL,
159  .xf_offset = offsetof(struct m0_fop_isc_rep, fir_comp_cookie),
160  .xf_read = NULL,
161  .xf_decor = {
163  }
164  };
166 
167  _m0_fop_isc_rep._child[2] = (struct m0_xcode_field) {
168  .xf_name = "fir_ret",
169 
170  .xf_type = m0_rpc_at_buf_xc,
171 
172  .xf_tag = 0,
173  .xf_opaque = NULL,
174  .xf_offset = offsetof(struct m0_fop_isc_rep, fir_ret),
175  .xf_read = NULL,
176  .xf_decor = {
178  }
179  };
181 
183 }
184 
185 M0_INTERNAL void m0_xc_iscservice_isc_fops_init(void)
186 {
189 }
190 
191 M0_INTERNAL void m0_xc_iscservice_isc_fops_fini(void)
192 {
193 }
struct m0_xcode_field _child[4]
Definition: isc_fops_xc.c:15
struct m0_xcode_type _type
Definition: isc_fops_xc.c:31
#define NULL
Definition: misc.h:38
M0_INTERNAL void m0_xc_iscservice_isc_fops_fini(void)
Definition: isc_fops_xc.c:191
int32_t fir_rc
Definition: isc_fops.h:42
M0_BASSERT(offsetof(struct _m0_fop_isc_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
M0_INTERNAL void m0_xc_m0_cookie_struct_init(void)
Definition: cookie_xc.c:39
static struct _m0_fop_isc_s _m0_fop_isc
struct m0_cookie fi_comp_cookie
Definition: isc_fops.h:54
struct m0_fid fi_comp_id
Definition: isc_fops.h:42
struct m0_xcode_type _type
Definition: isc_fops_xc.c:14
struct m0_rpc_at_buf fi_args
Definition: isc_fops.h:48
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
M0_INTERNAL void m0_xc_m0_fid_struct_init(void)
Definition: fid_xc.c:64
struct m0_rpc_at_buf fir_ret
Definition: isc_fops.h:46
struct m0_xcode_type * m0_fop_isc_rep_xc
Definition: isc_fops_xc.c:11
M0_INTERNAL void m0_xc_m0_fop_isc_rep_struct_init(void)
Definition: isc_fops_xc.c:135
M0_INTERNAL void m0_xc_iscservice_isc_fops_init(void)
Definition: isc_fops_xc.c:185
#define M0_POST(cond)
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
const struct m0_xcode_type M0_XT_U32
Definition: xcode.c:932
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
struct m0_cookie fir_comp_cookie
Definition: isc_fops.h:44
struct m0_xcode_type * m0_fop_isc_xc
Definition: isc_fops_xc.c:10
static struct _m0_fop_isc_rep_s _m0_fop_isc_rep
void m0_xc_u32_init(void)
Definition: xcode.c:900
struct m0_xcode_type * m0_cookie_xc
Definition: cookie_xc.c:10
struct m0_rpc_at_buf fi_ret
Definition: isc_fops.h:52
const char * xf_name
Definition: xcode.h:251
M0_INTERNAL void m0_xc_m0_rpc_at_buf_struct_init(void)
Definition: at_xc.c:184
struct m0_xcode_type * m0_fid_xc
Definition: fid_xc.c:10
struct m0_xcode_type * m0_rpc_at_buf_xc
Definition: at_xc.c:12
#define offsetof(typ, memb)
Definition: misc.h:29
struct m0_xcode_field _child[3]
Definition: isc_fops_xc.c:32
M0_INTERNAL void m0_xc_m0_fop_isc_struct_init(void)
Definition: isc_fops_xc.c:70