You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
521 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __BASE_REPORT_RECORD_HEADER__
  2. #define __BASE_REPORT_RECORD_HEADER__
  3. #include "basicTypes.h"
  4. typedef struct S_ReportRecord{
  5. uint8_t type;
  6. float Lat;
  7. float Lon;
  8. float Alt;
  9. uint32_t uts;
  10. uint32_t flags;
  11. uint8_t event_group[16];
  12. } ReportRecord;
  13. bool eventGroupToMD5(uint8_t *evtGrp, CSTR md5);
  14. bool MD5ToEventGroup(CSTR md5, uint8_t *evtGrp);
  15. bool writeRecord(FILE fd, ReportRecord *rec);
  16. bool readRecord(FILE *fd, ReportRecord *rec);
  17. size_t getRecordCountInFile(CSTR fName);
  18. #endif