Motr  M0
sw_onwire_fop_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from cm/repreb/sw_onwire_fop.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
9 
11 
12 static struct _m0_cm_repreb_sw_s {
15 } _m0_cm_repreb_sw = {
16  ._type = {
18  .xct_name = "m0_cm_repreb_sw",
19  .xct_sizeof = sizeof (struct m0_cm_repreb_sw),
20  .xct_nr = 1,
21  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
22  }
23 };
24 
26 M0_BASSERT(offsetof(struct _m0_cm_repreb_sw_s, _child[0]) ==
27  offsetof(struct m0_xcode_type, xct_child[0]));
28 
29 
30 M0_BASSERT(sizeof(struct m0_cm_repreb_sw) == 168U);
31 
32 M0_BASSERT(sizeof ((struct m0_cm_repreb_sw *)0)->swo_base == 168U);
34 
35 
36 
37 M0_INTERNAL void m0_xc_m0_cm_repreb_sw_struct_init(void)
38 {
39  _m0_cm_repreb_sw._child[0] = (struct m0_xcode_field) {
40  .xf_name = "swo_base",
41 
42  .xf_type = m0_cm_sw_onwire_xc,
43 
44  .xf_tag = 0,
45  .xf_opaque = NULL,
46  .xf_offset = offsetof(struct m0_cm_repreb_sw, swo_base),
47  .xf_read = NULL,
48  .xf_decor = {
50  }
51  };
53 
55 }
56 
57 M0_INTERNAL void m0_xc_cm_repreb_sw_onwire_fop_init(void)
58 {
60 }
61 
62 M0_INTERNAL void m0_xc_cm_repreb_sw_onwire_fop_fini(void)
63 {
64 }
M0_INTERNAL void m0_xc_cm_repreb_sw_onwire_fop_fini(void)
#define NULL
Definition: misc.h:38
struct m0_cm_sw_onwire swo_base
Definition: sw_onwire_fop.h:71
static struct _m0_cm_repreb_sw_s _m0_cm_repreb_sw
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
M0_INTERNAL void m0_xc_m0_cm_repreb_sw_struct_init(void)
struct m0_xcode_type * m0_cm_sw_onwire_xc
Definition: sw_xc.c:12
M0_BASSERT(offsetof(struct _m0_cm_repreb_sw_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
#define M0_POST(cond)
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
M0_INTERNAL void m0_xc_cm_repreb_sw_onwire_fop_init(void)
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
struct m0_xcode_field _child[1]
struct m0_xcode_type * m0_cm_repreb_sw_xc
M0_INTERNAL void m0_xc_m0_cm_sw_onwire_struct_init(void)
Definition: sw_xc.c:190
const char * xf_name
Definition: xcode.h:251
#define offsetof(typ, memb)
Definition: misc.h:29
struct m0_xcode_type _type