2009-02-05 21:08:46 +00:00
|
|
|
#ifndef _INCLUDE_UNDO_H_
|
|
|
|
#define _INCLUDE_UNDO_H_
|
|
|
|
|
|
|
|
struct undow_t {
|
|
|
|
int set;
|
2009-07-08 11:49:55 +00:00
|
|
|
ut64 off;
|
|
|
|
ut8 *o; /* old data */
|
|
|
|
ut8 *n; /* new data */
|
2009-02-05 21:08:46 +00:00
|
|
|
int len; /* length */
|
|
|
|
struct list_head list;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
UNDO_WRITE_UNSET = 0,
|
|
|
|
UNDO_WRITE_SET = 1
|
|
|
|
};
|
|
|
|
|
2017-07-20 12:50:13 +00:00
|
|
|
void undo_seek(void);
|
|
|
|
void undo_redo(void);
|
|
|
|
void undo_reset(void);
|
|
|
|
void undo_list(void);
|
|
|
|
void undo_push(void);
|
2009-02-05 21:08:46 +00:00
|
|
|
|
|
|
|
void undo_write_set_all(int set);
|
2009-07-08 11:49:55 +00:00
|
|
|
void undo_write_new(ut64 off, const ut8 *data, int len);
|
2009-02-05 21:08:46 +00:00
|
|
|
int undo_write_set(int n, int set);
|
2017-07-20 12:50:13 +00:00
|
|
|
void undo_write_list(void);
|
|
|
|
int undo_write_size(void);
|
2009-02-05 21:08:46 +00:00
|
|
|
|
|
|
|
#endif
|