Index: Makefile =================================================================== --- Makefile (nonexistent) +++ Makefile (revision 8818) @@ -0,0 +1,5 @@ +all: + cd ../../src && $(MAKE) mod_fp_board + +clean: + rm *.o *.so 2>/dev/null ; true Index: Plug.tmpasm =================================================================== --- Plug.tmpasm (nonexistent) +++ 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: fp_board.c =================================================================== --- fp_board.c (nonexistent) +++ 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: fp_board.pup =================================================================== --- fp_board.pup (nonexistent) +++ 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