Motr  M0
load_fop_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from conf/load_fop.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "conf/load_fop.h"
8 #include "conf/load_fop_xc.h"
9 
12 
13 static struct _m0_fop_conf_load_s {
17  ._type = {
19  .xct_name = "m0_fop_conf_load",
20  .xct_sizeof = sizeof (struct m0_fop_conf_load),
21  .xct_nr = 3,
22  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
23  }
24 };
25 
27 M0_BASSERT(offsetof(struct _m0_fop_conf_load_s, _child[0]) ==
28  offsetof(struct m0_xcode_type, xct_child[0]));
29 
30 static struct _m0_fop_conf_load_rep_s {
34  ._type = {
36  .xct_name = "m0_fop_conf_load_rep",
37  .xct_sizeof = sizeof (struct m0_fop_conf_load_rep),
38  .xct_nr = 2,
39  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
40  }
41 };
42 
44 M0_BASSERT(offsetof(struct _m0_fop_conf_load_rep_s, _child[0]) ==
45  offsetof(struct m0_xcode_type, xct_child[0]));
46 
47 
48 M0_BASSERT(sizeof(struct m0_fop_conf_load) == 40U);
49 
50 M0_BASSERT(sizeof ((struct m0_fop_conf_load *)0)->clf_version == 4U);
52 M0_BASSERT(sizeof ((struct m0_fop_conf_load *)0)->clf_tx_id == 8U);
54 M0_BASSERT(sizeof ((struct m0_fop_conf_load *)0)->clf_desc == 24U);
56 
57 M0_BASSERT(sizeof(struct m0_fop_conf_load_rep) == 8U);
58 
59 M0_BASSERT(sizeof ((struct m0_fop_conf_load_rep *)0)->clfr_rc == 4U);
61 M0_BASSERT(sizeof ((struct m0_fop_conf_load_rep *)0)->clfr_version == 4U);
63 
64 
65 
66 M0_INTERNAL void m0_xc_m0_fop_conf_load_struct_init(void)
67 {
69  .xf_name = "clf_version",
70 
71  .xf_type = &M0_XT_U32,
72 
73  .xf_tag = 0,
74  .xf_opaque = NULL,
75  .xf_offset = offsetof(struct m0_fop_conf_load, clf_version),
76  .xf_read = NULL,
77  .xf_decor = {
79  }
80  };
82 
84  .xf_name = "clf_tx_id",
85 
86  .xf_type = &M0_XT_U64,
87 
88  .xf_tag = 0,
89  .xf_opaque = NULL,
90  .xf_offset = offsetof(struct m0_fop_conf_load, clf_tx_id),
91  .xf_read = NULL,
92  .xf_decor = {
94  }
95  };
97 
99  .xf_name = "clf_desc",
100 
101  .xf_type = m0_net_buf_desc_data_xc,
102 
103  .xf_tag = 0,
104  .xf_opaque = NULL,
105  .xf_offset = offsetof(struct m0_fop_conf_load, clf_desc),
106  .xf_read = NULL,
107  .xf_decor = {
109  }
110  };
112 
114 }
115 
117 {
119  .xf_name = "clfr_rc",
120 
121  .xf_type = &M0_XT_U32,
122 
123  .xf_tag = 0,
124  .xf_opaque = NULL,
125  .xf_offset = offsetof(struct m0_fop_conf_load_rep, clfr_rc),
126  .xf_read = NULL,
127  .xf_decor = {
129  }
130  };
131  m0_xc_u32_init();
132 
134  .xf_name = "clfr_version",
135 
136  .xf_type = &M0_XT_U32,
137 
138  .xf_tag = 0,
139  .xf_opaque = NULL,
140  .xf_offset = offsetof(struct m0_fop_conf_load_rep, clfr_version),
141  .xf_read = NULL,
142  .xf_decor = {
144  }
145  };
146  m0_xc_u32_init();
147 
149 }
150 
151 M0_INTERNAL void m0_xc_conf_load_fop_init(void)
152 {
155 }
156 
157 M0_INTERNAL void m0_xc_conf_load_fop_fini(void)
158 {
159 }
#define NULL
Definition: misc.h:38
static struct _m0_fop_conf_load_s _m0_fop_conf_load
M0_INTERNAL void m0_xc_m0_fop_conf_load_struct_init(void)
Definition: load_fop_xc.c:66
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
static struct _m0_fop_conf_load_rep_s _m0_fop_conf_load_rep
M0_INTERNAL void m0_xc_conf_load_fop_init(void)
Definition: load_fop_xc.c:151
M0_BASSERT(offsetof(struct _m0_fop_conf_load_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
struct m0_xcode_type _type
Definition: load_fop_xc.c:31
struct m0_net_buf_desc_data clf_desc
Definition: load_fop.h:65
struct m0_xcode_field _child[3]
Definition: load_fop_xc.c:15
struct m0_xcode_field _child[2]
Definition: load_fop_xc.c:32
#define M0_POST(cond)
int32_t clfr_rc
Definition: load_fop.h:58
M0_INTERNAL void m0_xc_m0_fop_conf_load_rep_struct_init(void)
Definition: load_fop_xc.c:116
uint64_t clf_tx_id
Definition: load_fop.h:60
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
void m0_xc_u64_init(void)
Definition: xcode.c:904
M0_INTERNAL void m0_xc_m0_net_buf_desc_data_struct_init(void)
M0_INTERNAL void m0_xc_conf_load_fop_fini(void)
Definition: load_fop_xc.c:157
const struct m0_xcode_type M0_XT_U32
Definition: xcode.c:932
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
uint32_t clfr_version
Definition: load_fop.h:60
uint32_t clf_version
Definition: load_fop.h:58
struct m0_xcode_type _type
Definition: load_fop_xc.c:14
struct m0_xcode_type * m0_fop_conf_load_xc
Definition: load_fop_xc.c:10
void m0_xc_u32_init(void)
Definition: xcode.c:900
const char * xf_name
Definition: xcode.h:251
const struct m0_xcode_type M0_XT_U64
Definition: xcode.c:940
#define offsetof(typ, memb)
Definition: misc.h:29
struct m0_xcode_type * m0_net_buf_desc_data_xc
struct m0_xcode_type * m0_fop_conf_load_rep_xc
Definition: load_fop_xc.c:11