diff options
author | drh <drh@noemail.net> | 2011-12-14 18:28:18 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-12-14 18:28:18 +0000 |
commit | 0f2ab8db33f82743ea49b5b11e5f10a8923ed6fb (patch) | |
tree | ba23ebb1b6eaca6ab90ac982ba96de63acc183f1 /src/sqlite.h.in | |
parent | 43a6d4bd4434ef62572c98264aaaf4d01b71c4ac (diff) | |
parent | de60fc2d87a9483cfc1e60ca04381dc07079920b (diff) | |
download | sqlite-0f2ab8db33f82743ea49b5b11e5f10a8923ed6fb.tar.gz sqlite-0f2ab8db33f82743ea49b5b11e5f10a8923ed6fb.zip |
Merge the VFSNAME file-control addition into the nx-devkit branch.
FossilOrigin-Name: 08c1dc517c1340737a55ad9012b7b06f72899c6f
Diffstat (limited to 'src/sqlite.h.in')
-rw-r--r-- | src/sqlite.h.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sqlite.h.in b/src/sqlite.h.in index 75241da42..553372803 100644 --- a/src/sqlite.h.in +++ b/src/sqlite.h.in @@ -771,6 +771,17 @@ struct sqlite3_io_methods { ** a write transaction to indicate that, unless it is rolled back for some ** reason, the entire database file will be overwritten by the current ** transaction. This is used by VACUUM operations. +** +** ^The [SQLITE_FCNTL_VFSNAME] opcode can be used to obtain the names of +** all [VFSes] in the VFS stack. The names are of all VFS shims and the +** final bottom-level VFS are written into memory obtained from +** [sqlite3_malloc()] and the result is stored in the char* variable +** that the fourth parameter of [sqlite3_file_control()] points to. +** The caller is responsible for freeing the memory when done. As with +** all file-control actions, there is no guarantee that this will actually +** do anything. Callers should initialize the char* variable to a NULL +** pointer in case this file-control is not implemented. This file-control +** is intended for diagnostic use only. */ #define SQLITE_FCNTL_LOCKSTATE 1 #define SQLITE_GET_LOCKPROXYFILE 2 @@ -783,6 +794,7 @@ struct sqlite3_io_methods { #define SQLITE_FCNTL_WIN32_AV_RETRY 9 #define SQLITE_FCNTL_PERSIST_WAL 10 #define SQLITE_FCNTL_OVERWRITE 11 +#define SQLITE_FCNTL_VFSNAME 12 /* ** CAPI3REF: Mutex Handle |