Index: trunk/scconfig/Rev.h =================================================================== --- trunk/scconfig/Rev.h (revision 32714) +++ trunk/scconfig/Rev.h (revision 32715) @@ -1 +1 @@ -static const int myrev = 32667; +static const int myrev = 32715; Index: trunk/scconfig/Rev.tab =================================================================== --- trunk/scconfig/Rev.tab (revision 32714) +++ trunk/scconfig/Rev.tab (revision 32715) @@ -1,3 +1,4 @@ +32715 configure fp_fs plugin conf subtree 32667 configure code removal: the onpoint feature doesn't need a special array type anymore 32636 configure librnd separation 32394 configure autoroute plugin: menu and conf Index: trunk/src_plugins/fp_fs/Plug.tmpasm =================================================================== --- trunk/src_plugins/fp_fs/Plug.tmpasm (revision 32714) +++ trunk/src_plugins/fp_fs/Plug.tmpasm (revision 32715) @@ -1,5 +1,8 @@ put /local/pcb/mod {fp_fs} put /local/pcb/mod/OBJS [@ $(PLUGDIR)/fp_fs/fp_fs.o @] +put /local/pcb/mod/CONF {$(PLUGDIR)/fp_fs/fp_fs_conf.h} +put /local/pcb/mod/CONFFILE {fp_fs.conf} +put /local/pcb/mod/CONFVAR {fp_fs_conf_internal} switch /local/pcb/fp_fs/controls case {buildin} include /local/pcb/tmpasm/buildin; end; Index: trunk/src_plugins/fp_fs/fp_fs.c =================================================================== --- trunk/src_plugins/fp_fs/fp_fs.c (revision 32714) +++ trunk/src_plugins/fp_fs/fp_fs.c (revision 32715) @@ -53,7 +53,15 @@ #include #include +#include "fp_fs_conf.h" +#define FP_FS_CONF_FN "ar_extern.conf" +conf_fp_fs_t conf_fp_fs; + +static const char *fp_fs_cookie = "fp_fs plugin"; + +#include "conf_internal.c" + /*** low level map cache ***/ typedef struct { @@ -501,7 +509,10 @@ { RND_HOOK_UNREGISTER(pcb_plug_fp_t, pcb_plug_fp_chain, &fp_fs); + rnd_conf_unreg_file(FP_FS_CONF_FN, fp_fs_conf_internal); + fp_fs_cache_uninit(&fp_fs_cache); + rnd_conf_unreg_fields("plugins/fp_fs/"); } int pplg_init_fp_fs(void) @@ -513,5 +524,12 @@ fp_fs.fp_fclose = fp_fs_fclose; RND_HOOK_REGISTER(pcb_plug_fp_t, pcb_plug_fp_chain, &fp_fs); htsp_init(&fp_fs_cache, strhash, strkeyeq); + + rnd_conf_reg_file(FP_FS_CONF_FN, fp_fs_conf_internal); + +#define conf_reg(field,isarray,type_name,cpath,cname,desc,flags) \ + rnd_conf_reg_field(conf_fp_fs, field,isarray,type_name,cpath,cname,desc,flags); +#include "fp_fs_conf_fields.h" + return 0; } Index: trunk/src_plugins/fp_fs/fp_fs.conf =================================================================== --- trunk/src_plugins/fp_fs/fp_fs.conf (nonexistent) +++ trunk/src_plugins/fp_fs/fp_fs.conf (revision 32715) @@ -0,0 +1,18 @@ +li:pcb-rnd-conf-v1 { + ha:overwrite { + ha:plugins { + ha:fp_fs { + li:ingore_prefix { + . + Makefile + } + li:ingore_suffix { + .png + .html + .pcb + } + } + } + } +} + Index: trunk/src_plugins/fp_fs/fp_fs_conf.h =================================================================== --- trunk/src_plugins/fp_fs/fp_fs_conf.h (nonexistent) +++ trunk/src_plugins/fp_fs/fp_fs_conf.h (revision 32715) @@ -0,0 +1,15 @@ +#ifndef PCB_FP_FS_CONF_H +#define PCB_FP_FS_CONF_H + +#include + +typedef struct { + const struct { + const struct { + RND_CFT_LIST ignore_prefix; /* ignore file names starting with these prefixes */ + RND_CFT_LIST ignore_suffix; /* ignore file names ending with these suffixes */ + } fp_fs; + } plugins; +} conf_fp_fs_t; + +#endif