Index: rats_patch.h =================================================================== --- rats_patch.h (revision 38220) +++ rats_patch.h (revision 38221) @@ -81,7 +81,16 @@ /* Unlink n from the list; if do_free is non-zero, also free fields and n */ void rats_patch_remove(pcb_board_t *pcb, pcb_ratspatch_line_t *n, int do_free); +/**** high level calls for subc add/remove ****/ +/* Add a subc to the netlist patch of pcb if subc is not already on it. + Returns 0 on sucess.*/ +int rats_patch_add_subc(pcb_board_t *pcb, pcb_subc_t *subc); + +/* Remove a subc from the netlist patch of pcb if subc is referenced from the + netlist. Returns 0 on sucess.*/ +int rats_patch_del_subc(pcb_board_t *pcb, pcb_subc_t *subc); + /**** exporter ****/ typedef enum pcb_ratspatch_fmt_e {