Index: trunk/scconfig/Rev.h =================================================================== --- trunk/scconfig/Rev.h (revision 8817) +++ trunk/scconfig/Rev.h (revision 8818) @@ -1 +1 @@ -static const int myrev = 8774; +static const int myrev = 8817; Index: trunk/scconfig/Rev.tab =================================================================== --- trunk/scconfig/Rev.tab (revision 8817) +++ trunk/scconfig/Rev.tab (revision 8818) @@ -1,3 +1,4 @@ +8817 configure fp_board: new plugin 8774 configure layer: all-hid common library plugin for the layer menus 8748 configure core: new pcb_bool source file 8593 configure gtk: new layer selector Index: trunk/scconfig/plugins.h =================================================================== --- trunk/scconfig/plugins.h (revision 8817) +++ trunk/scconfig/plugins.h (revision 8818) @@ -47,6 +47,7 @@ plugin_def("vendordrill", "vendor drill mapping", sbuildin, 1) plugin_header("\nFootprint backends:\n") +plugin_def("fp_board", "footprint library from boards", sdisable, 1) plugin_def("fp_fs", "filesystem footprints", sbuildin, 1) plugin_def("fp_wget", "web footprints", sbuildin, 1) Index: trunk/src_plugins/fp_board/Makefile =================================================================== --- trunk/src_plugins/fp_board/Makefile (nonexistent) +++ trunk/src_plugins/fp_board/Makefile (revision 8818) @@ -0,0 +1,5 @@ +all: + cd ../../src && $(MAKE) mod_fp_board + +clean: + rm *.o *.so 2>/dev/null ; true Index: trunk/src_plugins/fp_board/Plug.tmpasm =================================================================== --- trunk/src_plugins/fp_board/Plug.tmpasm (nonexistent) +++ trunk/src_plugins/fp_board/Plug.tmpasm (revision 8818) @@ -0,0 +1,8 @@ +put /local/pcb/mod {fp_board} +put /local/pcb/mod/OBJS [@ $(PLUGDIR)/fp_board/fp_board.o @] + +switch /local/pcb/fp_board/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/fp_board/fp_board.c =================================================================== --- trunk/src_plugins/fp_board/fp_board.c (nonexistent) +++ trunk/src_plugins/fp_board/fp_board.c (revision 8818) @@ -0,0 +1,37 @@ + +#include "config.h" + +#include "plugins.h" +#include "plug_footprint.h" + +static int fp_board_load_dir(pcb_plug_fp_t *ctx, const char *path, int force) +{ +} + +static FILE *fp_board_fopen(pcb_plug_fp_t *ctx, const char *path, const char *name, pcb_fp_fopen_ctx_t *fctx) +{ +} + +static void fp_board_fclose(pcb_plug_fp_t *ctx, FILE * f, pcb_fp_fopen_ctx_t *fctx) +{ +} + + +static pcb_plug_fp_t fp_board; + +int pplg_check_ver_fp_board(int ver_needed) { return 0; } + +void pplg_uninit_fp_board(void) +{ + PCB_HOOK_UNREGISTER(pcb_plug_fp_t, pcb_plug_fp_chain, &fp_board); +} + +int pplg_init_fp_board(void) +{ + fp_board.plugin_data = NULL; + fp_board.load_dir = fp_board_load_dir; + fp_board.fopen = fp_board_fopen; + fp_board.fclose = fp_board_fclose; + PCB_HOOK_REGISTER(pcb_plug_fp_t, pcb_plug_fp_chain, &fp_board); + return 0; +} Index: trunk/src_plugins/fp_board/fp_board.pup =================================================================== --- trunk/src_plugins/fp_board/fp_board.pup (nonexistent) +++ trunk/src_plugins/fp_board/fp_board.pup (revision 8818) @@ -0,0 +1,6 @@ +$class fp +$short footprint library from boards +$long Footprint: load a board and expose all the unique elements on that board as a footprint library +$state WIP +default disable +autoload 1 Index: trunk/src_plugins/plugins_ALL.tmpasm =================================================================== --- trunk/src_plugins/plugins_ALL.tmpasm (revision 8817) +++ trunk/src_plugins/plugins_ALL.tmpasm (revision 8818) @@ -30,6 +30,7 @@ include {../src_plugins/export_test/Plug.tmpasm} include {../src_plugins/export_xy/Plug.tmpasm} include {../src_plugins/fontmode/Plug.tmpasm} +include {../src_plugins/fp_board/Plug.tmpasm} include {../src_plugins/fp_fs/Plug.tmpasm} include {../src_plugins/fp_wget/Plug.tmpasm} include {../src_plugins/gpmi/Plug.tmpasm}