Index: trunk/src/plug_io.h =================================================================== --- trunk/src/plug_io.h (revision 2223) +++ trunk/src/plug_io.h (revision 2224) @@ -40,7 +40,7 @@ reading (if wr == 0). Return 0 if not supported or an integer priority if supported. The higher the prio is the more likely the plugin gets the next operation on the file. Base prio should be 100 for native formats. */ - int (*fmt_support_prio)(int wr, const char *fmt); + int (*fmt_support_prio)(plug_io_t *ctx, int wr, const char *fmt); /* Attempt to load a pcb design from Filename to Ptr. Conf subtree at settings_dest is replaced by settings loaded from the Index: trunk/src_plugins/io_kicad_legacy/io_kicad_legacy.c =================================================================== --- trunk/src_plugins/io_kicad_legacy/io_kicad_legacy.c (revision 2223) +++ trunk/src_plugins/io_kicad_legacy/io_kicad_legacy.c (revision 2224) @@ -31,7 +31,7 @@ static plug_io_t io_kicad_legacy; -int io_kicad_legacy_fmt(int wr, const char *fmt) +int io_kicad_legacy_fmt(plug_io_t *ctx, int wr, const char *fmt) { if (strcmp(fmt, "kicadl") != 0) return 0; Index: trunk/src_plugins/io_pcb/io_pcb.c =================================================================== --- trunk/src_plugins/io_pcb/io_pcb.c (revision 2223) +++ trunk/src_plugins/io_pcb/io_pcb.c (revision 2224) @@ -31,7 +31,7 @@ static plug_io_t io_pcb; -int io_pcb_fmt(int wr, const char *fmt) +int io_pcb_fmt(plug_io_t *ctx, int wr, const char *fmt) { if (strcmp(fmt, "pcb") != 0) return 0;