Index: layer_vis.h =================================================================== --- layer_vis.h (revision 24266) +++ layer_vis.h (revision 24267) @@ -50,6 +50,14 @@ /* Return the last used layer (or if none, any layer) that matches target type */ pcb_layer_id_t pcb_layer_vis_last_lyt(pcb_layer_type_t target); +/* Use this to temporarily enable all layers, so that they can be + exported even if they're not currently visible. save_array must be + PCB_MAX_LAYER+2 big. */ +void pcb_hid_save_and_show_layer_ons(int *save_array); + +/* Use this to restore them. */ +void pcb_hid_restore_layer_ons(int *save_array); + /* (un)init config watches and events to keep layers in sync */ void pcb_layer_vis_init(void); void pcb_layer_vis_uninit(void);