diff --git a/source/libs/tdb/src/db/tdbPage.c b/source/libs/tdb/src/db/tdbPage.c index 6c92e3b933eeef7cbdb4be0e0ab5d8ee2dbdda74..fddd77034d3974c8298e9b40967f5f72fbb04577 100644 --- a/source/libs/tdb/src/db/tdbPage.c +++ b/source/libs/tdb/src/db/tdbPage.c @@ -15,6 +15,16 @@ #include "tdbInt.h" +int tdbPageCreate(int pageSize, SPage **ppPage, void *(*xMalloc)(void *, size_t), void *arg) { + // TODO + return 0; +} + +int tdbPageDestroy(SPage *pPage, void (*xFree)(void *)) { + // TODO + return 0; +} + int tdbPageInsertCell(SPage *pPage, int idx, SCell *pCell, int szCell) { // TODO return 0; diff --git a/source/libs/tdb/src/inc/tdbPage.h b/source/libs/tdb/src/inc/tdbPage.h index 2e6a80acbc332b20860b0ff0f8c9fc73edbbb778..403f193c4e913bcb62c5f31101ec38b02b5d44e3 100644 --- a/source/libs/tdb/src/inc/tdbPage.h +++ b/source/libs/tdb/src/inc/tdbPage.h @@ -39,6 +39,7 @@ struct SPage { pthread_spinlock_t lock; u8 *pData; SPgid pgid; + int pageSize; // Fields used by SPCache TDB_PCACHE_PAGE @@ -95,6 +96,8 @@ struct SPage { #endif // APIs +int tdbPageCreate(int pageSize, SPage **ppPage, void *(*xMalloc)(void *, size_t), void *arg); +int tdbPageDestroy(SPage *pPage, void (*xFree)(void *)); int tdbPageInsertCell(SPage *pPage, int idx, SCell *pCell, int szCell); int tdbPageDropCell(SPage *pPage, int idx);