diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-05-04 11:07:45 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-05-04 11:07:45 +0200 |
| commit | a0d6bf48a185026589288fd9aa94506b321301d8 (patch) | |
| tree | 579d27d143a43f252148a221dde7e4225a6c0987 /service/src/stlfile.h | |
| parent | 93107ebd417e75efed4e2173feeea1030ce6cd02 (diff) | |
| download | enowars5-service-stldoctor-a0d6bf48a185026589288fd9aa94506b321301d8.tar.gz enowars5-service-stldoctor-a0d6bf48a185026589288fd9aa94506b321301d8.zip | |
further improved parsing and related tests
Diffstat (limited to 'service/src/stlfile.h')
| -rw-r--r-- | service/src/stlfile.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/service/src/stlfile.h b/service/src/stlfile.h index 25f2211..6c85ed6 100644 --- a/service/src/stlfile.h +++ b/service/src/stlfile.h @@ -7,6 +7,7 @@ #include <endian.h> enum { + KW_INVALID = -1, KW_UNKNOWN, KW_SOLID_BEGIN, KW_SOLID_END, @@ -34,14 +35,14 @@ struct stack { }; struct parseinfo { - char fmtbuf[256]; - char header[80]; - int type, valid; + char extra[80]; unsigned int loopcount; - float bbw, bbh; + float bbmin[3], bbmax[3]; + int type, valid; char *namehash, *infopath, *stlpath; }; int parse_file(struct parseinfo *info, char *buf, size_t len); +void free_info(struct parseinfo *info); #endif /* STLFILE_H */ |
