Index: undo.c =================================================================== --- undo.c (revision 24414) +++ undo.c (revision 24415) @@ -124,6 +124,11 @@ return res; } +int pcb_undo_above(uundo_serial_t s_min) +{ + return uundo_undo_above(&pcb_uundo, s_min); +} + int pcb_redo(pcb_bool draw) { int res; @@ -277,6 +282,11 @@ } #endif +size_t pcb_num_undo(void) +{ + return pcb_uundo.num_undo; +} + void pcb_undo_freeze_serial(void) { uundo_freeze_serial(&pcb_uundo);