** This function returns a pointer to the VFS implemented in this file. ** To make the VFS available to SQLite: ** ** sqlite3_vfs_register(sqlite3_asyncvfs(), 0); */
| 799 | ** sqlite3_vfs_register(sqlite3_asyncvfs(), 0); |
| 800 | */ |
| 801 | sqlite3_vfs* vfsAsync() { |
| 802 | static sqlite3_vfs asyncvfs = { |
| 803 | 3, /* iVersion */ |
| 804 | sizeof(VFSAsyncFile), /* szOsFile */ |
| 805 | MAXPATHNAME, /* mxPathname */ |
| 806 | 0, /* pNext */ |
| 807 | "fdb_async", /* zName */ |
| 808 | 0, /* pAppData */ |
| 809 | asyncOpen, /* xOpen */ |
| 810 | asyncDelete, /* xDelete */ |
| 811 | asyncAccess, /* xAccess */ |
| 812 | asyncFullPathname, /* xFullPathname */ |
| 813 | asyncDlOpen, /* xDlOpen */ |
| 814 | asyncDlError, /* xDlError */ |
| 815 | asyncDlSym, /* xDlSym */ |
| 816 | asyncDlClose, /* xDlClose */ |
| 817 | asyncRandomness, /* xRandomness */ |
| 818 | asyncSleep, /* xSleep */ |
| 819 | asyncCurrentTime, /* xCurrentTime */ |
| 820 | asyncGetLastError, /* xGetLastError */ |
| 821 | asyncCurrentTimeInt64, /* xCurrentTimeInt64 */ |
| 822 | 0, /* xSetSystemCall */ |
| 823 | 0, /* xGetSystemCall */ |
| 824 | 0, /* xNextSystemCall */ |
| 825 | |
| 826 | }; |
| 827 | return &asyncvfs; |
| 828 | } |