summaryrefslogtreecommitdiff
path: root/kicad/pl.h
blob: 18750c4e45bbc2c5dc90e6e2ac88bab998bdf323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * kicad/pl.h - KiCad page layout
 *
 * Written 2016 by Werner Almesberger
 * Copyright 2016 by Werner Almesberger
 *
 * 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.
 */


#ifndef KICAD_PL_H
#define	KICAD_PL_H

#include <stdbool.h>

#include "gfx/gfx.h"
#include "file/file.h"
#include "kicad/sch.h"


struct pl_ctx;


extern bool suppress_page_layout;
extern const char *date_override;


void pl_render(struct pl_ctx *pl, struct gfx *gfx,
    const struct sheet *sheets, const struct sheet *sheet);

struct pl_ctx *pl_parse(struct file *file);
struct pl_ctx *pl_parse_search(const char *name, const struct file *related);
void pl_free(struct pl_ctx *pl);

#endif /* !KICAD_PL_H */