/* This post-processing step adds the top and bottom silk layers to a * pre-existing PCB. */ int CreateNewPCBPost (PCBTypePtr pcb, int use_defaults) { /* copy default settings */ pcb_colors_from_settings (pcb); if (use_defaults) { if (ParseGroupString (Settings.Groups, &pcb->LayerGroups, DEF_LAYER)) return 1; pcb->Data->Layer[component_silk_layer].Name = strdup ("silk"); pcb->Data->Layer[solder_silk_layer].Name = strdup ("silk"); } return 0; }
/*! * \brief This post-processing step adds the top and bottom silk layers * to a pre-existing PCB. * * Called after PCB->Data->LayerN is set. * * \return Returns zero if no errors, else nonzero. */ int CreateNewPCBPost (PCBType *pcb, int use_defaults) { /* copy default settings */ pcb_colors_from_settings (pcb); if (use_defaults) { if (ParseGroupString (Settings.Groups, &pcb->LayerGroups, &pcb->Data->LayerN)) return 1; } pcb->Data->Layer[top_silk_layer].Name = strdup ("top silk"); pcb->Data->Layer[top_silk_layer].Type = LT_SILK; pcb->Data->Layer[bottom_silk_layer].Name = strdup ("bottom silk"); pcb->Data->Layer[bottom_silk_layer].Type = LT_SILK; return 0; }