Motr  M0
operation_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from dtm/operation.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "dtm/operation.h"
8 #include "dtm/operation_xc.h"
9 
12 
13 static struct _m0_dtm_oper_updates_s {
17  ._type = {
19  .xct_name = "m0_dtm_oper_updates",
20  .xct_sizeof = sizeof (struct m0_dtm_oper_updates),
21  .xct_nr = 2,
22  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
23  }
24 };
25 
27 M0_BASSERT(offsetof(struct _m0_dtm_oper_updates_s, _child[0]) ==
28  offsetof(struct m0_xcode_type, xct_child[0]));
29 
30 static struct _m0_dtm_oper_descr_s {
34  ._type = {
36  .xct_name = "m0_dtm_oper_descr",
37  .xct_sizeof = sizeof (struct m0_dtm_oper_descr),
38  .xct_nr = 1,
39  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
40  }
41 };
42 
44 M0_BASSERT(offsetof(struct _m0_dtm_oper_descr_s, _child[0]) ==
45  offsetof(struct m0_xcode_type, xct_child[0]));
46 
47 
48 M0_BASSERT(sizeof(struct m0_dtm_oper_updates) == 16U);
49 
50 M0_BASSERT(sizeof ((struct m0_dtm_oper_updates *)0)->ou_nr == 4U);
52 M0_BASSERT(sizeof ((struct m0_dtm_oper_updates *)0)->ou_update == 8U);
54 
55 M0_BASSERT(sizeof(struct m0_dtm_oper_descr) == 16U);
56 
57 M0_BASSERT(sizeof ((struct m0_dtm_oper_descr *)0)->od_updates == 16U);
59 
60 
61 
63 {
65  .xf_name = "ou_nr",
66 
67  .xf_type = &M0_XT_U32,
68 
69  .xf_tag = 0,
70  .xf_opaque = NULL,
71  .xf_offset = offsetof(struct m0_dtm_oper_updates, ou_nr),
72  .xf_read = NULL,
73  .xf_decor = {
75  }
76  };
78 
80  .xf_name = "ou_update",
81 
82  .xf_type = m0_dtm_update_descr_xc,
83 
84  .xf_tag = 0,
85  .xf_opaque = NULL,
86  .xf_offset = offsetof(struct m0_dtm_oper_updates, ou_update),
87  .xf_read = NULL,
88  .xf_decor = {
90  }
91  };
93 
95 }
96 
98 {
100  .xf_name = "od_updates",
101 
102  .xf_type = m0_dtm_oper_updates_xc,
103 
104  .xf_tag = 0,
105  .xf_opaque = NULL,
106  .xf_offset = offsetof(struct m0_dtm_oper_descr, od_updates),
107  .xf_read = NULL,
108  .xf_decor = {
110  }
111  };
113 
115 }
116 
117 M0_INTERNAL void m0_xc_dtm_operation_init(void)
118 {
121 }
122 
123 M0_INTERNAL void m0_xc_dtm_operation_fini(void)
124 {
125 }
M0_INTERNAL void m0_xc_m0_dtm_oper_updates_struct_init(void)
Definition: operation_xc.c:62
struct m0_dtm_update_descr * ou_update
Definition: operation.h:54
#define NULL
Definition: misc.h:38
static struct _m0_dtm_oper_descr_s _m0_dtm_oper_descr
struct m0_dtm_oper_updates od_updates
Definition: operation.h:53
struct m0_xcode_type * m0_dtm_oper_descr_xc
Definition: operation_xc.c:11
struct m0_xcode_field _child[1]
Definition: operation_xc.c:32
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
struct m0_xcode_type _type
Definition: operation_xc.c:14
M0_INTERNAL void m0_xc_m0_dtm_oper_descr_struct_init(void)
Definition: operation_xc.c:97
M0_BASSERT(offsetof(struct _m0_dtm_oper_updates_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
struct m0_xcode_type * m0_dtm_oper_updates_xc
Definition: operation_xc.c:10
struct m0_xcode_field _child[2]
Definition: operation_xc.c:15
#define M0_POST(cond)
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
uint32_t ou_nr
Definition: operation.h:53
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_type * m0_dtm_update_descr_xc
Definition: update_xc.c:10
static struct _m0_dtm_oper_updates_s _m0_dtm_oper_updates
struct m0_xcode_type _type
Definition: operation_xc.c:31
void m0_xc_u32_init(void)
Definition: xcode.c:900
M0_INTERNAL void m0_xc_dtm_operation_fini(void)
Definition: operation_xc.c:123
M0_INTERNAL void m0_xc_m0_dtm_update_descr_struct_init(void)
Definition: update_xc.c:99
const char * xf_name
Definition: xcode.h:251
M0_INTERNAL void m0_xc_dtm_operation_init(void)
Definition: operation_xc.c:117
#define offsetof(typ, memb)
Definition: misc.h:29