Index: Plug.tmpasm =================================================================== --- Plug.tmpasm (revision 7431) +++ Plug.tmpasm (revision 7432) @@ -3,7 +3,9 @@ $(PLUGDIR)/import_mentor_sch/netlist_helper.o $(PLUGDIR)/import_mentor_sch/mentor_sch.o @] +put /local/pcb/mod/CONF {$(PLUGDIR)/import_mentor_sch/mentor_sch_conf.h} + switch /local/pcb/import_mentor_sch/controls case {buildin} include /local/pcb/tmpasm/buildin; end; case {plugin} include /local/pcb/tmpasm/plugin; end; Index: mentor_sch.c =================================================================== --- mentor_sch.c (revision 7431) +++ mentor_sch.c (revision 7432) @@ -39,9 +39,13 @@ #include "hid_actions.h" #include "plugins.h" #include "hid.h" +#include "mentor_sch_conf.h" #include "netlist_helper.h" +conf_mentor_sch_t conf_mentor; + + static const char *mentor_sch_cookie = "mentor_sch importer"; /* Return the nth child's string of the subtree called subtree_name under node */ @@ -266,11 +270,17 @@ static void hid_mentor_sch_uninit() { pcb_hid_remove_actions_by_cookie(mentor_sch_cookie); + conf_unreg_fields("plugins/import_mentor_sch/"); } #include "dolists.h" pcb_uninit_t hid_import_mentor_sch_init() { + +#define conf_reg(field,isarray,type_name,cpath,cname,desc,flags) \ + conf_reg_field(conf_mentor, field,isarray,type_name,cpath,cname,desc,flags); +#include "mentor_sch_conf_fields.h" + PCB_REGISTER_ACTIONS(mentor_sch_action_list, mentor_sch_cookie) return hid_mentor_sch_uninit; } Index: mentor_sch_conf.h =================================================================== --- mentor_sch_conf.h (nonexistent) +++ mentor_sch_conf.h (revision 7432) @@ -0,0 +1,14 @@ +#ifndef PCB_MENTOR_SCH_CONF_H +#define PCB_MENTOR_SCH_CONF_H + +#include "conf.h" + +typedef struct { + const struct plugins { + const struct import_mentor_sch { + CFT_LIST map_search_paths; /* parts map file search paths */ + } import_mentor_sch; + } plugins; +} conf_mentor_sch_t; + +#endif