Motr  M0
remote_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from dtm/remote.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "dtm/remote.h"
8 #include "dtm/remote_xc.h"
9 
11 
12 static struct _m0_dtm_notice_s {
15 } _m0_dtm_notice = {
16  ._type = {
18  .xct_name = "m0_dtm_notice",
19  .xct_sizeof = sizeof (struct m0_dtm_notice),
20  .xct_nr = 3,
21  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
22  }
23 };
24 
26 M0_BASSERT(offsetof(struct _m0_dtm_notice_s, _child[0]) ==
27  offsetof(struct m0_xcode_type, xct_child[0]));
28 
29 
30 M0_BASSERT(sizeof(struct m0_dtm_notice) == 72U);
31 
32 M0_BASSERT(sizeof ((struct m0_dtm_notice *)0)->dno_id == 56U);
33 M0_BASSERT(offsetof(struct m0_dtm_notice, dno_id) == 0U);
34 M0_BASSERT(sizeof ((struct m0_dtm_notice *)0)->dno_ver == 8U);
35 M0_BASSERT(offsetof(struct m0_dtm_notice, dno_ver) == 56U);
36 M0_BASSERT(sizeof ((struct m0_dtm_notice *)0)->dno_opcode == 1U);
38 
39 
40 
41 M0_INTERNAL void m0_xc_m0_dtm_notice_struct_init(void)
42 {
43  _m0_dtm_notice._child[0] = (struct m0_xcode_field) {
44  .xf_name = "dno_id",
45 
46  .xf_type = m0_dtm_history_id_xc,
47 
48  .xf_tag = 0,
49  .xf_opaque = NULL,
50  .xf_offset = offsetof(struct m0_dtm_notice, dno_id),
51  .xf_read = NULL,
52  .xf_decor = {
54  }
55  };
57 
58  _m0_dtm_notice._child[1] = (struct m0_xcode_field) {
59  .xf_name = "dno_ver",
60 
61  .xf_type = &M0_XT_U64,
62 
63  .xf_tag = 0,
64  .xf_opaque = NULL,
65  .xf_offset = offsetof(struct m0_dtm_notice, dno_ver),
66  .xf_read = NULL,
67  .xf_decor = {
69  }
70  };
72 
73  _m0_dtm_notice._child[2] = (struct m0_xcode_field) {
74  .xf_name = "dno_opcode",
75 
76  .xf_type = &M0_XT_U8,
77 
78  .xf_tag = 0,
79  .xf_opaque = NULL,
80  .xf_offset = offsetof(struct m0_dtm_notice, dno_opcode),
81  .xf_read = NULL,
82  .xf_decor = {
84  }
85  };
86  m0_xc_u8_init();
87 
89 }
90 
91 M0_INTERNAL void m0_xc_dtm_remote_init(void)
92 {
94 }
95 
96 M0_INTERNAL void m0_xc_dtm_remote_fini(void)
97 {
98 }
M0_INTERNAL void m0_xc_m0_dtm_notice_struct_init(void)
Definition: remote_xc.c:41
struct m0_xcode_type _type
Definition: remote_xc.c:13
M0_INTERNAL void m0_xc_dtm_remote_fini(void)
Definition: remote_xc.c:96
#define NULL
Definition: misc.h:38
struct m0_xcode_type * m0_dtm_history_id_xc
Definition: update_xc.c:12
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
struct m0_xcode_field _child[3]
Definition: remote_xc.c:14
uint8_t dno_opcode
Definition: remote.h:98
M0_BASSERT(offsetof(struct _m0_dtm_notice_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
static struct _m0_dtm_notice_s _m0_dtm_notice
M0_INTERNAL void m0_xc_m0_dtm_history_id_struct_init(void)
Definition: update_xc.c:214
#define M0_POST(cond)
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
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
struct m0_xcode_type * m0_dtm_notice_xc
Definition: remote_xc.c:10
const struct m0_xcode_type M0_XT_U8
Definition: xcode.c:924
void m0_xc_u8_init(void)
Definition: xcode.c:892
const char * xf_name
Definition: xcode.h:251
uint64_t dno_ver
Definition: remote.h:97
const struct m0_xcode_type M0_XT_U64
Definition: xcode.c:940
M0_INTERNAL void m0_xc_dtm_remote_init(void)
Definition: remote_xc.c:91
struct m0_dtm_history_id dno_id
Definition: remote.h:96
#define offsetof(typ, memb)
Definition: misc.h:29