File: stackup.h

package info (click to toggle)
pcb-rnd 3.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 29,624 kB
  • sloc: ansic: 197,571; yacc: 6,153; sh: 5,808; awk: 2,708; makefile: 2,139; lex: 1,107; python: 519; xml: 261; lisp: 169; tcl: 67; perl: 34; javascript: 6; ruby: 5
file content (19 lines) | stat: -rw-r--r-- 786 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "board.h"
#include <genht/htsp.h>
#include <genvector/vtp0.h>

typedef struct {
	htsp_t n2g; /* tedax name to layer group pointer */
	vtp0_t g2n; /* group ID to tedax layer name */
	unsigned include_grp_id:1; /* whether to include group IDs in the name as prefix */
} tedax_stackup_t;


void tedax_stackup_init(tedax_stackup_t *ctx);
void tedax_stackup_uninit(tedax_stackup_t *ctx);

int tedax_stackup_save(pcb_board_t *pcb, const char *stackid, const char *fn);
int tedax_stackup_fsave(tedax_stackup_t *ctx, pcb_board_t *pcb, const char *stackid, FILE *f, pcb_layer_type_t lyt);

int tedax_stackup_load(pcb_board_t *pcb, const char *fn, const char *blk_id, int silent);
int tedax_stackup_fload(tedax_stackup_t *ctx, pcb_board_t *pcb, FILE *f, const char *blk_id, int silent);