Index: obj_term.h =================================================================== --- obj_term.h (revision 10708) +++ obj_term.h (revision 10709) @@ -44,6 +44,8 @@ PCB_TERM_ERR_ALREADY_TERMINAL, /* object is already in a terminal, can not be added in another */ PCB_TERM_ERR_NOT_IN_TERMINAL, /* object is not part of any terminal */ PCB_TERM_ERR_TERM_NOT_FOUND, + PCB_TERM_ERR_NOT_IN_SUBC, + PCB_TERM_ERR_NO_CHANGE, PCB_TERM_ERR_INVALID_NAME } pcb_term_err_t; @@ -72,5 +74,8 @@ #define pcb_term_get(terminals, tname) \ (vtp0_t *)htsp_get(terminals, (char *)tname) +/* Rename an object's ->term field in an undoable way */ +pcb_term_err_t pcb_term_undoable_rename(pcb_board_t *pcb, pcb_any_obj_t *obj, const char *new_name); + #endif