Index: board.h =================================================================== --- board.h (revision 19254) +++ board.h (revision 19255) @@ -118,10 +118,10 @@ force is non-zero, overwrite even existing colors. */ void pcb_layer_colors_from_conf(pcb_board_t *pcb, int force); -/* counts the number of plated and unplated holes in the design within - a given area of the board. To count for the whole board, pass NULL - within_area. */ -void pcb_board_count_holes(pcb_board_t *pcb, int *plated, int *unplated, const pcb_box_t * within_area); +/* counts the number of plated and unplated holes or slots in the design within + a given area of the board. To count for the whole board, pass NULL within_area. */ +void pcb_board_count_holes(pcb_board_t *pcb, int *plated, int *unplated, const pcb_box_t *within_area); +void pcb_board_count_slots(pcb_board_t *pcb, int *plated, int *unplated, const pcb_box_t *within_area); #define PCB_SWAP_X(x) (PCB_SWAP_SIGN_X(x)) #define PCB_SWAP_Y(y) (PCB->MaxHeight +PCB_SWAP_SIGN_Y(y))