26 #ifndef __MOTR_DTM_UPDATE_H__ 27 #define __MOTR_DTM_UPDATE_H__ 50 #include "lib/types_xc.h" 51 #include "lib/cookie_xc.h" 102 #define M0_DTM_UPDATE_DATA(label, rule, ver, orig_ver) \ 103 (struct m0_dtm_update_data) { \ 104 .da_label = (label), \ 107 .da_orig_ver = (orig_ver) \ M0_INTERNAL int m0_dtm_update_build(struct m0_dtm_update *update, struct m0_dtm_oper *oper, const struct m0_dtm_update_descr *updd)
struct m0_dtm_history_id udd_id
int(* updo_undo)(struct m0_dtm_update *updt)
struct m0_dtm_update_comm upd_comm
struct m0_dtm_update_data udd_data
static struct m0_list list
M0_INTERNAL void m0_dtm_update_unpack(struct m0_dtm_update *update, const struct m0_dtm_update_descr *updd)
M0_INTERNAL bool m0_dtm_update_invariant(const struct m0_dtm_update *update)
M0_INTERNAL bool m0_dtm_update_is_user(const struct m0_dtm_update *update)
const struct m0_dtm_update_ops * upd_ops
struct m0_cookie hid_sender
M0_INTERNAL void m0_dtm_update_link(struct m0_tl *list, struct m0_dtm_update *update, uint32_t nr)
struct m0_cookie hid_receiver
M0_INTERNAL bool m0_dtm_descr_matches_update(const struct m0_dtm_update *update, const struct m0_dtm_update_descr *updd)
M0_INTERNAL void m0_dtm_comm_set(struct m0_dtm_update *update, struct m0_fop *fop)
#define M0_XCA_DOMAIN(value)
const struct m0_dtm_update_type * updo_type
void(* updto_replied)(struct m0_dtm_update *updt)
enum m0_dtm_update_comm_state uc_state
M0_INTERNAL void m0_dtm_update_init(struct m0_dtm_update *update, struct m0_dtm_history *history, struct m0_dtm_oper *oper, const struct m0_dtm_update_data *data)
M0_INTERNAL void m0_dtm_update_reint(struct m0_dtm_update *update)
M0_INTERNAL bool m0_dtm_update_matches_descr(const struct m0_dtm_update *update, const struct m0_dtm_update_descr *updd)
M0_INTERNAL void m0_dtm_update_list_fini(struct m0_tl *list)
M0_INTERNAL void m0_dtm_update_pack(const struct m0_dtm_update *update, struct m0_dtm_update_descr *updd)
static struct m0_fop * fop
M0_INTERNAL void m0_dtm_update_list_init(struct m0_tl *list)
int(* updo_redo)(struct m0_dtm_update *updt)