-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathundo.h
More file actions
executable file
·27 lines (22 loc) · 767 Bytes
/
undo.h
File metadata and controls
executable file
·27 lines (22 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* undo.h */
#ifndef UNDO_H
#define UNDO_H
struct Snapshot {
int recycles;
size_t bookmark;
struct Array *savedPiles;
};
struct Array* UndoStackNew(void);
void UndoStackFree(struct Array *stack);
void BaizeUndoPush(struct Baize *const self);
void BaizeUpdateFromSnapshot(struct Baize *const self, struct Snapshot *s);
void BaizeSavePositionCommand(struct Baize *const self, void* param);
void BaizeLoadPositionCommand(struct Baize *const self, void* param);
void BaizeRestartDealCommand(struct Baize *const self, void* param);
void BaizeUndo0(struct Baize *const self);
void BaizeUndoCommand(struct Baize *const, void* param);
#if 0
void BaizeSaveUndoToFile(struct Baize *const self);
struct Array* LoadUndoFromFile(char *variantName);
#endif
#endif