Index: hid_cam.c =================================================================== --- hid_cam.c (revision 19129) +++ hid_cam.c (revision 19130) @@ -51,7 +51,7 @@ return dest; } - v = pcb_vlayer_get_first(flags); + v = pcb_vlayer_get_first(flags, purpose, purpi); if (v != NULL) { strcpy(dest, v->name); return dest; @@ -263,7 +263,8 @@ if (parse_layer_type(curr, &lyt, &offs, &has_offs) != 0) goto err; - vl = pcb_vlayer_get_first(lyt); +#warning TODO: extend the syntax for purpose + vl = pcb_vlayer_get_first(lyt, NULL, -1); if (vl == NULL) { pcb_layergrp_id_t gids[PCB_MAX_LAYERGRP]; int n, len = pcb_layergrp_list(dst->pcb, lyt, gids, sizeof(gids)/sizeof(gids[0])); @@ -322,7 +323,7 @@ if (!cam->active) return 0; - vl = pcb_vlayer_get_first(flags); + vl = pcb_vlayer_get_first(flags, purpose, purpi); if (vl == NULL) { if (group == -1) return 1;