30 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_DTM 46 cat_tlist_init(&cat->
ca_el);
54 cat_tlist_del(history);
56 cat_tlist_fini(&cat->
ca_el);
75 return *
out !=
NULL ? 0 : -ENOENT;
81 cat_tlist_add(&cat->
ca_el, history);
88 cat_tlist_del(history);
102 if (result == -ENOENT) {
M0_INTERNAL bool m0_uint128_eq(const struct m0_uint128 *u0, const struct m0_uint128 *u1)
M0_INTERNAL void m0_dtm_catalogue_init(struct m0_dtm_catalogue *cat)
M0_TL_DESCR_DEFINE(cat, "catalogue", M0_INTERNAL, struct m0_dtm_history, h_catlink, h_hi.hi_ups.t_magic, M0_DTM_HI_MAGIX, M0_DTM_CAT_MAGIX)
return M0_ERR(-EOPNOTSUPP)
M0_INTERNAL int m0_dtm_catalogue_find(struct m0_dtm_catalogue *cat, struct m0_dtm *dtm, const struct m0_uint128 *id, m0_dtm_catalogue_alloc_t *alloc, void *datum, struct m0_dtm_history **out)
M0_INTERNAL int m0_dtm_catalogue_add(struct m0_dtm_catalogue *cat, struct m0_dtm_history *history)
static struct ff2c_term * alloc(void)
M0_INTERNAL void m0_dtm_catalogue_fini(struct m0_dtm_catalogue *cat)
M0_TL_DEFINE(cat, M0_INTERNAL, struct m0_dtm_history)
struct m0_dtm_history * m0_dtm_catalogue_alloc_t(struct m0_dtm *, const struct m0_uint128 *, void *)
M0_INTERNAL int m0_dtm_catalogue_create(struct m0_dtm_catalogue *cat)
#define m0_tl_find(name, var, head,...)
#define m0_tl_for(name, head, obj)
M0_INTERNAL int m0_dtm_catalogue_lookup(struct m0_dtm_catalogue *cat, const struct m0_uint128 *id, struct m0_dtm_history **out)
M0_INTERNAL int m0_dtm_catalogue_delete(struct m0_dtm_catalogue *cat)
M0_INTERNAL int m0_dtm_catalogue_del(struct m0_dtm_catalogue *cat, struct m0_dtm_history *history)