Index: trunk/src_plugins/io_lihata/io_lihata.c =================================================================== --- trunk/src_plugins/io_lihata/io_lihata.c (revision 38210) +++ trunk/src_plugins/io_lihata/io_lihata.c (revision 38211) @@ -33,7 +33,7 @@ pcb_plug_io_t plug_io_lihata_v1, plug_io_lihata_v2, plug_io_lihata_v3, plug_io_lihata_v4, plug_io_lihata_v5, plug_io_lihata_v6, - plug_io_lihata_v7, plug_io_lihata_v8; + plug_io_lihata_v7, plug_io_lihata_v8, plug_io_lihata_v9; conf_io_lihata_t conf_io_lihata; pcb_plug_io_t *plug_io_lihata_default = &plug_io_lihata_v8; @@ -72,6 +72,7 @@ void pplg_uninit_io_lihata(void) { rnd_conf_unreg_fields("plugins/io_lihata/"); + RND_HOOK_UNREGISTER(pcb_plug_io_t, pcb_plug_io_chain, &plug_io_lihata_v9); RND_HOOK_UNREGISTER(pcb_plug_io_t, pcb_plug_io_chain, &plug_io_lihata_v8); RND_HOOK_UNREGISTER(pcb_plug_io_t, pcb_plug_io_chain, &plug_io_lihata_v7); RND_HOOK_UNREGISTER(pcb_plug_io_t, pcb_plug_io_chain, &plug_io_lihata_v6); @@ -123,7 +124,13 @@ plug_io_lihata_v8.save_preference_prio = 199; RND_HOOK_REGISTER(pcb_plug_io_t, pcb_plug_io_chain, &plug_io_lihata_v8); + plug_io_lihata_v9 = plug_io_lihata_v7; + plug_io_lihata_v9.write_pcb = io_lihata_write_pcb_v9; + plug_io_lihata_v9.description = "lihata board v9"; + plug_io_lihata_v9.save_preference_prio = 197; + RND_HOOK_REGISTER(pcb_plug_io_t, pcb_plug_io_chain, &plug_io_lihata_v9); + plug_io_lihata_v6 = plug_io_lihata_v7; plug_io_lihata_v6.write_pcb = io_lihata_write_pcb_v6; plug_io_lihata_v6.description = "lihata board v6"; Index: trunk/src_plugins/io_lihata/write.c =================================================================== --- trunk/src_plugins/io_lihata/write.c (revision 38210) +++ trunk/src_plugins/io_lihata/write.c (revision 38211) @@ -1956,6 +1956,11 @@ return io_lihata_write_pcb(ctx, FP, old_filename, new_filename, emergency, 8); } +int io_lihata_write_pcb_v9(pcb_plug_io_t *ctx, FILE * FP, const char *old_filename, const char *new_filename, rnd_bool emergency) +{ + return io_lihata_write_pcb(ctx, FP, old_filename, new_filename, emergency, 9); +} + int io_lihata_write_font(pcb_plug_io_t *ctx, rnd_font_t *font, const char *Filename) { FILE *f; Index: trunk/src_plugins/io_lihata/write.h =================================================================== --- trunk/src_plugins/io_lihata/write.h (revision 38210) +++ trunk/src_plugins/io_lihata/write.h (revision 38211) @@ -34,6 +34,7 @@ int io_lihata_write_pcb_v6(pcb_plug_io_t *ctx, FILE *FP, const char *old_filename, const char *new_filename, rnd_bool emergency); int io_lihata_write_pcb_v7(pcb_plug_io_t *ctx, FILE *FP, const char *old_filename, const char *new_filename, rnd_bool emergency); int io_lihata_write_pcb_v8(pcb_plug_io_t *ctx, FILE *FP, const char *old_filename, const char *new_filename, rnd_bool emergency); +int io_lihata_write_pcb_v9(pcb_plug_io_t *ctx, FILE *FP, const char *old_filename, const char *new_filename, rnd_bool emergency); int io_lihata_write_font(pcb_plug_io_t *ctx, rnd_font_t *font, const char *Filename); int io_lihata_write_buffer(pcb_plug_io_t *ctx, FILE *f, pcb_buffer_t *buff); int io_lihata_write_subcs_head(pcb_plug_io_t *ctx, void **udata, FILE *f, int lib, long num_subcs);