23 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CONF 30 #include "conf/onwire_xc.h" 391 result =
obj->co_parent->co_parent;
403 #define X_CONF(_, NAME, ...) \ 404 m0_conf_obj_type_register(&M0_CONF_ ## NAME ## _TYPE); 415 #define X_CONF(_, NAME, ...) \ 416 m0_conf_obj_type_unregister(&M0_CONF_ ## NAME ## _TYPE); 435 #undef M0_TRACE_SUBSYSTEM const struct m0_conf_obj_type * m0_conf_obj_type(const struct m0_conf_obj *obj)
void m0_conf_obj_type_unregister(const struct m0_conf_obj_type *otype)
void m0_conf_obj_type_register(const struct m0_conf_obj_type *otype)
void(* cot_xc_init)(void)
M0_INTERNAL void m0_xcode_union_close(struct m0_xcode_type *un)
M0_BASSERT(M0_CONF_OBJ_TYPE_MAX<=ARRAY_SIZE(obj_types))
M0_CONF_REL_FIDS const struct m0_fid_type M0_CONF_RELFID_TYPE
const struct m0_conf_obj_type * m0_conf_fid_type(const struct m0_fid *fid)
const struct m0_conf_obj_type M0_CONF_ROOT_TYPE
M0_INTERNAL struct m0_xcode_type * m0_confx_obj_xc
struct m0_conf_cache * co_cache
struct m0_conf_obj * co_parent
M0_INTERNAL bool m0_conf_obj_is_stub(const struct m0_conf_obj *obj)
M0_INTERNAL void m0_conf_obj_fini(void)
M0_INTERNAL void m0_xcode_union_fini(struct m0_xcode_type *un)
M0_INTERNAL void m0_conf_child_adopt(struct m0_conf_obj *parent, struct m0_conf_obj *child)
M0_INTERNAL void m0_fid_type_register(const struct m0_fid_type *fidt)
const struct m0_fid_type cot_ftype
M0_INTERNAL void m0_xcode_union_add(struct m0_xcode_type *un, const char *name, const struct m0_xcode_type *xt, uint64_t tag)
struct m0_conf_obj * m0_conf_obj_grandparent(const struct m0_conf_obj *obj)
static const struct m0_conf_obj_type * obj_types[256]
M0_INTERNAL const struct m0_fid_type * m0_fid_type_getfid(const struct m0_fid *fid)
struct m0_xcode_type ** cot_xt
M0_INTERNAL void m0_xcode_union_init(struct m0_xcode_type *un, const char *name, const char *discriminator, size_t maxbranches)
M0_INTERNAL void m0_fid_type_unregister(const struct m0_fid_type *fidt)
M0_INTERNAL const struct m0_conf_obj_type * m0_conf_obj_type_next(const struct m0_conf_obj_type *otype)
bool m0_conf_fid_is_valid(const struct m0_fid *fid)
#define m0_forall(var, nr,...)
#define IS_IN_ARRAY(idx, array)
M0_INTERNAL int m0_conf_obj_init(void)
M0_INTERNAL bool m0_fid_is_valid(const struct m0_fid *fid)
const struct m0_conf_obj_type M0_CONF_DIR_TYPE