Index: trunk/src/layer.c =================================================================== --- trunk/src/layer.c (revision 17628) +++ trunk/src/layer.c (revision 17629) @@ -654,6 +654,12 @@ return NULL; } +pcb_layer_id_t pcb_layer_str2id(pcb_data_t *data, const char *str) +{ + +} + + void pcb_layer_link_trees(pcb_layer_t *dst, pcb_layer_t *src) { /* we can't link non-existing trees - make sure src does have the trees initialized */ Index: trunk/src/layer.h =================================================================== --- trunk/src/layer.h (revision 17628) +++ trunk/src/layer.h (revision 17629) @@ -290,6 +290,9 @@ /* Open the attribute editor for a layer */ void pcb_layer_edit_attrib(pcb_layer_t *layer); +/* Convert a textual layer reference into a layer ID. The text is either + #id or a layer name. */ +pcb_layer_id_t pcb_layer_str2id(pcb_data_t *data, const char *str); /* How deep subcs can be nested */ #define PCB_MAX_BOUND_LAYER_RECURSION 128