Index: obj_term.h =================================================================== --- obj_term.h (revision 33046) +++ obj_term.h (revision 33047) @@ -70,6 +70,9 @@ Removes terminal if it becomes empty. */ pcb_term_err_t pcb_term_del(htsp_t *terminals, const char *termid, pcb_any_obj_t *obj); +/* Automatically call pcb_term_del() on obj if needed - call this before removing an object */ +pcb_term_err_t pcb_term_del_auto(pcb_any_obj_t *obj); + /* Remove a terminal from, calling pcb_term_del() on all objects in it. */ pcb_term_err_t pcb_term_remove(htsp_t *terminals, const char *tname);