Motr  M0
fops_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from rpc/ut/fops.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "rpc/ut/fops.h"
8 #include "rpc/ut/fops_xc.h"
9 
11 
12 static struct _arrow_s {
15 } _arrow = {
16  ._type = {
18  .xct_name = "arrow",
19  .xct_sizeof = sizeof (struct arrow),
20  .xct_nr = 1,
21  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
22  }
23 };
24 
26 M0_BASSERT(offsetof(struct _arrow_s, _child[0]) ==
27  offsetof(struct m0_xcode_type, xct_child[0]));
28 
29 
30 M0_BASSERT(sizeof(struct arrow) == 8U);
31 
32 M0_BASSERT(sizeof ((struct arrow *)0)->n == 8U);
33 M0_BASSERT(offsetof(struct arrow, n) == 0U);
34 
35 
36 
37 M0_INTERNAL void m0_xc_arrow_struct_init(void)
38 {
39  _arrow._child[0] = (struct m0_xcode_field) {
40  .xf_name = "n",
41 
42  .xf_type = &M0_XT_U64,
43 
44  .xf_tag = 0,
45  .xf_opaque = NULL,
46  .xf_offset = offsetof(struct arrow, n),
47  .xf_read = NULL,
48  .xf_decor = {
50  }
51  };
53 
55 }
56 
57 M0_INTERNAL void m0_xc_rpc_ut_fops_init(void)
58 {
60 }
61 
62 M0_INTERNAL void m0_xc_rpc_ut_fops_fini(void)
63 {
64 }
M0_BASSERT(offsetof(struct _m0_fdmi_flt_id_arr_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
#define NULL
Definition: misc.h:38
M0_INTERNAL void m0_xc_rpc_ut_fops_fini(void)
Definition: fops_xc.c:62
M0_INTERNAL void m0_xc_rpc_ut_fops_init(void)
Definition: fops_xc.c:57
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
static struct _arrow_s _arrow
struct m0_xcode_type _type
Definition: fops_xc.c:13
M0_INTERNAL void m0_xc_arrow_struct_init(void)
Definition: fops_xc.c:37
#define M0_POST(cond)
Definition: fops.h:33
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
struct m0_xcode_type * arrow_xc
Definition: fops_xc.c:10
uint64_t n
Definition: fops.h:107
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
struct m0_xcode_field _child[1]
Definition: fops_xc.c:14
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