Motr  M0
service_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from reqh/ut/service.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "reqh/ut/service.h"
8 #include "reqh/ut/service_xc.h"
9 
11 
12 static struct _m0_reqhut_dummy_s {
15 } _m0_reqhut_dummy = {
16  ._type = {
18  .xct_name = "m0_reqhut_dummy",
19  .xct_sizeof = sizeof (struct m0_reqhut_dummy),
20  .xct_nr = 1,
21  .xct_flags = 0,
22  }
23 };
24 
26 M0_BASSERT(offsetof(struct _m0_reqhut_dummy_s, _child[0]) ==
27  offsetof(struct m0_xcode_type, xct_child[0]));
28 
29 
30 M0_BASSERT(sizeof(struct m0_reqhut_dummy) == 0U);
31 
32 M0_BASSERT(sizeof ((struct m0_reqhut_dummy *)0)->rd_unused == 0U);
33 M0_BASSERT(offsetof(struct m0_reqhut_dummy, rd_unused) == 0U);
34 
35 
36 
37 M0_INTERNAL void m0_xc_m0_reqhut_dummy_struct_init(void)
38 {
39  _m0_reqhut_dummy._child[0] = (struct m0_xcode_field) {
40  .xf_name = "rd_unused",
41 
42  .xf_type = &M0_XT_VOID,
43 
44  .xf_tag = 0,
45  .xf_opaque = NULL,
46  .xf_offset = offsetof(struct m0_reqhut_dummy, rd_unused),
47  .xf_read = NULL,
48  .xf_decor = {
50  }
51  };
53 
55 }
56 
57 M0_INTERNAL void m0_xc_reqh_ut_service_init(void)
58 {
60 }
61 
62 M0_INTERNAL void m0_xc_reqh_ut_service_fini(void)
63 {
64 }
struct m0_xcode_type * m0_reqhut_dummy_xc
Definition: service_xc.c:10
M0_BASSERT(offsetof(struct _m0_reqhut_dummy_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
struct m0_xcode_field _child[1]
Definition: service_xc.c:14
struct m0_xcode_type _type
Definition: service_xc.c:13
#define NULL
Definition: misc.h:38
M0_INTERNAL void m0_xc_m0_reqhut_dummy_struct_init(void)
Definition: service_xc.c:37
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
M0_INTERNAL void m0_xc_reqh_ut_service_fini(void)
Definition: service_xc.c:62
static struct _m0_reqhut_dummy_s _m0_reqhut_dummy
void m0_xc_void_init(void)
Definition: xcode.c:908
const struct m0_xcode_type M0_XT_VOID
Definition: xcode.c:916
#define M0_POST(cond)
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
const char * xf_name
Definition: xcode.h:251
M0_INTERNAL void m0_xc_reqh_ut_service_init(void)
Definition: service_xc.c:57
#define offsetof(typ, memb)
Definition: misc.h:29