Index: Plug.tmpasm =================================================================== --- Plug.tmpasm (revision 9918) +++ Plug.tmpasm (revision 9919) @@ -3,6 +3,7 @@ $(PLUGDIR)/rubberband_orig/rubberband.o $(PLUGDIR)/rubberband_orig/fgeometry.o @] +put /local/pcb/mod/CONF {$(PLUGDIR)/rubberband_orig/rubberband_conf.h} switch /local/pcb/rubberband_orig/controls case {buildin} include /local/pcb/tmpasm/buildin; end; Index: rubberband.c =================================================================== --- rubberband.c (revision 9918) +++ rubberband.c (revision 9919) @@ -53,6 +53,10 @@ #include "polygon.h" +#include "rubberband_conf.h" +conf_rubberband_orig_t conf_rbo; + + typedef struct { /* rubberband lines for element moves */ pcb_layer_t *Layer; /* layer that holds the line */ pcb_line_t *Line; /* the line itself */ @@ -1255,6 +1259,7 @@ void pplg_uninit_rubberband_orig(void) { pcb_event_unbind_allcookie(rubber_cookie); + conf_unreg_fields("plugins/rubberband_orig/"); } int pplg_init_rubberband_orig(void) @@ -1271,6 +1276,10 @@ pcb_event_bind(PCB_EVENT_RUBBER_FIT_CROSSHAIR, rbe_fit_crosshair, ctx, rubber_cookie); pcb_event_bind(PCB_EVENT_RUBBER_CONSTRAIN_MAIN_LINE, rbe_constrain_main_line, ctx, rubber_cookie); +#define conf_reg(field,isarray,type_name,cpath,cname,desc,flags) \ + conf_reg_field(conf_mincut, field,isarray,type_name,cpath,cname,desc,flags); +#include "rubberband_conf_fields.h" + return 0; } Index: rubberband_conf.h =================================================================== --- rubberband_conf.h (nonexistent) +++ rubberband_conf.h (revision 9919) @@ -0,0 +1,14 @@ +#ifndef PCB_MINCUT_CONF_H +#define PCB_MINCUT_CONF_H + +#include "conf.h" + +typedef struct { + const struct plugins { + const struct rubberband_orig { + CFT_BOOLEAN new_arc_mode; /* TODO */ + } rubberband_orig; + } plugins; +} conf_rubberband_orig_t; + +#endif