Motr  M0
note_fops_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from ha/note_fops.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "ha/note_fops.h"
8 #include "ha/note_fops_xc.h"
9 
11 
12 static struct _m0_ha_state_fop_s {
15 } _m0_ha_state_fop = {
16  ._type = {
18  .xct_name = "m0_ha_state_fop",
19  .xct_sizeof = sizeof (struct m0_ha_state_fop),
20  .xct_nr = 2,
21  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
22  }
23 };
24 
26 M0_BASSERT(offsetof(struct _m0_ha_state_fop_s, _child[0]) ==
27  offsetof(struct m0_xcode_type, xct_child[0]));
28 
29 
30 M0_BASSERT(sizeof(struct m0_ha_state_fop) == 24U);
31 
32 M0_BASSERT(sizeof ((struct m0_ha_state_fop *)0)->hs_rc == 4U);
34 M0_BASSERT(sizeof ((struct m0_ha_state_fop *)0)->hs_note == 16U);
36 
37 
38 
39 M0_INTERNAL void m0_xc_m0_ha_state_fop_struct_init(void)
40 {
41  _m0_ha_state_fop._child[0] = (struct m0_xcode_field) {
42  .xf_name = "hs_rc",
43 
44  .xf_type = &M0_XT_U32,
45 
46  .xf_tag = 0,
47  .xf_opaque = NULL,
48  .xf_offset = offsetof(struct m0_ha_state_fop, hs_rc),
49  .xf_read = NULL,
50  .xf_decor = {
52  }
53  };
55 
56  _m0_ha_state_fop._child[1] = (struct m0_xcode_field) {
57  .xf_name = "hs_note",
58 
59  .xf_type = m0_ha_nvec_xc,
60 
61  .xf_tag = 0,
62  .xf_opaque = NULL,
63  .xf_offset = offsetof(struct m0_ha_state_fop, hs_note),
64  .xf_read = NULL,
65  .xf_decor = {
67  }
68  };
70 
72 }
73 
74 M0_INTERNAL void m0_xc_ha_note_fops_init(void)
75 {
77 }
78 
79 M0_INTERNAL void m0_xc_ha_note_fops_fini(void)
80 {
81 }
#define NULL
Definition: misc.h:38
M0_INTERNAL void m0_xc_m0_ha_nvec_struct_init(void)
Definition: note_xc.c:153
struct m0_xcode_type * m0_ha_nvec_xc
Definition: note_xc.c:11
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
struct m0_ha_nvec hs_note
Definition: note_fops.h:48
M0_BASSERT(offsetof(struct _m0_ha_state_fop_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
M0_INTERNAL void m0_xc_ha_note_fops_fini(void)
Definition: note_fops_xc.c:79
struct m0_xcode_type * m0_ha_state_fop_xc
Definition: note_fops_xc.c:10
#define M0_POST(cond)
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
struct m0_xcode_type _type
Definition: note_fops_xc.c:13
const struct m0_xcode_type M0_XT_U32
Definition: xcode.c:932
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
struct m0_xcode_field _child[2]
Definition: note_fops_xc.c:14
int32_t hs_rc
Definition: note_fops.h:46
static struct _m0_ha_state_fop_s _m0_ha_state_fop
M0_INTERNAL void m0_xc_ha_note_fops_init(void)
Definition: note_fops_xc.c:74
void m0_xc_u32_init(void)
Definition: xcode.c:900
const char * xf_name
Definition: xcode.h:251
M0_INTERNAL void m0_xc_m0_ha_state_fop_struct_init(void)
Definition: note_fops_xc.c:39
#define offsetof(typ, memb)
Definition: misc.h:29