Index: read_net.c =================================================================== --- read_net.c (revision 28033) +++ read_net.c (revision 28034) @@ -97,7 +97,7 @@ } /* Load the elements */ - pcb_actionva("ElementList", "start", NULL); + pcb_actionva(&PCB->hidlib, "ElementList", "start", NULL); for(c = components->children; c != NULL; c = c->next) { const char *ref = NULL, *value = NULL, *footprint = NULL; @@ -116,15 +116,15 @@ pcb_message(PCB_MSG_WARNING, "eeschema: ignoring component %s with no footprint\n", ref); continue; } - pcb_actionva("ElementList", "Need", ref, footprint, value == NULL ? "" : value, NULL); + pcb_actionva(&PCB->hidlib, "ElementList", "Need", ref, footprint, value == NULL ? "" : value, NULL); } - pcb_actionva("ElementList", "Done", NULL); + pcb_actionva(&PCB->hidlib, "ElementList", "Done", NULL); /* Load the netlist */ - pcb_actionva("Netlist", "Freeze", NULL); - pcb_actionva("Netlist", "Clear", NULL); + pcb_actionva(&PCB->hidlib, "Netlist", "Freeze", NULL); + pcb_actionva(&PCB->hidlib, "Netlist", "Clear", NULL); for(net = nets->children; net != NULL; net = net->next) { const char *netname = NULL, *code = NULL, *name = NULL; @@ -163,13 +163,13 @@ continue; } pcb_snprintf(refpin, sizeof(refpin), "%s-%s", ref, pin); - pcb_actionva("Netlist", "Add", netname, refpin, NULL); + pcb_actionva(&PCB->hidlib, "Netlist", "Add", netname, refpin, NULL); } } } - pcb_actionva("Netlist", "Sort", NULL); - pcb_actionva("Netlist", "Thaw", NULL); + pcb_actionva(&PCB->hidlib, "Netlist", "Sort", NULL); + pcb_actionva(&PCB->hidlib, "Netlist", "Thaw", NULL); return 0; }