23 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CONF 27 #include "conf/onwire_xc.h" 33 const struct m0_conf_obj *self_obj = &
self->ffg_obj;
44 #define XCAST(xobj) ((struct m0_confx_fdmi_flt_grp *)(&(xobj)->xo_u)) 114 m0_conf_fdmi_flt_grp_bob_fini(
x);
120 static const struct m0_fid *rels[] = { &M0_CONF_FDMI_FGRP_FILTERS_FID,
128 .coo_invariant = fdmi_flt_grp_invariant,
145 m0_conf_fdmi_flt_grp_bob_init(
x);
153 .
ft_id = M0_CONF__FDMI_FLT_GRP_FT_ID,
154 .ft_name =
"conf_fdmi_flt_grp" 157 .cot_xt = &m0_confx_fdmi_flt_grp_xc,
158 .cot_branch =
"u_fdmi_flt_grp",
159 .cot_xc_init = &m0_xc_m0_confx_fdmi_flt_grp_struct_init,
164 #undef M0_TRACE_SUBSYSTEM const struct m0_conf_obj_type * m0_conf_obj_type(const struct m0_conf_obj *obj)
struct m0_conf_obj cd_obj
M0_CONF__INVARIANT_DEFINE(fdmi_flt_grp_invariant, m0_conf_fdmi_flt_grp)
static void fdmi_flt_grp_delete(struct m0_conf_obj *obj)
enum m0_fdmi_rec_type_id ffg_rec_type
static bool fdmi_flt_grp_match(const struct m0_conf_obj *cached, const struct m0_confx_obj *flat)
M0_BASSERT(offsetof(struct m0_confx_fdmi_flt_grp, xfg_header)==0)
struct m0_confx_header xfg_header
static struct m0_conf_obj * fdmi_flt_grp_create(void)
static int fdmi_flt_grp_lookup(const struct m0_conf_obj *parent, const struct m0_fid *name, struct m0_conf_obj **out)
M0_INTERNAL int m0_conf_dir_new(struct m0_conf_obj *parent, const struct m0_fid *relfid, const struct m0_conf_obj_type *children_type, const struct m0_fid_arr *children_ids, struct m0_conf_dir **out)
return M0_ERR(-EOPNOTSUPP)
M0_INTERNAL void m0_conf_child_adopt(struct m0_conf_obj *parent, struct m0_conf_obj *child)
M0_CONF__BOB_DEFINE(m0_conf_fdmi_flt_grp, M0_CONF_FDMI_FLT_GRP_MAGIC, fdmi_flt_grp_check)
const struct m0_fid_type cot_ftype
const struct m0_fid **(* coo_downlinks)(const struct m0_conf_obj *obj)
M0_INTERNAL void confx_encode(struct m0_confx_obj *dest, const struct m0_conf_obj *src)
static const struct m0_conf_obj_ops conf_fdmi_flt_grp_ops
#define M0_CONF_CAST(ptr, type)
M0_INTERNAL int arrfid_from_dir(struct m0_fid_arr *dest, const struct m0_conf_dir *dir)
M0_INTERNAL bool m0_fid_eq(const struct m0_fid *fid0, const struct m0_fid *fid1)
#define M0_ALLOC_PTR(ptr)
struct m0_fid_arr xfg_filters
struct m0_conf_dir * ffg_filters
static int fdmi_flt_grp_decode(struct m0_conf_obj *dest, const struct m0_confx_obj *src)
enum m0_conf_status co_status
static bool fdmi_flt_grp_check(const void *bob)
const struct m0_conf_obj_type M0_CONF_FDMI_FLT_GRP_TYPE
static const struct m0_fid ** fdmi_flt_grp_downlinks(const struct m0_conf_obj *obj)
static int fdmi_flt_grp_encode(struct m0_confx_obj *dest, const struct m0_conf_obj *src)
static struct m0_addb2_source * s
struct m0_pdclust_src_addr src
#define offsetof(typ, memb)
M0_INTERNAL bool m0_conf_obj_invariant(const struct m0_conf_obj *obj)
const struct m0_conf_obj_type M0_CONF_FDMI_FILTER_TYPE
const struct m0_conf_obj_ops * co_ops