Index: route_style.h =================================================================== --- route_style.h (revision 2596) +++ route_style.h (revision 2597) @@ -44,3 +44,8 @@ /* Set design configuration (the pen we draw with) to a given route style */ void pcb_use_route_style(RouteStyleType *); + +/* Compare supplied parameters to each style in the vector and return the index + of the first mathcing style. All non-0 parameters need to match to accept + a style. Return -1 on no match. */ +int pcb_route_style_lookup(vtroutestyle_t *styles, Coord Thick, Coord Diameter, Coord Hole, Coord Clearance, char *Name);