Index: trunk/scconfig/plugins.h =================================================================== --- trunk/scconfig/plugins.h (revision 18275) +++ trunk/scconfig/plugins.h (revision 18276) @@ -75,6 +75,7 @@ plugin_def("io_tedax", "tEDAx (Trivial EDA eXchange)", sbuildin, 1) plugin_header("\nExport plugins:\n") +plugin_def("cam", "cam/job based export", sdisable, 1) plugin_def("export_bboard", "breadboard pcb_exporter", sdisable, 0) plugin_def("export_bom", "bom pcb_exporter", sbuildin, 1) plugin_def("export_dsn", "specctra .dsn pcb_exporter", sbuildin, 1) Index: trunk/src_plugins/cam/Makefile =================================================================== --- trunk/src_plugins/cam/Makefile (nonexistent) +++ trunk/src_plugins/cam/Makefile (revision 18276) @@ -0,0 +1,5 @@ +all: + cd ../../src && $(MAKE) mod_cam + +clean: + rm *.o *.so 2>/dev/null ; true Index: trunk/src_plugins/cam/Plug.tmpasm =================================================================== --- trunk/src_plugins/cam/Plug.tmpasm (nonexistent) +++ trunk/src_plugins/cam/Plug.tmpasm (revision 18276) @@ -0,0 +1,8 @@ +put /local/pcb/mod {cam} +put /local/pcb/mod/OBJS [@ $(PLUGDIR)/cam/cam.o @] + +switch /local/pcb/cam/controls + case {buildin} include /local/pcb/tmpasm/buildin; end; + case {plugin} include /local/pcb/tmpasm/plugin; end; + case {disable} include /local/pcb/tmpasm/disable; end; +end Index: trunk/src_plugins/cam/cam.c =================================================================== --- trunk/src_plugins/cam/cam.c (nonexistent) +++ trunk/src_plugins/cam/cam.c (revision 18276) @@ -0,0 +1,53 @@ +/* + * COPYRIGHT + * + * pcb-rnd, interactive printed circuit board design + * + * cam export jobs plugin + * pcb-rnd Copyright (C) 2018 Tibor 'Igor2' Palinkas + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Contact: + * Project page: http://repo.hu/projects/pcb-rnd + * lead developer: email to pcb-rnd (at) igor2.repo.hu + * mailing list: pcb-rnd (at) list.repo.hu (send "subscribe") + */ + +#include "config.h" + +#include + +#include "hid_cam.h" +#include "hid_attrib.h" +#include "hid_init.h" +#include "plugins.h" + +static const char *cam_cookie = "cam exporter"; + + +int pplg_check_ver_cam(int ver_needed) { return 0; } + +void pplg_uninit_cam(void) +{ + pcb_hid_remove_attributes_by_cookie(cam_cookie); +} + +int pplg_init_cam(void) +{ + PCB_API_CHK_VER; + + return 0; +} Index: trunk/src_plugins/cam/cam.pup =================================================================== --- trunk/src_plugins/cam/cam.pup (nonexistent) +++ trunk/src_plugins/cam/cam.pup (revision 18276) @@ -0,0 +1,7 @@ +$class export +$short cam/job based export +$long Configurable output job based batch exporting +$state WIP +$package export +default disable +autoload 1 Index: trunk/src_plugins/plugins_ALL.tmpasm =================================================================== --- trunk/src_plugins/plugins_ALL.tmpasm (revision 18275) +++ trunk/src_plugins/plugins_ALL.tmpasm (revision 18276) @@ -4,6 +4,7 @@ include {../src_plugins/autoplace/Plug.tmpasm} include {../src_plugins/autoroute/Plug.tmpasm} include {../src_plugins/boardflip/Plug.tmpasm} +include {../src_plugins/cam/Plug.tmpasm} include {../src_plugins/diag/Plug.tmpasm} include {../src_plugins/dialogs/Plug.tmpasm} include {../src_plugins/distalign/Plug.tmpasm}