Motr  M0
failvec_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from ha/failvec.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "ha/failvec.h"
8 #include "ha/failvec_xc.h"
9 
12 
17  ._type = {
19  .xct_name = "m0_ha_msg_failure_vec_req",
20  .xct_sizeof = sizeof (struct m0_ha_msg_failure_vec_req),
21  .xct_nr = 2,
22  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
23  }
24 };
25 
28  offsetof(struct m0_xcode_type, xct_child[0]));
29 
34  ._type = {
36  .xct_name = "m0_ha_msg_failure_vec_rep",
37  .xct_sizeof = sizeof (struct m0_ha_msg_failure_vec_rep),
38  .xct_nr = 4,
39  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
40  }
41 };
42 
45  offsetof(struct m0_xcode_type, xct_child[0]));
46 
47 
48 M0_BASSERT(sizeof(struct m0_ha_msg_failure_vec_req) == 32U);
49 
50 M0_BASSERT(sizeof ((struct m0_ha_msg_failure_vec_req *)0)->mfq_pool == 16U);
52 M0_BASSERT(sizeof ((struct m0_ha_msg_failure_vec_req *)0)->mfq_cookie == 16U);
54 
55 M0_BASSERT(sizeof(struct m0_ha_msg_failure_vec_rep) == 24616U);
56 
57 M0_BASSERT(sizeof ((struct m0_ha_msg_failure_vec_rep *)0)->mfp_pool == 16U);
59 M0_BASSERT(sizeof ((struct m0_ha_msg_failure_vec_rep *)0)->mfp_cookie == 16U);
61 M0_BASSERT(sizeof ((struct m0_ha_msg_failure_vec_rep *)0)->mfp_nr == 4U);
63 M0_BASSERT(sizeof ((struct m0_ha_msg_failure_vec_rep *)0)->mfp_vec == 24576U);
65 
66 
67 
69 {
71  .xf_name = "mfq_pool",
72 
73  .xf_type = m0_fid_xc,
74 
75  .xf_tag = 0,
76  .xf_opaque = NULL,
77  .xf_offset = offsetof(struct m0_ha_msg_failure_vec_req, mfq_pool),
78  .xf_read = NULL,
79  .xf_decor = {
81  }
82  };
84 
86  .xf_name = "mfq_cookie",
87 
88  .xf_type = m0_cookie_xc,
89 
90  .xf_tag = 0,
91  .xf_opaque = NULL,
92  .xf_offset = offsetof(struct m0_ha_msg_failure_vec_req, mfq_cookie),
93  .xf_read = NULL,
94  .xf_decor = {
96  }
97  };
99 
101 }
102 
104 {
106  .xf_name = "mfp_pool",
107 
108  .xf_type = m0_fid_xc,
109 
110  .xf_tag = 0,
111  .xf_opaque = NULL,
112  .xf_offset = offsetof(struct m0_ha_msg_failure_vec_rep, mfp_pool),
113  .xf_read = NULL,
114  .xf_decor = {
116  }
117  };
119 
121  .xf_name = "mfp_cookie",
122 
123  .xf_type = m0_cookie_xc,
124 
125  .xf_tag = 0,
126  .xf_opaque = NULL,
127  .xf_offset = offsetof(struct m0_ha_msg_failure_vec_rep, mfp_cookie),
128  .xf_read = NULL,
129  .xf_decor = {
131  }
132  };
134 
136  .xf_name = "mfp_nr",
137 
138  .xf_type = &M0_XT_U32,
139 
140  .xf_tag = 0,
141  .xf_opaque = NULL,
142  .xf_offset = offsetof(struct m0_ha_msg_failure_vec_rep, mfp_nr),
143  .xf_read = NULL,
144  .xf_decor = {
146  }
147  };
148  m0_xc_u32_init();
149 
151  .xf_name = "mfp_vec",
152 
153  .xf_type = m0_ha_msg_nvec_array_xc,
154 
155  .xf_tag = 0,
156  .xf_opaque = NULL,
157  .xf_offset = offsetof(struct m0_ha_msg_failure_vec_rep, mfp_vec),
158  .xf_read = NULL,
159  .xf_decor = {
161  }
162  };
164 
166 }
167 
168 M0_INTERNAL void m0_xc_ha_failvec_init(void)
169 {
172 }
173 
174 M0_INTERNAL void m0_xc_ha_failvec_fini(void)
175 {
176 }
struct m0_xcode_type _type
Definition: failvec_xc.c:31
struct m0_fid mfp_pool
Definition: failvec.h:49
#define NULL
Definition: misc.h:38
M0_INTERNAL void m0_xc_m0_cookie_struct_init(void)
Definition: cookie_xc.c:39
struct m0_xcode_type * m0_ha_msg_failure_vec_rep_xc
Definition: failvec_xc.c:11
M0_INTERNAL void m0_xc_ha_failvec_init(void)
Definition: failvec_xc.c:168
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
M0_INTERNAL void m0_xc_m0_ha_msg_failure_vec_rep_struct_init(void)
Definition: failvec_xc.c:103
M0_BASSERT(offsetof(struct _m0_ha_msg_failure_vec_req_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
struct m0_cookie mfq_cookie
Definition: failvec.h:50
static struct _m0_ha_msg_failure_vec_rep_s _m0_ha_msg_failure_vec_rep
M0_INTERNAL void m0_xc_ha_failvec_fini(void)
Definition: failvec_xc.c:174
struct m0_xcode_type * m0_ha_msg_failure_vec_req_xc
Definition: failvec_xc.c:10
struct m0_xcode_type * m0_ha_msg_nvec_array_xc
Definition: note_xc.c:12
#define M0_POST(cond)
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
struct m0_fid mfq_pool
Definition: failvec.h:49
struct m0_cookie mfp_cookie
Definition: failvec.h:50
struct m0_xcode_type _type
Definition: failvec_xc.c:14
const struct m0_xcode_type M0_XT_U32
Definition: xcode.c:932
struct m0_ha_msg_nvec_array mfp_vec
Definition: failvec.h:52
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
static struct _m0_ha_msg_failure_vec_req_s _m0_ha_msg_failure_vec_req
M0_INTERNAL void m0_xc_m0_ha_msg_failure_vec_req_struct_init(void)
Definition: failvec_xc.c:68
struct m0_xcode_field _child[2]
Definition: failvec_xc.c:15
M0_INTERNAL void m0_xc_m0_ha_msg_nvec_array_struct_init(void)
Definition: note_xc.c:188
void m0_xc_u32_init(void)
Definition: xcode.c:900
struct m0_xcode_field _child[4]
Definition: failvec_xc.c:32
uint32_t mfp_nr
Definition: failvec.h:51
struct m0_xcode_type * m0_cookie_xc
Definition: cookie_xc.c:10
const char * xf_name
Definition: xcode.h:251
struct m0_xcode_type * m0_fid_xc
Definition: fid_xc.c:10
#define offsetof(typ, memb)
Definition: misc.h:29