25 #ifndef __MOTR_GRAPH_GRAPH_H__ 26 #define __MOTR_GRAPH_GRAPH_H__ 29 #include "fid/fid_xc.h" 31 #include "lib/cookie_xc.h" 47 struct m0_gvertice_header;
void m0_gvertice_fini(struct m0_graph *g, struct m0_gvertice *vertice)
M0_INTERNAL void m0_graph_mod_fini(void)
void m0_gvertice_type_register(struct m0_gvertice_type *vt)
const struct m0_garc_type * vt_arc[M0_GRAPH_ARC_PER_NODE_MAX]
bool m0_gvertice_is_set(const struct m0_gvertice *vertice, const struct m0_garc_type *atype)
bool m0_gvertice_type_invariant(const struct m0_gvertice_type *vt)
M0_INTERNAL int m0_graph_mod_init(void)
struct m0_gvertice g_anchor
void m0_gvertice_init(struct m0_graph *g, struct m0_gvertice *vertice, const struct m0_gvertice_type *vt, const struct m0_fid *fid)
bool m0_garc_type_invariant(const struct m0_gvertice_type *vt, const struct m0_garc_type *atype)
const struct m0_xcode_type * vt_xt
void m0_gvertice_unlink(struct m0_gvertice *src, struct m0_gvertice *dst, const struct m0_garc_type *atype)
bool m0_gvertice_linked(const struct m0_gvertice *src, const struct m0_gvertice *dst, const struct m0_garc_type *atype)
struct m0_cookie vh_cookie
void m0_garc_type_register(const struct m0_garc_type *atype)
struct m0_gvertice * m0_garc_try(const struct m0_gvertice *vertice, const struct m0_garc_type *atype)
struct m0_cookie as_local
void m0_gvertice_link(struct m0_gvertice *src, struct m0_gvertice *dst, const struct m0_garc_type *atype)
struct m0_cookie as_remote
void m0_garc_type_pair_register(struct m0_garc_type *direct, struct m0_garc_type *reverse)
const struct m0_garc_type * at_reverse
void m0_garc_type_add(struct m0_gvertice_type *vt, const struct m0_garc_type *atype)
bool m0_gvertice_invariant(const struct m0_gvertice *vertice)
static struct gen g[MAX_GEN]
struct m0_pdclust_src_addr src
bool m0_graph_invariant(const struct m0_graph *graph)
int m0_garc_follow(const struct m0_gvertice *vertice, const struct m0_garc_type *atype,...)