aboutsummaryrefslogtreecommitdiff
path: root/project/src/lib-szs.h
diff options
context:
space:
mode:
authorWiimm <none>2020-09-30 13:20:16 +0200
committerWiimm <none>2020-09-30 13:20:16 +0200
commit646b95d113309378591b75a290ee6c62a04f3772 (patch)
treea94864e8cef5fc0fbffb7e69d46d688e7caaae3d /project/src/lib-szs.h
parenteaf1f8f8ce68b80ebdcefb45896461a89b47e1e1 (diff)
SZS v2.20a.beta1: Test Mac build
Diffstat (limited to 'project/src/lib-szs.h')
-rw-r--r--project/src/lib-szs.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/project/src/lib-szs.h b/project/src/lib-szs.h
index 8908bf1..eff7eed 100644
--- a/project/src/lib-szs.h
+++ b/project/src/lib-szs.h
@@ -55,6 +55,8 @@
#include "lib-std.h"
#include "lib-object.h"
#include "lib-lecode.h"
+#include "lib-checksum.h"
+#include "lib-kmp.h"
#include "db-mkw.h"
//
@@ -406,6 +408,7 @@ typedef struct szs_file_t
// 2: all materials found
// 3: all materials found & content ok
+ warn_bits_t warn_bits; // warning summary
bool szs_special[HAVESZS__N]; // true: special file found
kmp_special_t kmp_special; // list: >0: number of special KMP objects found
uint have_lex; // bit field for found lex eleemnts
@@ -1271,6 +1274,65 @@ enumError CompressBZ ( szs_file_t * szs, bool remove_uncompressed );
//
///////////////////////////////////////////////////////////////////////////////
+/////////////// analyse_szs_t ///////////////
+///////////////////////////////////////////////////////////////////////////////
+// [[analyse_szs_t]]
+
+typedef struct analyse_szs_t
+{
+
+ //--- db+sha1 check sums
+
+ char db64[CHECKSUM_DB_SIZE+1];
+ // DB64 checksum
+ sha1_hex_t sha1_szs; // SHA1 of SZS file
+ sha1_hex_t sha1_szs_norm; // SHA1 of normed SZS file
+ sha1_hex_t sha1_kmp; // SHA1 of KMP file
+ sha1_hex_t sha1_kmp_norm; // SHA1 of normed KMP file
+ sha1_hex_t sha1_kcl; // SHA1 of KCL file
+ sha1_hex_t sha1_course; // SHA1 of course-model
+ sha1_hex_t sha1_vrcorn; // SHA1 of vrcorn
+ sha1_hex_t sha1_minimap; // SHA1 of minimap
+
+
+ //--- sub files
+
+ lex_info_t lexinfo; // LEX info
+ slot_ana_t slotana; // slot data
+ slot_info_t slotinfo; // slot data
+ kmp_finish_t kmp_finish; // finish line
+ kmp_usedpos_t used_pos; // used positions
+
+
+ //--- more stats
+
+ int ckpt0_count; // number of LC in CKPT, -1 unknown
+ int lap_count; // STGI lap counter
+ u16 speed_mod; // STGI speed mod
+ float speed_factor; // STGI speed factor
+
+ char gobj_info[20]; // gobj counters
+ char ct_attrib[300]; // collected ct attributes
+
+ u_usec_t duration_usec; // duration of AnalyseSZS() in usec
+}
+analyse_szs_t;
+
+//-----------------------------------------------------------------------------
+
+void InitializeAnalyseSZS ( analyse_szs_t * as );
+void ResetAnalyseSZS ( analyse_szs_t * as );
+
+void AnalyseSZS
+(
+ analyse_szs_t *as, // result
+ bool init_sa, // true: init 'as', false: reset 'as'
+ szs_file_t *szs, // SZS filre t analysze
+ ccp fname // NULL or fname for slot analysis
+);
+
+//
+///////////////////////////////////////////////////////////////////////////////
/////////////// END ///////////////
///////////////////////////////////////////////////////////////////////////////