Motr  M0
history.h File Reference
#include "lib/tlist.h"
#include "lib/queue.h"
#include "lib/cookie.h"
#include "dtm/nucleus.h"
#include "dtm/operation.h"
Include dependency graph for history.h:

Go to the source code of this file.

Data Structures

struct  m0_dtm_history
 
struct  m0_dtm_history_ops
 
struct  m0_dtm_history_type
 
struct  m0_dtm_history_type_ops
 
struct  m0_dtm_controlh
 

Macros

#define __MOTR_DTM_HISTORY_H__
 

Enumerations

enum  m0_dtm_history_flags { M0_DHF_CLOSED = M0_DHF_LAST, M0_DHF_AMNESIA }
 

Functions

M0_INTERNAL bool m0_dtm_history_invariant (const struct m0_dtm_history *history)
 
M0_INTERNAL void m0_dtm_history_init (struct m0_dtm_history *history, struct m0_dtm *dtm)
 
M0_INTERNAL void m0_dtm_history_fini (struct m0_dtm_history *history)
 
M0_INTERNAL void m0_dtm_history_persistent (struct m0_dtm_history *history, m0_dtm_ver_t upto)
 
M0_INTERNAL void m0_dtm_history_reset (struct m0_dtm_history *history, m0_dtm_ver_t since)
 
M0_INTERNAL void m0_dtm_history_undo (struct m0_dtm_history *history, m0_dtm_ver_t upto)
 
M0_INTERNAL void m0_dtm_history_close (struct m0_dtm_history *history)
 
M0_INTERNAL void m0_dtm_history_update_get (const struct m0_dtm_history *history, enum m0_dtm_up_rule rule, struct m0_dtm_update_data *data)
 
M0_INTERNAL void m0_dtm_history_type_register (struct m0_dtm *dtm, const struct m0_dtm_history_type *ht)
 
M0_INTERNAL void m0_dtm_history_type_deregister (struct m0_dtm *dtm, const struct m0_dtm_history_type *ht)
 
M0_INTERNAL const struct m0_dtm_history_typem0_dtm_history_type_find (struct m0_dtm *dtm, uint8_t id)
 
M0_INTERNAL void m0_dtm_history_pack (const struct m0_dtm_history *history, struct m0_dtm_history_id *id)
 
M0_INTERNAL int m0_dtm_history_unpack (struct m0_dtm *dtm, const struct m0_dtm_history_id *id, struct m0_dtm_history **out)
 
M0_INTERNAL void m0_dtm_history_add_nop (struct m0_dtm_history *history, struct m0_dtm_oper *oper, struct m0_dtm_update *cupdate)
 
M0_INTERNAL void m0_dtm_history_add_close (struct m0_dtm_history *history, struct m0_dtm_oper *oper, struct m0_dtm_update *cupdate)
 
M0_INTERNAL void m0_dtm_controlh_init (struct m0_dtm_controlh *ch, struct m0_dtm *dtm)
 
M0_INTERNAL void m0_dtm_controlh_fini (struct m0_dtm_controlh *ch)
 
M0_INTERNAL void m0_dtm_controlh_add (struct m0_dtm_controlh *ch, struct m0_dtm_oper *oper)
 
M0_INTERNAL void m0_dtm_controlh_close (struct m0_dtm_controlh *ch)
 
M0_INTERNAL int m0_dtm_controlh_update (struct m0_dtm_history *history, uint8_t id, struct m0_dtm_update *update)
 
M0_INTERNAL bool m0_dtm_controlh_update_is_close (const struct m0_dtm_update *update)
 
M0_INTERNAL void m0_dtm_controlh_fuse_close (struct m0_dtm_update *update)
 

Macro Definition Documentation

◆ __MOTR_DTM_HISTORY_H__

#define __MOTR_DTM_HISTORY_H__

Definition at line 27 of file history.h.