diff options
author | danielk1977 <danielk1977@noemail.net> | 2007-09-17 07:02:56 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2007-09-17 07:02:56 +0000 |
commit | adfb9b0501e005d10aaec727fa56ed5beff0d7d0 (patch) | |
tree | 5ab83d741a99c37bae56a628f154647193bded56 /src/test_async.c | |
parent | 76ee37f9bb393e45eaf724921853668960b34294 (diff) | |
download | sqlite-adfb9b0501e005d10aaec727fa56ed5beff0d7d0.tar.gz sqlite-adfb9b0501e005d10aaec727fa56ed5beff0d7d0.zip |
Add a parameter to specify the size of the output buffer passed to xGetTempname() and xFullPathname(). This, and the previous commit, are changes to the public vfs API introduced in 3.5.0. (CVS 4433)
FossilOrigin-Name: 8b29f5fbfc723cdf67cf3410cd01f7c17ea39a4b
Diffstat (limited to 'src/test_async.c')
-rw-r--r-- | src/test_async.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test_async.c b/src/test_async.c index ee8d80c95..b01822371 100644 --- a/src/test_async.c +++ b/src/test_async.c @@ -990,9 +990,9 @@ static int asyncAccess(sqlite3_vfs *pAsyncVfs, const char *zName, int flags){ return ret; } -static int asyncGetTempname(sqlite3_vfs *pAsyncVfs, char *zBufOut){ +static int asyncGetTempname(sqlite3_vfs *pAsyncVfs, int nBufOut, char *zBufOut){ sqlite3_vfs *pVfs = (sqlite3_vfs *)pAsyncVfs->pAppData; - return pVfs->xGetTempname(pVfs, zBufOut); + return pVfs->xGetTempname(pVfs, nBufOut, zBufOut); } /* @@ -1001,11 +1001,12 @@ static int asyncGetTempname(sqlite3_vfs *pAsyncVfs, char *zBufOut){ static int asyncFullPathname( sqlite3_vfs *pAsyncVfs, const char *zPath, + int nPathOut, char *zPathOut ){ int rc; sqlite3_vfs *pVfs = (sqlite3_vfs *)pAsyncVfs->pAppData; - rc = sqlite3OsFullPathname(pVfs, zPath, zPathOut); + rc = sqlite3OsFullPathname(pVfs, zPath, nPathOut, zPathOut); /* Because of the way intra-process file locking works, this backend ** needs to return a canonical path. The following block assumes the |