aboutsummaryrefslogtreecommitdiff
path: root/src/wal.h
diff options
context:
space:
mode:
authordan <dan@noemail.net>2012-02-23 15:35:49 +0000
committerdan <dan@noemail.net>2012-02-23 15:35:49 +0000
commitb3bdc72deda391ba7867ba14afa18fbd433cb12e (patch)
treefe75a0aa47b20277aef5e4e3d6075cbe69eae4bb /src/wal.h
parent49dc66df0f73ae32a504a719205b3c05a80f2ad5 (diff)
downloadsqlite-b3bdc72deda391ba7867ba14afa18fbd433cb12e.tar.gz
sqlite-b3bdc72deda391ba7867ba14afa18fbd433cb12e.zip
Add the sqlite3PagerWalFramesize() function to pager.c. This is used by zipvfs.
FossilOrigin-Name: 786e24dc56504d1958db0618e645610f2600a087
Diffstat (limited to 'src/wal.h')
-rw-r--r--src/wal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wal.h b/src/wal.h
index fac762e87..437acd1df 100644
--- a/src/wal.h
+++ b/src/wal.h
@@ -43,6 +43,7 @@
# define sqlite3WalCallback(z) 0
# define sqlite3WalExclusiveMode(y,z) 0
# define sqlite3WalHeapMemory(z) 0
+# define sqlite3WalFramesize(z) 0
#else
#define WAL_SAVEPOINT_NDATA 4
@@ -124,5 +125,10 @@ int sqlite3WalExclusiveMode(Wal *pWal, int op);
*/
int sqlite3WalHeapMemory(Wal *pWal);
+/* If the WAL file is not empty, return the number of bytes of content
+** stored in each frame (i.e. the db page-size when the WAL was created).
+*/
+int sqlite3WalFramesize(Wal *pWal);
+
#endif /* ifndef SQLITE_OMIT_WAL */
#endif /* _WAL_H_ */