Index: Makefile =================================================================== --- Makefile (revision 7928) +++ Makefile (revision 7929) @@ -1,4 +1,4 @@ -all: tester +all: cd ../../src && $(MAKE) mod_fp_wget CFLAGS = -Wall -g -I../../src -I../.. -I../../src_3rd -I../../src_3rd/liblihata Index: Plug.tmpasm =================================================================== --- Plug.tmpasm (revision 7928) +++ Plug.tmpasm (revision 7929) @@ -1,5 +1,6 @@ put /local/pcb/mod {fp_wget} put /local/pcb/mod/OBJS [@ $(PLUGDIR)/fp_wget/fp_wget.o $(PLUGDIR)/fp_wget/wget_common.o $(PLUGDIR)/fp_wget/gedasymbols.o @] +put /local/pcb/mod/CONF {$(PLUGDIR)/fp_wget/fp_wget_conf.h} switch /local/pcb/fp_wget/controls case {buildin} include /local/pcb/tmpasm/buildin; end; Index: fp_wget.c =================================================================== --- fp_wget.c (revision 7928) +++ fp_wget.c (revision 7929) @@ -1,7 +1,10 @@ #include "config.h" #include "gedasymbols.h" #include "plugins.h" +#include "fp_wget_conf.h" +conf_fp_wget_t conf_fp_wget; + void hid_fp_wget_uninit(void) { fp_gedasymbols_uninit(); @@ -9,6 +12,10 @@ pcb_uninit_t hid_fp_wget_init(void) { +#define conf_reg(field,isarray,type_name,cpath,cname,desc,flags) \ + conf_reg_field(conf_fp_wget, field,isarray,type_name,cpath,cname,desc,flags); +#include "fp_wget_conf_fields.h" + fp_gedasymbols_init(); return hid_fp_wget_uninit; } Index: fp_wget_conf.h =================================================================== --- fp_wget_conf.h (nonexistent) +++ fp_wget_conf.h (revision 7929) @@ -0,0 +1,14 @@ +#ifndef PCB_FP_WGET_CONF_H +#define PCB_FP_WGET_CONF_H + +#include "conf.h" + +typedef struct { + const struct plugins { + const struct fp_wget { + CFT_BOOLEAN auto_update_gedasymbols; /* update the index of gedasymbols on startup automatically */ + } fp_wget; + } plugins; +} conf_fp_wget_t; + +#endif Index: gedasymbols.h =================================================================== --- gedasymbols.h (revision 7928) +++ gedasymbols.h (revision 7929) @@ -1,4 +1,5 @@ #include "plug_footprint.h" +#include "fp_wget_conf.h" int fp_gedasymbols_load_dir(pcb_plug_fp_t *ctx, const char *path); FILE *fp_gedasymbols_fopen(pcb_plug_fp_t *ctx, const char *path, const char *name, pcb_fp_fopen_ctx_t *fctx); void fp_gedasymbols_fclose(pcb_plug_fp_t *ctx, FILE * f, pcb_fp_fopen_ctx_t *fctx); @@ -5,3 +6,5 @@ void fp_gedasymbols_init(void); void fp_gedasymbols_uninit(void); +extern conf_fp_wget_t conf_fp_wget; +