diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-05-09 12:37:16 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-05-09 12:37:16 +0200 |
| commit | 3b660c467f938df6898229e378074cfa5662ce9f (patch) | |
| tree | 32d8bed7139267c951f6aabd8238fce496150531 /service/src/stlfile.h | |
| parent | a0d6bf48a185026589288fd9aa94506b321301d8 (diff) | |
| download | enowars5-service-stldoctor-3b660c467f938df6898229e378074cfa5662ce9f.tar.gz enowars5-service-stldoctor-3b660c467f938df6898229e378074cfa5662ce9f.zip | |
save hash statically, added file info output, improved error strings and minor fixes
Diffstat (limited to 'service/src/stlfile.h')
| -rw-r--r-- | service/src/stlfile.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/service/src/stlfile.h b/service/src/stlfile.h index 6c85ed6..99ab33e 100644 --- a/service/src/stlfile.h +++ b/service/src/stlfile.h @@ -6,6 +6,8 @@ #include <stdint.h> #include <endian.h> +#include "util.h" + enum { KW_INVALID = -1, KW_UNKNOWN, @@ -35,14 +37,16 @@ struct stack { }; struct parseinfo { - char extra[80]; + char extra[80], hash[MHASHLEN+1]; unsigned int loopcount; float bbmin[3], bbmax[3]; int type, valid; - char *namehash, *infopath, *stlpath; + char *infopath, *stlpath; }; int parse_file(struct parseinfo *info, char *buf, size_t len); +int save_info(struct parseinfo *info, const char *resultdir); +void print_info(struct parseinfo *info); void free_info(struct parseinfo *info); #endif /* STLFILE_H */ |
