Index: trunk/src/hid_cam.c =================================================================== --- trunk/src/hid_cam.c (revision 27415) +++ trunk/src/hid_cam.c (revision 27416) @@ -476,7 +476,13 @@ return dst->exported_grps; } +void pcb_cam_nolayer(pcb_board_t *pcb, const char *src, const char **fn_out) +{ + if (src != NULL) + *fn_out = src; +} + typedef struct { pcb_cam_t *cam; const pcb_layergrp_t *grp; Index: trunk/src/hid_cam.h =================================================================== --- trunk/src/hid_cam.h (revision 27415) +++ trunk/src/hid_cam.h (revision 27416) @@ -34,7 +34,11 @@ the number of layer groups exported */ int pcb_cam_end(pcb_cam_t *dst); +/* load *fn_out with the cam-requested output file name in cam mode; useful + for non layer based exporters */ +void pcb_cam_nolayer(pcb_board_t *pcb, const char *src, const char **fn_out); + /* Shall be the first rule in a cam capable exporter's set_layer_group() callback: decides not to draw a layer group in cam mode if the group is not scheduled for export */