1 #ifndef UNDO_HISTORY_H_
2 #define UNDO_HISTORY_H_
6 #define CONTEXT_SIZE 32
9 char data[CONTEXT_SIZE];
12 typedef void (*RevertAction)(void *layer, Context context);
20 typedef struct UndoHistory UndoHistory;
22 UndoHistory *create_undo_history(void);
23 void destroy_undo_history(UndoHistory *undo_history);
25 void undo_history_push(UndoHistory *undo_history, Action action);
26 void undo_history_pop(UndoHistory *undo_history);
28 #endif // UNDO_HISTORY_H_