#ifndef __BASE_REPORT_RECORD_HEADER__ #define __BASE_REPORT_RECORD_HEADER__ #include "basicTypes.h" typedef struct S_ReportRecord{ uint8_t type; float Lat; float Lon; float Alt; uint32_t uts; uint32_t flags; uint8_t event_group[16]; } ReportRecord; bool eventGroupToMD5(uint8_t *evtGrp, CSTR md5); bool MD5ToEventGroup(CSTR md5, uint8_t *evtGrp); bool writeRecord(FILE fd, ReportRecord *rec); bool readRecord(FILE *fd, ReportRecord *rec); size_t getRecordCountInFile(CSTR fName); #endif