From 2b0fa6d9c84cd038f1fcaeaaf646303ef4297903 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Fri, 11 Mar 2022 08:01:16 +0000 Subject: [PATCH] more TDB --- source/libs/tdb/src/inc/tdbPage.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/source/libs/tdb/src/inc/tdbPage.h b/source/libs/tdb/src/inc/tdbPage.h index ef77925ce6..f4738dbfad 100644 --- a/source/libs/tdb/src/inc/tdbPage.h +++ b/source/libs/tdb/src/inc/tdbPage.h @@ -23,13 +23,21 @@ extern "C" { typedef u8 SCell; typedef struct __attribute__((__packed__)) { - u16 flags; - u16 nCells; - u16 cellCont; - u16 freeCell; - u16 nFree; + u16 flags; + u16 nCells; + u16 cellCont; + u16 freeCell; + u16 nFree; } SPageHdr; +typedef struct __attribute__((__packed__)) { + u16 flags; + u8 nCells[3]; + u8 cellCont[3]; + u8 freeCell[3]; + u8 nFree[3]; +} SPageHdrL; + typedef struct __attribute__((__packed__)) { u8 cksm[4]; } SPageFtr;