Index: Makefile =================================================================== --- Makefile (nonexistent) +++ Makefile (revision 26263) @@ -0,0 +1,6 @@ +all: + cd ../../src && $(MAKE) mod_order + +clean: + rm *.o *.so 2>/dev/null ; true + Index: Plug.tmpasm =================================================================== --- Plug.tmpasm (nonexistent) +++ Plug.tmpasm (revision 26263) @@ -0,0 +1,10 @@ +put /local/pcb/mod {order} +put /local/pcb/mod/OBJS [@ + $(PLUGDIR)/order/order.o +@] + +switch /local/pcb/order/controls + case {buildin} include /local/pcb/tmpasm/buildin; end; + case {plugin} include /local/pcb/tmpasm/plugin; end; + case {disable} include /local/pcb/tmpasm/disable; end; +end Index: order.c =================================================================== --- order.c (nonexistent) +++ order.c (revision 26263) @@ -0,0 +1,45 @@ +/* + * COPYRIGHT + * + * pcb-rnd, interactive printed circuit board design + * 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") + */ + +#include "config.h" + +#include + +#include "pcb-printf.h" +#include "plugins.h" + + +int pplg_check_ver_order(int ver_needed) { return 0; } + +void pplg_uninit_order(void) +{ +} + +int pplg_init_order(void) +{ + PCB_API_CHK_VER; + return 0; +} Index: order.h =================================================================== --- order.h (nonexistent) +++ order.h (revision 26263) @@ -0,0 +1,37 @@ +/* + * COPYRIGHT + * + * pcb-rnd, interactive printed circuit board design + * 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") + */ + +#ifndef PCB_ORDER_H +#define PCB_ORDER_H + +/* order implementation - registered by an order plugin */ +typedef struct pcb_order_imp_s pcb_order_imp_t; +struct pcb_order_imp_s { + int (*enabled)(pcb_order_imp_t *imp); /* returns 1 if the plugin is enabled */ + void (*populate_dad)(pcb_order_imp_t *imp); +}; + +#endif Index: order.pup =================================================================== --- order.pup (nonexistent) +++ order.pup (revision 26263) @@ -0,0 +1,6 @@ +$class feature +$short online board ordering +$long order boards through the Internet +$state WIP +$package cloud +default disable