Index: exto_std.c =================================================================== --- exto_std.c (revision 28354) +++ exto_std.c (revision 28355) @@ -36,13 +36,17 @@ #include "actions.h" #include "obj_subc.h" #include "pcb-printf.h" +#include "extobj.h" static const char *exto_std_cookie = "exto_std plugin"; +#include "line_of_vias.c" + int pplg_check_ver_exto_std(int ver_needed) { return 0; } void pplg_uninit_exto_std(void) { + pcb_extobj_unreg(&pcb_line_of_vias); } int pplg_init_exto_std(void) @@ -49,5 +53,7 @@ { PCB_API_CHK_VER; + pcb_extobj_reg(&pcb_line_of_vias); + return 0; } Index: line_of_vias.c =================================================================== --- line_of_vias.c (nonexistent) +++ line_of_vias.c (revision 28355) @@ -0,0 +1,39 @@ +/* + * COPYRIGHT + * + * pcb-rnd, interactive printed circuit board design + * + * Extended object for a line-of-vias; edit: line; places a row of vias over the line + * pcb-rnd Copyright (C) 2019 Tibor 'Igor2' Palinkas + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Contact: + * Project page: http://repo.hu/projects/pcb-rnd + * lead developer: http://repo.hu/projects/pcb-rnd/contact.html + * mailing list: pcb-rnd (at) list.repo.hu (send "subscribe") + */ + + +static void pcb_line_of_vias_draw(pcb_draw_info_t *info, pcb_subc_t *obj) +{ +pcb_trace("pcb_line_of_vias_draw\n"); +} + + +static pcb_extobj_t pcb_line_of_vias = { + "line-of-vias", + pcb_line_of_vias_draw +};