1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-09-18 03:59:18 +03:00
eda-tools/sch2fig/lib.h
2016-07-21 23:54:32 -03:00

25 lines
403 B
C

#ifndef LIB_H
#define LIB_H
#include <stdbool.h>
enum lib_state {
lib_skip, /* before a definition */
lib_def, /* in definition */
lib_draw, /* in drawings */
};
struct lib_ctx {
enum lib_state state;
unsigned lineno;
};
void lib_exec(const char *name, unsigned unit, int m[6]);
bool lib_parse(struct lib_ctx *ctx, const char *line);
void lib_init(struct lib_ctx *ctx);
#endif /* !LIB_H */