Chih-Hung Hsieh | 9a627fb | 2020-07-29 20:55:10 -0700 | [diff] [blame^] | 1 | /* automatically generated by rust-bindgen (unknown version) */ |
| 2 | |
| 3 | pub const SQLITE_VERSION: &'static [u8; 7usize] = b"3.32.2\0"; |
| 4 | pub const SQLITE_VERSION_NUMBER: i32 = 3032002; |
| 5 | pub const SQLITE_SOURCE_ID: &'static [u8; 85usize] = |
| 6 | b"2020-06-04 12:58:43 ec02243ea6ce33b090870ae55ab8aa2534b54d216d45c4aa2fdbb00e86861e8c\0"; |
| 7 | pub const SQLITE_OK: i32 = 0; |
| 8 | pub const SQLITE_ERROR: i32 = 1; |
| 9 | pub const SQLITE_INTERNAL: i32 = 2; |
| 10 | pub const SQLITE_PERM: i32 = 3; |
| 11 | pub const SQLITE_ABORT: i32 = 4; |
| 12 | pub const SQLITE_BUSY: i32 = 5; |
| 13 | pub const SQLITE_LOCKED: i32 = 6; |
| 14 | pub const SQLITE_NOMEM: i32 = 7; |
| 15 | pub const SQLITE_READONLY: i32 = 8; |
| 16 | pub const SQLITE_INTERRUPT: i32 = 9; |
| 17 | pub const SQLITE_IOERR: i32 = 10; |
| 18 | pub const SQLITE_CORRUPT: i32 = 11; |
| 19 | pub const SQLITE_NOTFOUND: i32 = 12; |
| 20 | pub const SQLITE_FULL: i32 = 13; |
| 21 | pub const SQLITE_CANTOPEN: i32 = 14; |
| 22 | pub const SQLITE_PROTOCOL: i32 = 15; |
| 23 | pub const SQLITE_EMPTY: i32 = 16; |
| 24 | pub const SQLITE_SCHEMA: i32 = 17; |
| 25 | pub const SQLITE_TOOBIG: i32 = 18; |
| 26 | pub const SQLITE_CONSTRAINT: i32 = 19; |
| 27 | pub const SQLITE_MISMATCH: i32 = 20; |
| 28 | pub const SQLITE_MISUSE: i32 = 21; |
| 29 | pub const SQLITE_NOLFS: i32 = 22; |
| 30 | pub const SQLITE_AUTH: i32 = 23; |
| 31 | pub const SQLITE_FORMAT: i32 = 24; |
| 32 | pub const SQLITE_RANGE: i32 = 25; |
| 33 | pub const SQLITE_NOTADB: i32 = 26; |
| 34 | pub const SQLITE_NOTICE: i32 = 27; |
| 35 | pub const SQLITE_WARNING: i32 = 28; |
| 36 | pub const SQLITE_ROW: i32 = 100; |
| 37 | pub const SQLITE_DONE: i32 = 101; |
| 38 | pub const SQLITE_ERROR_MISSING_COLLSEQ: i32 = 257; |
| 39 | pub const SQLITE_ERROR_RETRY: i32 = 513; |
| 40 | pub const SQLITE_ERROR_SNAPSHOT: i32 = 769; |
| 41 | pub const SQLITE_IOERR_READ: i32 = 266; |
| 42 | pub const SQLITE_IOERR_SHORT_READ: i32 = 522; |
| 43 | pub const SQLITE_IOERR_WRITE: i32 = 778; |
| 44 | pub const SQLITE_IOERR_FSYNC: i32 = 1034; |
| 45 | pub const SQLITE_IOERR_DIR_FSYNC: i32 = 1290; |
| 46 | pub const SQLITE_IOERR_TRUNCATE: i32 = 1546; |
| 47 | pub const SQLITE_IOERR_FSTAT: i32 = 1802; |
| 48 | pub const SQLITE_IOERR_UNLOCK: i32 = 2058; |
| 49 | pub const SQLITE_IOERR_RDLOCK: i32 = 2314; |
| 50 | pub const SQLITE_IOERR_DELETE: i32 = 2570; |
| 51 | pub const SQLITE_IOERR_BLOCKED: i32 = 2826; |
| 52 | pub const SQLITE_IOERR_NOMEM: i32 = 3082; |
| 53 | pub const SQLITE_IOERR_ACCESS: i32 = 3338; |
| 54 | pub const SQLITE_IOERR_CHECKRESERVEDLOCK: i32 = 3594; |
| 55 | pub const SQLITE_IOERR_LOCK: i32 = 3850; |
| 56 | pub const SQLITE_IOERR_CLOSE: i32 = 4106; |
| 57 | pub const SQLITE_IOERR_DIR_CLOSE: i32 = 4362; |
| 58 | pub const SQLITE_IOERR_SHMOPEN: i32 = 4618; |
| 59 | pub const SQLITE_IOERR_SHMSIZE: i32 = 4874; |
| 60 | pub const SQLITE_IOERR_SHMLOCK: i32 = 5130; |
| 61 | pub const SQLITE_IOERR_SHMMAP: i32 = 5386; |
| 62 | pub const SQLITE_IOERR_SEEK: i32 = 5642; |
| 63 | pub const SQLITE_IOERR_DELETE_NOENT: i32 = 5898; |
| 64 | pub const SQLITE_IOERR_MMAP: i32 = 6154; |
| 65 | pub const SQLITE_IOERR_GETTEMPPATH: i32 = 6410; |
| 66 | pub const SQLITE_IOERR_CONVPATH: i32 = 6666; |
| 67 | pub const SQLITE_IOERR_VNODE: i32 = 6922; |
| 68 | pub const SQLITE_IOERR_AUTH: i32 = 7178; |
| 69 | pub const SQLITE_IOERR_BEGIN_ATOMIC: i32 = 7434; |
| 70 | pub const SQLITE_IOERR_COMMIT_ATOMIC: i32 = 7690; |
| 71 | pub const SQLITE_IOERR_ROLLBACK_ATOMIC: i32 = 7946; |
| 72 | pub const SQLITE_IOERR_DATA: i32 = 8202; |
| 73 | pub const SQLITE_LOCKED_SHAREDCACHE: i32 = 262; |
| 74 | pub const SQLITE_LOCKED_VTAB: i32 = 518; |
| 75 | pub const SQLITE_BUSY_RECOVERY: i32 = 261; |
| 76 | pub const SQLITE_BUSY_SNAPSHOT: i32 = 517; |
| 77 | pub const SQLITE_BUSY_TIMEOUT: i32 = 773; |
| 78 | pub const SQLITE_CANTOPEN_NOTEMPDIR: i32 = 270; |
| 79 | pub const SQLITE_CANTOPEN_ISDIR: i32 = 526; |
| 80 | pub const SQLITE_CANTOPEN_FULLPATH: i32 = 782; |
| 81 | pub const SQLITE_CANTOPEN_CONVPATH: i32 = 1038; |
| 82 | pub const SQLITE_CANTOPEN_DIRTYWAL: i32 = 1294; |
| 83 | pub const SQLITE_CANTOPEN_SYMLINK: i32 = 1550; |
| 84 | pub const SQLITE_CORRUPT_VTAB: i32 = 267; |
| 85 | pub const SQLITE_CORRUPT_SEQUENCE: i32 = 523; |
| 86 | pub const SQLITE_CORRUPT_INDEX: i32 = 779; |
| 87 | pub const SQLITE_READONLY_RECOVERY: i32 = 264; |
| 88 | pub const SQLITE_READONLY_CANTLOCK: i32 = 520; |
| 89 | pub const SQLITE_READONLY_ROLLBACK: i32 = 776; |
| 90 | pub const SQLITE_READONLY_DBMOVED: i32 = 1032; |
| 91 | pub const SQLITE_READONLY_CANTINIT: i32 = 1288; |
| 92 | pub const SQLITE_READONLY_DIRECTORY: i32 = 1544; |
| 93 | pub const SQLITE_ABORT_ROLLBACK: i32 = 516; |
| 94 | pub const SQLITE_CONSTRAINT_CHECK: i32 = 275; |
| 95 | pub const SQLITE_CONSTRAINT_COMMITHOOK: i32 = 531; |
| 96 | pub const SQLITE_CONSTRAINT_FOREIGNKEY: i32 = 787; |
| 97 | pub const SQLITE_CONSTRAINT_FUNCTION: i32 = 1043; |
| 98 | pub const SQLITE_CONSTRAINT_NOTNULL: i32 = 1299; |
| 99 | pub const SQLITE_CONSTRAINT_PRIMARYKEY: i32 = 1555; |
| 100 | pub const SQLITE_CONSTRAINT_TRIGGER: i32 = 1811; |
| 101 | pub const SQLITE_CONSTRAINT_UNIQUE: i32 = 2067; |
| 102 | pub const SQLITE_CONSTRAINT_VTAB: i32 = 2323; |
| 103 | pub const SQLITE_CONSTRAINT_ROWID: i32 = 2579; |
| 104 | pub const SQLITE_CONSTRAINT_PINNED: i32 = 2835; |
| 105 | pub const SQLITE_NOTICE_RECOVER_WAL: i32 = 283; |
| 106 | pub const SQLITE_NOTICE_RECOVER_ROLLBACK: i32 = 539; |
| 107 | pub const SQLITE_WARNING_AUTOINDEX: i32 = 284; |
| 108 | pub const SQLITE_AUTH_USER: i32 = 279; |
| 109 | pub const SQLITE_OK_LOAD_PERMANENTLY: i32 = 256; |
| 110 | pub const SQLITE_OK_SYMLINK: i32 = 512; |
| 111 | pub const SQLITE_OPEN_READONLY: i32 = 1; |
| 112 | pub const SQLITE_OPEN_READWRITE: i32 = 2; |
| 113 | pub const SQLITE_OPEN_CREATE: i32 = 4; |
| 114 | pub const SQLITE_OPEN_DELETEONCLOSE: i32 = 8; |
| 115 | pub const SQLITE_OPEN_EXCLUSIVE: i32 = 16; |
| 116 | pub const SQLITE_OPEN_AUTOPROXY: i32 = 32; |
| 117 | pub const SQLITE_OPEN_URI: i32 = 64; |
| 118 | pub const SQLITE_OPEN_MEMORY: i32 = 128; |
| 119 | pub const SQLITE_OPEN_MAIN_DB: i32 = 256; |
| 120 | pub const SQLITE_OPEN_TEMP_DB: i32 = 512; |
| 121 | pub const SQLITE_OPEN_TRANSIENT_DB: i32 = 1024; |
| 122 | pub const SQLITE_OPEN_MAIN_JOURNAL: i32 = 2048; |
| 123 | pub const SQLITE_OPEN_TEMP_JOURNAL: i32 = 4096; |
| 124 | pub const SQLITE_OPEN_SUBJOURNAL: i32 = 8192; |
| 125 | pub const SQLITE_OPEN_MASTER_JOURNAL: i32 = 16384; |
| 126 | pub const SQLITE_OPEN_NOMUTEX: i32 = 32768; |
| 127 | pub const SQLITE_OPEN_FULLMUTEX: i32 = 65536; |
| 128 | pub const SQLITE_OPEN_SHAREDCACHE: i32 = 131072; |
| 129 | pub const SQLITE_OPEN_PRIVATECACHE: i32 = 262144; |
| 130 | pub const SQLITE_OPEN_WAL: i32 = 524288; |
| 131 | pub const SQLITE_OPEN_NOFOLLOW: i32 = 16777216; |
| 132 | pub const SQLITE_IOCAP_ATOMIC: i32 = 1; |
| 133 | pub const SQLITE_IOCAP_ATOMIC512: i32 = 2; |
| 134 | pub const SQLITE_IOCAP_ATOMIC1K: i32 = 4; |
| 135 | pub const SQLITE_IOCAP_ATOMIC2K: i32 = 8; |
| 136 | pub const SQLITE_IOCAP_ATOMIC4K: i32 = 16; |
| 137 | pub const SQLITE_IOCAP_ATOMIC8K: i32 = 32; |
| 138 | pub const SQLITE_IOCAP_ATOMIC16K: i32 = 64; |
| 139 | pub const SQLITE_IOCAP_ATOMIC32K: i32 = 128; |
| 140 | pub const SQLITE_IOCAP_ATOMIC64K: i32 = 256; |
| 141 | pub const SQLITE_IOCAP_SAFE_APPEND: i32 = 512; |
| 142 | pub const SQLITE_IOCAP_SEQUENTIAL: i32 = 1024; |
| 143 | pub const SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN: i32 = 2048; |
| 144 | pub const SQLITE_IOCAP_POWERSAFE_OVERWRITE: i32 = 4096; |
| 145 | pub const SQLITE_IOCAP_IMMUTABLE: i32 = 8192; |
| 146 | pub const SQLITE_IOCAP_BATCH_ATOMIC: i32 = 16384; |
| 147 | pub const SQLITE_LOCK_NONE: i32 = 0; |
| 148 | pub const SQLITE_LOCK_SHARED: i32 = 1; |
| 149 | pub const SQLITE_LOCK_RESERVED: i32 = 2; |
| 150 | pub const SQLITE_LOCK_PENDING: i32 = 3; |
| 151 | pub const SQLITE_LOCK_EXCLUSIVE: i32 = 4; |
| 152 | pub const SQLITE_SYNC_NORMAL: i32 = 2; |
| 153 | pub const SQLITE_SYNC_FULL: i32 = 3; |
| 154 | pub const SQLITE_SYNC_DATAONLY: i32 = 16; |
| 155 | pub const SQLITE_FCNTL_LOCKSTATE: i32 = 1; |
| 156 | pub const SQLITE_FCNTL_GET_LOCKPROXYFILE: i32 = 2; |
| 157 | pub const SQLITE_FCNTL_SET_LOCKPROXYFILE: i32 = 3; |
| 158 | pub const SQLITE_FCNTL_LAST_ERRNO: i32 = 4; |
| 159 | pub const SQLITE_FCNTL_SIZE_HINT: i32 = 5; |
| 160 | pub const SQLITE_FCNTL_CHUNK_SIZE: i32 = 6; |
| 161 | pub const SQLITE_FCNTL_FILE_POINTER: i32 = 7; |
| 162 | pub const SQLITE_FCNTL_SYNC_OMITTED: i32 = 8; |
| 163 | pub const SQLITE_FCNTL_WIN32_AV_RETRY: i32 = 9; |
| 164 | pub const SQLITE_FCNTL_PERSIST_WAL: i32 = 10; |
| 165 | pub const SQLITE_FCNTL_OVERWRITE: i32 = 11; |
| 166 | pub const SQLITE_FCNTL_VFSNAME: i32 = 12; |
| 167 | pub const SQLITE_FCNTL_POWERSAFE_OVERWRITE: i32 = 13; |
| 168 | pub const SQLITE_FCNTL_PRAGMA: i32 = 14; |
| 169 | pub const SQLITE_FCNTL_BUSYHANDLER: i32 = 15; |
| 170 | pub const SQLITE_FCNTL_TEMPFILENAME: i32 = 16; |
| 171 | pub const SQLITE_FCNTL_MMAP_SIZE: i32 = 18; |
| 172 | pub const SQLITE_FCNTL_TRACE: i32 = 19; |
| 173 | pub const SQLITE_FCNTL_HAS_MOVED: i32 = 20; |
| 174 | pub const SQLITE_FCNTL_SYNC: i32 = 21; |
| 175 | pub const SQLITE_FCNTL_COMMIT_PHASETWO: i32 = 22; |
| 176 | pub const SQLITE_FCNTL_WIN32_SET_HANDLE: i32 = 23; |
| 177 | pub const SQLITE_FCNTL_WAL_BLOCK: i32 = 24; |
| 178 | pub const SQLITE_FCNTL_ZIPVFS: i32 = 25; |
| 179 | pub const SQLITE_FCNTL_RBU: i32 = 26; |
| 180 | pub const SQLITE_FCNTL_VFS_POINTER: i32 = 27; |
| 181 | pub const SQLITE_FCNTL_JOURNAL_POINTER: i32 = 28; |
| 182 | pub const SQLITE_FCNTL_WIN32_GET_HANDLE: i32 = 29; |
| 183 | pub const SQLITE_FCNTL_PDB: i32 = 30; |
| 184 | pub const SQLITE_FCNTL_BEGIN_ATOMIC_WRITE: i32 = 31; |
| 185 | pub const SQLITE_FCNTL_COMMIT_ATOMIC_WRITE: i32 = 32; |
| 186 | pub const SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE: i32 = 33; |
| 187 | pub const SQLITE_FCNTL_LOCK_TIMEOUT: i32 = 34; |
| 188 | pub const SQLITE_FCNTL_DATA_VERSION: i32 = 35; |
| 189 | pub const SQLITE_FCNTL_SIZE_LIMIT: i32 = 36; |
| 190 | pub const SQLITE_FCNTL_CKPT_DONE: i32 = 37; |
| 191 | pub const SQLITE_FCNTL_RESERVE_BYTES: i32 = 38; |
| 192 | pub const SQLITE_FCNTL_CKPT_START: i32 = 39; |
| 193 | pub const SQLITE_GET_LOCKPROXYFILE: i32 = 2; |
| 194 | pub const SQLITE_SET_LOCKPROXYFILE: i32 = 3; |
| 195 | pub const SQLITE_LAST_ERRNO: i32 = 4; |
| 196 | pub const SQLITE_ACCESS_EXISTS: i32 = 0; |
| 197 | pub const SQLITE_ACCESS_READWRITE: i32 = 1; |
| 198 | pub const SQLITE_ACCESS_READ: i32 = 2; |
| 199 | pub const SQLITE_SHM_UNLOCK: i32 = 1; |
| 200 | pub const SQLITE_SHM_LOCK: i32 = 2; |
| 201 | pub const SQLITE_SHM_SHARED: i32 = 4; |
| 202 | pub const SQLITE_SHM_EXCLUSIVE: i32 = 8; |
| 203 | pub const SQLITE_SHM_NLOCK: i32 = 8; |
| 204 | pub const SQLITE_CONFIG_SINGLETHREAD: i32 = 1; |
| 205 | pub const SQLITE_CONFIG_MULTITHREAD: i32 = 2; |
| 206 | pub const SQLITE_CONFIG_SERIALIZED: i32 = 3; |
| 207 | pub const SQLITE_CONFIG_MALLOC: i32 = 4; |
| 208 | pub const SQLITE_CONFIG_GETMALLOC: i32 = 5; |
| 209 | pub const SQLITE_CONFIG_SCRATCH: i32 = 6; |
| 210 | pub const SQLITE_CONFIG_PAGECACHE: i32 = 7; |
| 211 | pub const SQLITE_CONFIG_HEAP: i32 = 8; |
| 212 | pub const SQLITE_CONFIG_MEMSTATUS: i32 = 9; |
| 213 | pub const SQLITE_CONFIG_MUTEX: i32 = 10; |
| 214 | pub const SQLITE_CONFIG_GETMUTEX: i32 = 11; |
| 215 | pub const SQLITE_CONFIG_LOOKASIDE: i32 = 13; |
| 216 | pub const SQLITE_CONFIG_PCACHE: i32 = 14; |
| 217 | pub const SQLITE_CONFIG_GETPCACHE: i32 = 15; |
| 218 | pub const SQLITE_CONFIG_LOG: i32 = 16; |
| 219 | pub const SQLITE_CONFIG_URI: i32 = 17; |
| 220 | pub const SQLITE_CONFIG_PCACHE2: i32 = 18; |
| 221 | pub const SQLITE_CONFIG_GETPCACHE2: i32 = 19; |
| 222 | pub const SQLITE_CONFIG_COVERING_INDEX_SCAN: i32 = 20; |
| 223 | pub const SQLITE_CONFIG_SQLLOG: i32 = 21; |
| 224 | pub const SQLITE_CONFIG_MMAP_SIZE: i32 = 22; |
| 225 | pub const SQLITE_CONFIG_WIN32_HEAPSIZE: i32 = 23; |
| 226 | pub const SQLITE_CONFIG_PCACHE_HDRSZ: i32 = 24; |
| 227 | pub const SQLITE_CONFIG_PMASZ: i32 = 25; |
| 228 | pub const SQLITE_CONFIG_STMTJRNL_SPILL: i32 = 26; |
| 229 | pub const SQLITE_CONFIG_SMALL_MALLOC: i32 = 27; |
| 230 | pub const SQLITE_CONFIG_SORTERREF_SIZE: i32 = 28; |
| 231 | pub const SQLITE_CONFIG_MEMDB_MAXSIZE: i32 = 29; |
| 232 | pub const SQLITE_DBCONFIG_MAINDBNAME: i32 = 1000; |
| 233 | pub const SQLITE_DBCONFIG_LOOKASIDE: i32 = 1001; |
| 234 | pub const SQLITE_DBCONFIG_ENABLE_FKEY: i32 = 1002; |
| 235 | pub const SQLITE_DBCONFIG_ENABLE_TRIGGER: i32 = 1003; |
| 236 | pub const SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER: i32 = 1004; |
| 237 | pub const SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION: i32 = 1005; |
| 238 | pub const SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE: i32 = 1006; |
| 239 | pub const SQLITE_DBCONFIG_ENABLE_QPSG: i32 = 1007; |
| 240 | pub const SQLITE_DBCONFIG_TRIGGER_EQP: i32 = 1008; |
| 241 | pub const SQLITE_DBCONFIG_RESET_DATABASE: i32 = 1009; |
| 242 | pub const SQLITE_DBCONFIG_DEFENSIVE: i32 = 1010; |
| 243 | pub const SQLITE_DBCONFIG_WRITABLE_SCHEMA: i32 = 1011; |
| 244 | pub const SQLITE_DBCONFIG_LEGACY_ALTER_TABLE: i32 = 1012; |
| 245 | pub const SQLITE_DBCONFIG_DQS_DML: i32 = 1013; |
| 246 | pub const SQLITE_DBCONFIG_DQS_DDL: i32 = 1014; |
| 247 | pub const SQLITE_DBCONFIG_ENABLE_VIEW: i32 = 1015; |
| 248 | pub const SQLITE_DBCONFIG_LEGACY_FILE_FORMAT: i32 = 1016; |
| 249 | pub const SQLITE_DBCONFIG_TRUSTED_SCHEMA: i32 = 1017; |
| 250 | pub const SQLITE_DBCONFIG_MAX: i32 = 1017; |
| 251 | pub const SQLITE_DENY: i32 = 1; |
| 252 | pub const SQLITE_IGNORE: i32 = 2; |
| 253 | pub const SQLITE_CREATE_INDEX: i32 = 1; |
| 254 | pub const SQLITE_CREATE_TABLE: i32 = 2; |
| 255 | pub const SQLITE_CREATE_TEMP_INDEX: i32 = 3; |
| 256 | pub const SQLITE_CREATE_TEMP_TABLE: i32 = 4; |
| 257 | pub const SQLITE_CREATE_TEMP_TRIGGER: i32 = 5; |
| 258 | pub const SQLITE_CREATE_TEMP_VIEW: i32 = 6; |
| 259 | pub const SQLITE_CREATE_TRIGGER: i32 = 7; |
| 260 | pub const SQLITE_CREATE_VIEW: i32 = 8; |
| 261 | pub const SQLITE_DELETE: i32 = 9; |
| 262 | pub const SQLITE_DROP_INDEX: i32 = 10; |
| 263 | pub const SQLITE_DROP_TABLE: i32 = 11; |
| 264 | pub const SQLITE_DROP_TEMP_INDEX: i32 = 12; |
| 265 | pub const SQLITE_DROP_TEMP_TABLE: i32 = 13; |
| 266 | pub const SQLITE_DROP_TEMP_TRIGGER: i32 = 14; |
| 267 | pub const SQLITE_DROP_TEMP_VIEW: i32 = 15; |
| 268 | pub const SQLITE_DROP_TRIGGER: i32 = 16; |
| 269 | pub const SQLITE_DROP_VIEW: i32 = 17; |
| 270 | pub const SQLITE_INSERT: i32 = 18; |
| 271 | pub const SQLITE_PRAGMA: i32 = 19; |
| 272 | pub const SQLITE_READ: i32 = 20; |
| 273 | pub const SQLITE_SELECT: i32 = 21; |
| 274 | pub const SQLITE_TRANSACTION: i32 = 22; |
| 275 | pub const SQLITE_UPDATE: i32 = 23; |
| 276 | pub const SQLITE_ATTACH: i32 = 24; |
| 277 | pub const SQLITE_DETACH: i32 = 25; |
| 278 | pub const SQLITE_ALTER_TABLE: i32 = 26; |
| 279 | pub const SQLITE_REINDEX: i32 = 27; |
| 280 | pub const SQLITE_ANALYZE: i32 = 28; |
| 281 | pub const SQLITE_CREATE_VTABLE: i32 = 29; |
| 282 | pub const SQLITE_DROP_VTABLE: i32 = 30; |
| 283 | pub const SQLITE_FUNCTION: i32 = 31; |
| 284 | pub const SQLITE_SAVEPOINT: i32 = 32; |
| 285 | pub const SQLITE_COPY: i32 = 0; |
| 286 | pub const SQLITE_RECURSIVE: i32 = 33; |
| 287 | pub const SQLITE_TRACE_STMT: i32 = 1; |
| 288 | pub const SQLITE_TRACE_PROFILE: i32 = 2; |
| 289 | pub const SQLITE_TRACE_ROW: i32 = 4; |
| 290 | pub const SQLITE_TRACE_CLOSE: i32 = 8; |
| 291 | pub const SQLITE_LIMIT_LENGTH: i32 = 0; |
| 292 | pub const SQLITE_LIMIT_SQL_LENGTH: i32 = 1; |
| 293 | pub const SQLITE_LIMIT_COLUMN: i32 = 2; |
| 294 | pub const SQLITE_LIMIT_EXPR_DEPTH: i32 = 3; |
| 295 | pub const SQLITE_LIMIT_COMPOUND_SELECT: i32 = 4; |
| 296 | pub const SQLITE_LIMIT_VDBE_OP: i32 = 5; |
| 297 | pub const SQLITE_LIMIT_FUNCTION_ARG: i32 = 6; |
| 298 | pub const SQLITE_LIMIT_ATTACHED: i32 = 7; |
| 299 | pub const SQLITE_LIMIT_LIKE_PATTERN_LENGTH: i32 = 8; |
| 300 | pub const SQLITE_LIMIT_VARIABLE_NUMBER: i32 = 9; |
| 301 | pub const SQLITE_LIMIT_TRIGGER_DEPTH: i32 = 10; |
| 302 | pub const SQLITE_LIMIT_WORKER_THREADS: i32 = 11; |
| 303 | pub const SQLITE_PREPARE_PERSISTENT: i32 = 1; |
| 304 | pub const SQLITE_PREPARE_NORMALIZE: i32 = 2; |
| 305 | pub const SQLITE_PREPARE_NO_VTAB: i32 = 4; |
| 306 | pub const SQLITE_INTEGER: i32 = 1; |
| 307 | pub const SQLITE_FLOAT: i32 = 2; |
| 308 | pub const SQLITE_BLOB: i32 = 4; |
| 309 | pub const SQLITE_NULL: i32 = 5; |
| 310 | pub const SQLITE_TEXT: i32 = 3; |
| 311 | pub const SQLITE3_TEXT: i32 = 3; |
| 312 | pub const SQLITE_UTF8: i32 = 1; |
| 313 | pub const SQLITE_UTF16LE: i32 = 2; |
| 314 | pub const SQLITE_UTF16BE: i32 = 3; |
| 315 | pub const SQLITE_UTF16: i32 = 4; |
| 316 | pub const SQLITE_ANY: i32 = 5; |
| 317 | pub const SQLITE_UTF16_ALIGNED: i32 = 8; |
| 318 | pub const SQLITE_DETERMINISTIC: i32 = 2048; |
| 319 | pub const SQLITE_DIRECTONLY: i32 = 524288; |
| 320 | pub const SQLITE_SUBTYPE: i32 = 1048576; |
| 321 | pub const SQLITE_INNOCUOUS: i32 = 2097152; |
| 322 | pub const SQLITE_WIN32_DATA_DIRECTORY_TYPE: i32 = 1; |
| 323 | pub const SQLITE_WIN32_TEMP_DIRECTORY_TYPE: i32 = 2; |
| 324 | pub const SQLITE_INDEX_SCAN_UNIQUE: i32 = 1; |
| 325 | pub const SQLITE_INDEX_CONSTRAINT_EQ: i32 = 2; |
| 326 | pub const SQLITE_INDEX_CONSTRAINT_GT: i32 = 4; |
| 327 | pub const SQLITE_INDEX_CONSTRAINT_LE: i32 = 8; |
| 328 | pub const SQLITE_INDEX_CONSTRAINT_LT: i32 = 16; |
| 329 | pub const SQLITE_INDEX_CONSTRAINT_GE: i32 = 32; |
| 330 | pub const SQLITE_INDEX_CONSTRAINT_MATCH: i32 = 64; |
| 331 | pub const SQLITE_INDEX_CONSTRAINT_LIKE: i32 = 65; |
| 332 | pub const SQLITE_INDEX_CONSTRAINT_GLOB: i32 = 66; |
| 333 | pub const SQLITE_INDEX_CONSTRAINT_REGEXP: i32 = 67; |
| 334 | pub const SQLITE_INDEX_CONSTRAINT_NE: i32 = 68; |
| 335 | pub const SQLITE_INDEX_CONSTRAINT_ISNOT: i32 = 69; |
| 336 | pub const SQLITE_INDEX_CONSTRAINT_ISNOTNULL: i32 = 70; |
| 337 | pub const SQLITE_INDEX_CONSTRAINT_ISNULL: i32 = 71; |
| 338 | pub const SQLITE_INDEX_CONSTRAINT_IS: i32 = 72; |
| 339 | pub const SQLITE_INDEX_CONSTRAINT_FUNCTION: i32 = 150; |
| 340 | pub const SQLITE_MUTEX_FAST: i32 = 0; |
| 341 | pub const SQLITE_MUTEX_RECURSIVE: i32 = 1; |
| 342 | pub const SQLITE_MUTEX_STATIC_MASTER: i32 = 2; |
| 343 | pub const SQLITE_MUTEX_STATIC_MEM: i32 = 3; |
| 344 | pub const SQLITE_MUTEX_STATIC_MEM2: i32 = 4; |
| 345 | pub const SQLITE_MUTEX_STATIC_OPEN: i32 = 4; |
| 346 | pub const SQLITE_MUTEX_STATIC_PRNG: i32 = 5; |
| 347 | pub const SQLITE_MUTEX_STATIC_LRU: i32 = 6; |
| 348 | pub const SQLITE_MUTEX_STATIC_LRU2: i32 = 7; |
| 349 | pub const SQLITE_MUTEX_STATIC_PMEM: i32 = 7; |
| 350 | pub const SQLITE_MUTEX_STATIC_APP1: i32 = 8; |
| 351 | pub const SQLITE_MUTEX_STATIC_APP2: i32 = 9; |
| 352 | pub const SQLITE_MUTEX_STATIC_APP3: i32 = 10; |
| 353 | pub const SQLITE_MUTEX_STATIC_VFS1: i32 = 11; |
| 354 | pub const SQLITE_MUTEX_STATIC_VFS2: i32 = 12; |
| 355 | pub const SQLITE_MUTEX_STATIC_VFS3: i32 = 13; |
| 356 | pub const SQLITE_TESTCTRL_FIRST: i32 = 5; |
| 357 | pub const SQLITE_TESTCTRL_PRNG_SAVE: i32 = 5; |
| 358 | pub const SQLITE_TESTCTRL_PRNG_RESTORE: i32 = 6; |
| 359 | pub const SQLITE_TESTCTRL_PRNG_RESET: i32 = 7; |
| 360 | pub const SQLITE_TESTCTRL_BITVEC_TEST: i32 = 8; |
| 361 | pub const SQLITE_TESTCTRL_FAULT_INSTALL: i32 = 9; |
| 362 | pub const SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS: i32 = 10; |
| 363 | pub const SQLITE_TESTCTRL_PENDING_BYTE: i32 = 11; |
| 364 | pub const SQLITE_TESTCTRL_ASSERT: i32 = 12; |
| 365 | pub const SQLITE_TESTCTRL_ALWAYS: i32 = 13; |
| 366 | pub const SQLITE_TESTCTRL_RESERVE: i32 = 14; |
| 367 | pub const SQLITE_TESTCTRL_OPTIMIZATIONS: i32 = 15; |
| 368 | pub const SQLITE_TESTCTRL_ISKEYWORD: i32 = 16; |
| 369 | pub const SQLITE_TESTCTRL_SCRATCHMALLOC: i32 = 17; |
| 370 | pub const SQLITE_TESTCTRL_INTERNAL_FUNCTIONS: i32 = 17; |
| 371 | pub const SQLITE_TESTCTRL_LOCALTIME_FAULT: i32 = 18; |
| 372 | pub const SQLITE_TESTCTRL_EXPLAIN_STMT: i32 = 19; |
| 373 | pub const SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD: i32 = 19; |
| 374 | pub const SQLITE_TESTCTRL_NEVER_CORRUPT: i32 = 20; |
| 375 | pub const SQLITE_TESTCTRL_VDBE_COVERAGE: i32 = 21; |
| 376 | pub const SQLITE_TESTCTRL_BYTEORDER: i32 = 22; |
| 377 | pub const SQLITE_TESTCTRL_ISINIT: i32 = 23; |
| 378 | pub const SQLITE_TESTCTRL_SORTER_MMAP: i32 = 24; |
| 379 | pub const SQLITE_TESTCTRL_IMPOSTER: i32 = 25; |
| 380 | pub const SQLITE_TESTCTRL_PARSER_COVERAGE: i32 = 26; |
| 381 | pub const SQLITE_TESTCTRL_RESULT_INTREAL: i32 = 27; |
| 382 | pub const SQLITE_TESTCTRL_PRNG_SEED: i32 = 28; |
| 383 | pub const SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS: i32 = 29; |
| 384 | pub const SQLITE_TESTCTRL_LAST: i32 = 29; |
| 385 | pub const SQLITE_STATUS_MEMORY_USED: i32 = 0; |
| 386 | pub const SQLITE_STATUS_PAGECACHE_USED: i32 = 1; |
| 387 | pub const SQLITE_STATUS_PAGECACHE_OVERFLOW: i32 = 2; |
| 388 | pub const SQLITE_STATUS_SCRATCH_USED: i32 = 3; |
| 389 | pub const SQLITE_STATUS_SCRATCH_OVERFLOW: i32 = 4; |
| 390 | pub const SQLITE_STATUS_MALLOC_SIZE: i32 = 5; |
| 391 | pub const SQLITE_STATUS_PARSER_STACK: i32 = 6; |
| 392 | pub const SQLITE_STATUS_PAGECACHE_SIZE: i32 = 7; |
| 393 | pub const SQLITE_STATUS_SCRATCH_SIZE: i32 = 8; |
| 394 | pub const SQLITE_STATUS_MALLOC_COUNT: i32 = 9; |
| 395 | pub const SQLITE_DBSTATUS_LOOKASIDE_USED: i32 = 0; |
| 396 | pub const SQLITE_DBSTATUS_CACHE_USED: i32 = 1; |
| 397 | pub const SQLITE_DBSTATUS_SCHEMA_USED: i32 = 2; |
| 398 | pub const SQLITE_DBSTATUS_STMT_USED: i32 = 3; |
| 399 | pub const SQLITE_DBSTATUS_LOOKASIDE_HIT: i32 = 4; |
| 400 | pub const SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE: i32 = 5; |
| 401 | pub const SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL: i32 = 6; |
| 402 | pub const SQLITE_DBSTATUS_CACHE_HIT: i32 = 7; |
| 403 | pub const SQLITE_DBSTATUS_CACHE_MISS: i32 = 8; |
| 404 | pub const SQLITE_DBSTATUS_CACHE_WRITE: i32 = 9; |
| 405 | pub const SQLITE_DBSTATUS_DEFERRED_FKS: i32 = 10; |
| 406 | pub const SQLITE_DBSTATUS_CACHE_USED_SHARED: i32 = 11; |
| 407 | pub const SQLITE_DBSTATUS_CACHE_SPILL: i32 = 12; |
| 408 | pub const SQLITE_DBSTATUS_MAX: i32 = 12; |
| 409 | pub const SQLITE_STMTSTATUS_FULLSCAN_STEP: i32 = 1; |
| 410 | pub const SQLITE_STMTSTATUS_SORT: i32 = 2; |
| 411 | pub const SQLITE_STMTSTATUS_AUTOINDEX: i32 = 3; |
| 412 | pub const SQLITE_STMTSTATUS_VM_STEP: i32 = 4; |
| 413 | pub const SQLITE_STMTSTATUS_REPREPARE: i32 = 5; |
| 414 | pub const SQLITE_STMTSTATUS_RUN: i32 = 6; |
| 415 | pub const SQLITE_STMTSTATUS_MEMUSED: i32 = 99; |
| 416 | pub const SQLITE_CHECKPOINT_PASSIVE: i32 = 0; |
| 417 | pub const SQLITE_CHECKPOINT_FULL: i32 = 1; |
| 418 | pub const SQLITE_CHECKPOINT_RESTART: i32 = 2; |
| 419 | pub const SQLITE_CHECKPOINT_TRUNCATE: i32 = 3; |
| 420 | pub const SQLITE_VTAB_CONSTRAINT_SUPPORT: i32 = 1; |
| 421 | pub const SQLITE_VTAB_INNOCUOUS: i32 = 2; |
| 422 | pub const SQLITE_VTAB_DIRECTONLY: i32 = 3; |
| 423 | pub const SQLITE_ROLLBACK: i32 = 1; |
| 424 | pub const SQLITE_FAIL: i32 = 3; |
| 425 | pub const SQLITE_REPLACE: i32 = 5; |
| 426 | pub const SQLITE_SCANSTAT_NLOOP: i32 = 0; |
| 427 | pub const SQLITE_SCANSTAT_NVISIT: i32 = 1; |
| 428 | pub const SQLITE_SCANSTAT_EST: i32 = 2; |
| 429 | pub const SQLITE_SCANSTAT_NAME: i32 = 3; |
| 430 | pub const SQLITE_SCANSTAT_EXPLAIN: i32 = 4; |
| 431 | pub const SQLITE_SCANSTAT_SELECTID: i32 = 5; |
| 432 | pub const SQLITE_SERIALIZE_NOCOPY: i32 = 1; |
| 433 | pub const SQLITE_DESERIALIZE_FREEONCLOSE: i32 = 1; |
| 434 | pub const SQLITE_DESERIALIZE_RESIZEABLE: i32 = 2; |
| 435 | pub const SQLITE_DESERIALIZE_READONLY: i32 = 4; |
| 436 | pub const NOT_WITHIN: i32 = 0; |
| 437 | pub const PARTLY_WITHIN: i32 = 1; |
| 438 | pub const FULLY_WITHIN: i32 = 2; |
| 439 | pub const FTS5_TOKENIZE_QUERY: i32 = 1; |
| 440 | pub const FTS5_TOKENIZE_PREFIX: i32 = 2; |
| 441 | pub const FTS5_TOKENIZE_DOCUMENT: i32 = 4; |
| 442 | pub const FTS5_TOKENIZE_AUX: i32 = 8; |
| 443 | pub const FTS5_TOKEN_COLOCATED: i32 = 1; |
| 444 | extern "C" { |
| 445 | pub static mut sqlite3_version: [::std::os::raw::c_char; 0usize]; |
| 446 | } |
| 447 | extern "C" { |
| 448 | pub fn sqlite3_libversion() -> *const ::std::os::raw::c_char; |
| 449 | } |
| 450 | extern "C" { |
| 451 | pub fn sqlite3_sourceid() -> *const ::std::os::raw::c_char; |
| 452 | } |
| 453 | extern "C" { |
| 454 | pub fn sqlite3_libversion_number() -> ::std::os::raw::c_int; |
| 455 | } |
| 456 | extern "C" { |
| 457 | pub fn sqlite3_threadsafe() -> ::std::os::raw::c_int; |
| 458 | } |
| 459 | #[repr(C)] |
| 460 | #[derive(Debug, Copy, Clone)] |
| 461 | pub struct sqlite3 { |
| 462 | _unused: [u8; 0], |
| 463 | } |
| 464 | pub type sqlite_int64 = ::std::os::raw::c_longlong; |
| 465 | pub type sqlite_uint64 = ::std::os::raw::c_ulonglong; |
| 466 | pub type sqlite3_int64 = sqlite_int64; |
| 467 | pub type sqlite3_uint64 = sqlite_uint64; |
| 468 | extern "C" { |
| 469 | pub fn sqlite3_close(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 470 | } |
| 471 | extern "C" { |
| 472 | pub fn sqlite3_close_v2(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 473 | } |
| 474 | pub type sqlite3_callback = ::std::option::Option< |
| 475 | unsafe extern "C" fn( |
| 476 | arg1: *mut ::std::os::raw::c_void, |
| 477 | arg2: ::std::os::raw::c_int, |
| 478 | arg3: *mut *mut ::std::os::raw::c_char, |
| 479 | arg4: *mut *mut ::std::os::raw::c_char, |
| 480 | ) -> ::std::os::raw::c_int, |
| 481 | >; |
| 482 | extern "C" { |
| 483 | pub fn sqlite3_exec( |
| 484 | arg1: *mut sqlite3, |
| 485 | sql: *const ::std::os::raw::c_char, |
| 486 | callback: ::std::option::Option< |
| 487 | unsafe extern "C" fn( |
| 488 | arg1: *mut ::std::os::raw::c_void, |
| 489 | arg2: ::std::os::raw::c_int, |
| 490 | arg3: *mut *mut ::std::os::raw::c_char, |
| 491 | arg4: *mut *mut ::std::os::raw::c_char, |
| 492 | ) -> ::std::os::raw::c_int, |
| 493 | >, |
| 494 | arg2: *mut ::std::os::raw::c_void, |
| 495 | errmsg: *mut *mut ::std::os::raw::c_char, |
| 496 | ) -> ::std::os::raw::c_int; |
| 497 | } |
| 498 | #[repr(C)] |
| 499 | #[derive(Debug, Copy, Clone)] |
| 500 | pub struct sqlite3_file { |
| 501 | pub pMethods: *const sqlite3_io_methods, |
| 502 | } |
| 503 | #[test] |
| 504 | fn bindgen_test_layout_sqlite3_file() { |
| 505 | assert_eq!( |
| 506 | ::std::mem::size_of::<sqlite3_file>(), |
| 507 | 8usize, |
| 508 | concat!("Size of: ", stringify!(sqlite3_file)) |
| 509 | ); |
| 510 | assert_eq!( |
| 511 | ::std::mem::align_of::<sqlite3_file>(), |
| 512 | 8usize, |
| 513 | concat!("Alignment of ", stringify!(sqlite3_file)) |
| 514 | ); |
| 515 | assert_eq!( |
| 516 | unsafe { &(*(::std::ptr::null::<sqlite3_file>())).pMethods as *const _ as usize }, |
| 517 | 0usize, |
| 518 | concat!( |
| 519 | "Offset of field: ", |
| 520 | stringify!(sqlite3_file), |
| 521 | "::", |
| 522 | stringify!(pMethods) |
| 523 | ) |
| 524 | ); |
| 525 | } |
| 526 | #[repr(C)] |
| 527 | #[derive(Debug, Copy, Clone)] |
| 528 | pub struct sqlite3_io_methods { |
| 529 | pub iVersion: ::std::os::raw::c_int, |
| 530 | pub xClose: ::std::option::Option< |
| 531 | unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int, |
| 532 | >, |
| 533 | pub xRead: ::std::option::Option< |
| 534 | unsafe extern "C" fn( |
| 535 | arg1: *mut sqlite3_file, |
| 536 | arg2: *mut ::std::os::raw::c_void, |
| 537 | iAmt: ::std::os::raw::c_int, |
| 538 | iOfst: sqlite3_int64, |
| 539 | ) -> ::std::os::raw::c_int, |
| 540 | >, |
| 541 | pub xWrite: ::std::option::Option< |
| 542 | unsafe extern "C" fn( |
| 543 | arg1: *mut sqlite3_file, |
| 544 | arg2: *const ::std::os::raw::c_void, |
| 545 | iAmt: ::std::os::raw::c_int, |
| 546 | iOfst: sqlite3_int64, |
| 547 | ) -> ::std::os::raw::c_int, |
| 548 | >, |
| 549 | pub xTruncate: ::std::option::Option< |
| 550 | unsafe extern "C" fn(arg1: *mut sqlite3_file, size: sqlite3_int64) -> ::std::os::raw::c_int, |
| 551 | >, |
| 552 | pub xSync: ::std::option::Option< |
| 553 | unsafe extern "C" fn( |
| 554 | arg1: *mut sqlite3_file, |
| 555 | flags: ::std::os::raw::c_int, |
| 556 | ) -> ::std::os::raw::c_int, |
| 557 | >, |
| 558 | pub xFileSize: ::std::option::Option< |
| 559 | unsafe extern "C" fn( |
| 560 | arg1: *mut sqlite3_file, |
| 561 | pSize: *mut sqlite3_int64, |
| 562 | ) -> ::std::os::raw::c_int, |
| 563 | >, |
| 564 | pub xLock: ::std::option::Option< |
| 565 | unsafe extern "C" fn( |
| 566 | arg1: *mut sqlite3_file, |
| 567 | arg2: ::std::os::raw::c_int, |
| 568 | ) -> ::std::os::raw::c_int, |
| 569 | >, |
| 570 | pub xUnlock: ::std::option::Option< |
| 571 | unsafe extern "C" fn( |
| 572 | arg1: *mut sqlite3_file, |
| 573 | arg2: ::std::os::raw::c_int, |
| 574 | ) -> ::std::os::raw::c_int, |
| 575 | >, |
| 576 | pub xCheckReservedLock: ::std::option::Option< |
| 577 | unsafe extern "C" fn( |
| 578 | arg1: *mut sqlite3_file, |
| 579 | pResOut: *mut ::std::os::raw::c_int, |
| 580 | ) -> ::std::os::raw::c_int, |
| 581 | >, |
| 582 | pub xFileControl: ::std::option::Option< |
| 583 | unsafe extern "C" fn( |
| 584 | arg1: *mut sqlite3_file, |
| 585 | op: ::std::os::raw::c_int, |
| 586 | pArg: *mut ::std::os::raw::c_void, |
| 587 | ) -> ::std::os::raw::c_int, |
| 588 | >, |
| 589 | pub xSectorSize: ::std::option::Option< |
| 590 | unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int, |
| 591 | >, |
| 592 | pub xDeviceCharacteristics: ::std::option::Option< |
| 593 | unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int, |
| 594 | >, |
| 595 | pub xShmMap: ::std::option::Option< |
| 596 | unsafe extern "C" fn( |
| 597 | arg1: *mut sqlite3_file, |
| 598 | iPg: ::std::os::raw::c_int, |
| 599 | pgsz: ::std::os::raw::c_int, |
| 600 | arg2: ::std::os::raw::c_int, |
| 601 | arg3: *mut *mut ::std::os::raw::c_void, |
| 602 | ) -> ::std::os::raw::c_int, |
| 603 | >, |
| 604 | pub xShmLock: ::std::option::Option< |
| 605 | unsafe extern "C" fn( |
| 606 | arg1: *mut sqlite3_file, |
| 607 | offset: ::std::os::raw::c_int, |
| 608 | n: ::std::os::raw::c_int, |
| 609 | flags: ::std::os::raw::c_int, |
| 610 | ) -> ::std::os::raw::c_int, |
| 611 | >, |
| 612 | pub xShmBarrier: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_file)>, |
| 613 | pub xShmUnmap: ::std::option::Option< |
| 614 | unsafe extern "C" fn( |
| 615 | arg1: *mut sqlite3_file, |
| 616 | deleteFlag: ::std::os::raw::c_int, |
| 617 | ) -> ::std::os::raw::c_int, |
| 618 | >, |
| 619 | pub xFetch: ::std::option::Option< |
| 620 | unsafe extern "C" fn( |
| 621 | arg1: *mut sqlite3_file, |
| 622 | iOfst: sqlite3_int64, |
| 623 | iAmt: ::std::os::raw::c_int, |
| 624 | pp: *mut *mut ::std::os::raw::c_void, |
| 625 | ) -> ::std::os::raw::c_int, |
| 626 | >, |
| 627 | pub xUnfetch: ::std::option::Option< |
| 628 | unsafe extern "C" fn( |
| 629 | arg1: *mut sqlite3_file, |
| 630 | iOfst: sqlite3_int64, |
| 631 | p: *mut ::std::os::raw::c_void, |
| 632 | ) -> ::std::os::raw::c_int, |
| 633 | >, |
| 634 | } |
| 635 | #[test] |
| 636 | fn bindgen_test_layout_sqlite3_io_methods() { |
| 637 | assert_eq!( |
| 638 | ::std::mem::size_of::<sqlite3_io_methods>(), |
| 639 | 152usize, |
| 640 | concat!("Size of: ", stringify!(sqlite3_io_methods)) |
| 641 | ); |
| 642 | assert_eq!( |
| 643 | ::std::mem::align_of::<sqlite3_io_methods>(), |
| 644 | 8usize, |
| 645 | concat!("Alignment of ", stringify!(sqlite3_io_methods)) |
| 646 | ); |
| 647 | assert_eq!( |
| 648 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).iVersion as *const _ as usize }, |
| 649 | 0usize, |
| 650 | concat!( |
| 651 | "Offset of field: ", |
| 652 | stringify!(sqlite3_io_methods), |
| 653 | "::", |
| 654 | stringify!(iVersion) |
| 655 | ) |
| 656 | ); |
| 657 | assert_eq!( |
| 658 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xClose as *const _ as usize }, |
| 659 | 8usize, |
| 660 | concat!( |
| 661 | "Offset of field: ", |
| 662 | stringify!(sqlite3_io_methods), |
| 663 | "::", |
| 664 | stringify!(xClose) |
| 665 | ) |
| 666 | ); |
| 667 | assert_eq!( |
| 668 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xRead as *const _ as usize }, |
| 669 | 16usize, |
| 670 | concat!( |
| 671 | "Offset of field: ", |
| 672 | stringify!(sqlite3_io_methods), |
| 673 | "::", |
| 674 | stringify!(xRead) |
| 675 | ) |
| 676 | ); |
| 677 | assert_eq!( |
| 678 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xWrite as *const _ as usize }, |
| 679 | 24usize, |
| 680 | concat!( |
| 681 | "Offset of field: ", |
| 682 | stringify!(sqlite3_io_methods), |
| 683 | "::", |
| 684 | stringify!(xWrite) |
| 685 | ) |
| 686 | ); |
| 687 | assert_eq!( |
| 688 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xTruncate as *const _ as usize }, |
| 689 | 32usize, |
| 690 | concat!( |
| 691 | "Offset of field: ", |
| 692 | stringify!(sqlite3_io_methods), |
| 693 | "::", |
| 694 | stringify!(xTruncate) |
| 695 | ) |
| 696 | ); |
| 697 | assert_eq!( |
| 698 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xSync as *const _ as usize }, |
| 699 | 40usize, |
| 700 | concat!( |
| 701 | "Offset of field: ", |
| 702 | stringify!(sqlite3_io_methods), |
| 703 | "::", |
| 704 | stringify!(xSync) |
| 705 | ) |
| 706 | ); |
| 707 | assert_eq!( |
| 708 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xFileSize as *const _ as usize }, |
| 709 | 48usize, |
| 710 | concat!( |
| 711 | "Offset of field: ", |
| 712 | stringify!(sqlite3_io_methods), |
| 713 | "::", |
| 714 | stringify!(xFileSize) |
| 715 | ) |
| 716 | ); |
| 717 | assert_eq!( |
| 718 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xLock as *const _ as usize }, |
| 719 | 56usize, |
| 720 | concat!( |
| 721 | "Offset of field: ", |
| 722 | stringify!(sqlite3_io_methods), |
| 723 | "::", |
| 724 | stringify!(xLock) |
| 725 | ) |
| 726 | ); |
| 727 | assert_eq!( |
| 728 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xUnlock as *const _ as usize }, |
| 729 | 64usize, |
| 730 | concat!( |
| 731 | "Offset of field: ", |
| 732 | stringify!(sqlite3_io_methods), |
| 733 | "::", |
| 734 | stringify!(xUnlock) |
| 735 | ) |
| 736 | ); |
| 737 | assert_eq!( |
| 738 | unsafe { |
| 739 | &(*(::std::ptr::null::<sqlite3_io_methods>())).xCheckReservedLock as *const _ as usize |
| 740 | }, |
| 741 | 72usize, |
| 742 | concat!( |
| 743 | "Offset of field: ", |
| 744 | stringify!(sqlite3_io_methods), |
| 745 | "::", |
| 746 | stringify!(xCheckReservedLock) |
| 747 | ) |
| 748 | ); |
| 749 | assert_eq!( |
| 750 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xFileControl as *const _ as usize }, |
| 751 | 80usize, |
| 752 | concat!( |
| 753 | "Offset of field: ", |
| 754 | stringify!(sqlite3_io_methods), |
| 755 | "::", |
| 756 | stringify!(xFileControl) |
| 757 | ) |
| 758 | ); |
| 759 | assert_eq!( |
| 760 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xSectorSize as *const _ as usize }, |
| 761 | 88usize, |
| 762 | concat!( |
| 763 | "Offset of field: ", |
| 764 | stringify!(sqlite3_io_methods), |
| 765 | "::", |
| 766 | stringify!(xSectorSize) |
| 767 | ) |
| 768 | ); |
| 769 | assert_eq!( |
| 770 | unsafe { |
| 771 | &(*(::std::ptr::null::<sqlite3_io_methods>())).xDeviceCharacteristics as *const _ |
| 772 | as usize |
| 773 | }, |
| 774 | 96usize, |
| 775 | concat!( |
| 776 | "Offset of field: ", |
| 777 | stringify!(sqlite3_io_methods), |
| 778 | "::", |
| 779 | stringify!(xDeviceCharacteristics) |
| 780 | ) |
| 781 | ); |
| 782 | assert_eq!( |
| 783 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xShmMap as *const _ as usize }, |
| 784 | 104usize, |
| 785 | concat!( |
| 786 | "Offset of field: ", |
| 787 | stringify!(sqlite3_io_methods), |
| 788 | "::", |
| 789 | stringify!(xShmMap) |
| 790 | ) |
| 791 | ); |
| 792 | assert_eq!( |
| 793 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xShmLock as *const _ as usize }, |
| 794 | 112usize, |
| 795 | concat!( |
| 796 | "Offset of field: ", |
| 797 | stringify!(sqlite3_io_methods), |
| 798 | "::", |
| 799 | stringify!(xShmLock) |
| 800 | ) |
| 801 | ); |
| 802 | assert_eq!( |
| 803 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xShmBarrier as *const _ as usize }, |
| 804 | 120usize, |
| 805 | concat!( |
| 806 | "Offset of field: ", |
| 807 | stringify!(sqlite3_io_methods), |
| 808 | "::", |
| 809 | stringify!(xShmBarrier) |
| 810 | ) |
| 811 | ); |
| 812 | assert_eq!( |
| 813 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xShmUnmap as *const _ as usize }, |
| 814 | 128usize, |
| 815 | concat!( |
| 816 | "Offset of field: ", |
| 817 | stringify!(sqlite3_io_methods), |
| 818 | "::", |
| 819 | stringify!(xShmUnmap) |
| 820 | ) |
| 821 | ); |
| 822 | assert_eq!( |
| 823 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xFetch as *const _ as usize }, |
| 824 | 136usize, |
| 825 | concat!( |
| 826 | "Offset of field: ", |
| 827 | stringify!(sqlite3_io_methods), |
| 828 | "::", |
| 829 | stringify!(xFetch) |
| 830 | ) |
| 831 | ); |
| 832 | assert_eq!( |
| 833 | unsafe { &(*(::std::ptr::null::<sqlite3_io_methods>())).xUnfetch as *const _ as usize }, |
| 834 | 144usize, |
| 835 | concat!( |
| 836 | "Offset of field: ", |
| 837 | stringify!(sqlite3_io_methods), |
| 838 | "::", |
| 839 | stringify!(xUnfetch) |
| 840 | ) |
| 841 | ); |
| 842 | } |
| 843 | #[repr(C)] |
| 844 | #[derive(Debug, Copy, Clone)] |
| 845 | pub struct sqlite3_mutex { |
| 846 | _unused: [u8; 0], |
| 847 | } |
| 848 | #[repr(C)] |
| 849 | #[derive(Debug, Copy, Clone)] |
| 850 | pub struct sqlite3_api_routines { |
| 851 | _unused: [u8; 0], |
| 852 | } |
| 853 | pub type sqlite3_syscall_ptr = ::std::option::Option<unsafe extern "C" fn()>; |
| 854 | #[repr(C)] |
| 855 | #[derive(Debug, Copy, Clone)] |
| 856 | pub struct sqlite3_vfs { |
| 857 | pub iVersion: ::std::os::raw::c_int, |
| 858 | pub szOsFile: ::std::os::raw::c_int, |
| 859 | pub mxPathname: ::std::os::raw::c_int, |
| 860 | pub pNext: *mut sqlite3_vfs, |
| 861 | pub zName: *const ::std::os::raw::c_char, |
| 862 | pub pAppData: *mut ::std::os::raw::c_void, |
| 863 | pub xOpen: ::std::option::Option< |
| 864 | unsafe extern "C" fn( |
| 865 | arg1: *mut sqlite3_vfs, |
| 866 | zName: *const ::std::os::raw::c_char, |
| 867 | arg2: *mut sqlite3_file, |
| 868 | flags: ::std::os::raw::c_int, |
| 869 | pOutFlags: *mut ::std::os::raw::c_int, |
| 870 | ) -> ::std::os::raw::c_int, |
| 871 | >, |
| 872 | pub xDelete: ::std::option::Option< |
| 873 | unsafe extern "C" fn( |
| 874 | arg1: *mut sqlite3_vfs, |
| 875 | zName: *const ::std::os::raw::c_char, |
| 876 | syncDir: ::std::os::raw::c_int, |
| 877 | ) -> ::std::os::raw::c_int, |
| 878 | >, |
| 879 | pub xAccess: ::std::option::Option< |
| 880 | unsafe extern "C" fn( |
| 881 | arg1: *mut sqlite3_vfs, |
| 882 | zName: *const ::std::os::raw::c_char, |
| 883 | flags: ::std::os::raw::c_int, |
| 884 | pResOut: *mut ::std::os::raw::c_int, |
| 885 | ) -> ::std::os::raw::c_int, |
| 886 | >, |
| 887 | pub xFullPathname: ::std::option::Option< |
| 888 | unsafe extern "C" fn( |
| 889 | arg1: *mut sqlite3_vfs, |
| 890 | zName: *const ::std::os::raw::c_char, |
| 891 | nOut: ::std::os::raw::c_int, |
| 892 | zOut: *mut ::std::os::raw::c_char, |
| 893 | ) -> ::std::os::raw::c_int, |
| 894 | >, |
| 895 | pub xDlOpen: ::std::option::Option< |
| 896 | unsafe extern "C" fn( |
| 897 | arg1: *mut sqlite3_vfs, |
| 898 | zFilename: *const ::std::os::raw::c_char, |
| 899 | ) -> *mut ::std::os::raw::c_void, |
| 900 | >, |
| 901 | pub xDlError: ::std::option::Option< |
| 902 | unsafe extern "C" fn( |
| 903 | arg1: *mut sqlite3_vfs, |
| 904 | nByte: ::std::os::raw::c_int, |
| 905 | zErrMsg: *mut ::std::os::raw::c_char, |
| 906 | ), |
| 907 | >, |
| 908 | pub xDlSym: ::std::option::Option< |
| 909 | unsafe extern "C" fn( |
| 910 | arg1: *mut sqlite3_vfs, |
| 911 | arg2: *mut ::std::os::raw::c_void, |
| 912 | zSymbol: *const ::std::os::raw::c_char, |
| 913 | ) -> ::std::option::Option< |
| 914 | unsafe extern "C" fn( |
| 915 | arg1: *mut sqlite3_vfs, |
| 916 | arg2: *mut ::std::os::raw::c_void, |
| 917 | zSymbol: *const ::std::os::raw::c_char, |
| 918 | ), |
| 919 | >, |
| 920 | >, |
| 921 | pub xDlClose: ::std::option::Option< |
| 922 | unsafe extern "C" fn(arg1: *mut sqlite3_vfs, arg2: *mut ::std::os::raw::c_void), |
| 923 | >, |
| 924 | pub xRandomness: ::std::option::Option< |
| 925 | unsafe extern "C" fn( |
| 926 | arg1: *mut sqlite3_vfs, |
| 927 | nByte: ::std::os::raw::c_int, |
| 928 | zOut: *mut ::std::os::raw::c_char, |
| 929 | ) -> ::std::os::raw::c_int, |
| 930 | >, |
| 931 | pub xSleep: ::std::option::Option< |
| 932 | unsafe extern "C" fn( |
| 933 | arg1: *mut sqlite3_vfs, |
| 934 | microseconds: ::std::os::raw::c_int, |
| 935 | ) -> ::std::os::raw::c_int, |
| 936 | >, |
| 937 | pub xCurrentTime: ::std::option::Option< |
| 938 | unsafe extern "C" fn(arg1: *mut sqlite3_vfs, arg2: *mut f64) -> ::std::os::raw::c_int, |
| 939 | >, |
| 940 | pub xGetLastError: ::std::option::Option< |
| 941 | unsafe extern "C" fn( |
| 942 | arg1: *mut sqlite3_vfs, |
| 943 | arg2: ::std::os::raw::c_int, |
| 944 | arg3: *mut ::std::os::raw::c_char, |
| 945 | ) -> ::std::os::raw::c_int, |
| 946 | >, |
| 947 | pub xCurrentTimeInt64: ::std::option::Option< |
| 948 | unsafe extern "C" fn( |
| 949 | arg1: *mut sqlite3_vfs, |
| 950 | arg2: *mut sqlite3_int64, |
| 951 | ) -> ::std::os::raw::c_int, |
| 952 | >, |
| 953 | pub xSetSystemCall: ::std::option::Option< |
| 954 | unsafe extern "C" fn( |
| 955 | arg1: *mut sqlite3_vfs, |
| 956 | zName: *const ::std::os::raw::c_char, |
| 957 | arg2: sqlite3_syscall_ptr, |
| 958 | ) -> ::std::os::raw::c_int, |
| 959 | >, |
| 960 | pub xGetSystemCall: ::std::option::Option< |
| 961 | unsafe extern "C" fn( |
| 962 | arg1: *mut sqlite3_vfs, |
| 963 | zName: *const ::std::os::raw::c_char, |
| 964 | ) -> sqlite3_syscall_ptr, |
| 965 | >, |
| 966 | pub xNextSystemCall: ::std::option::Option< |
| 967 | unsafe extern "C" fn( |
| 968 | arg1: *mut sqlite3_vfs, |
| 969 | zName: *const ::std::os::raw::c_char, |
| 970 | ) -> *const ::std::os::raw::c_char, |
| 971 | >, |
| 972 | } |
| 973 | #[test] |
| 974 | fn bindgen_test_layout_sqlite3_vfs() { |
| 975 | assert_eq!( |
| 976 | ::std::mem::size_of::<sqlite3_vfs>(), |
| 977 | 168usize, |
| 978 | concat!("Size of: ", stringify!(sqlite3_vfs)) |
| 979 | ); |
| 980 | assert_eq!( |
| 981 | ::std::mem::align_of::<sqlite3_vfs>(), |
| 982 | 8usize, |
| 983 | concat!("Alignment of ", stringify!(sqlite3_vfs)) |
| 984 | ); |
| 985 | assert_eq!( |
| 986 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).iVersion as *const _ as usize }, |
| 987 | 0usize, |
| 988 | concat!( |
| 989 | "Offset of field: ", |
| 990 | stringify!(sqlite3_vfs), |
| 991 | "::", |
| 992 | stringify!(iVersion) |
| 993 | ) |
| 994 | ); |
| 995 | assert_eq!( |
| 996 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).szOsFile as *const _ as usize }, |
| 997 | 4usize, |
| 998 | concat!( |
| 999 | "Offset of field: ", |
| 1000 | stringify!(sqlite3_vfs), |
| 1001 | "::", |
| 1002 | stringify!(szOsFile) |
| 1003 | ) |
| 1004 | ); |
| 1005 | assert_eq!( |
| 1006 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).mxPathname as *const _ as usize }, |
| 1007 | 8usize, |
| 1008 | concat!( |
| 1009 | "Offset of field: ", |
| 1010 | stringify!(sqlite3_vfs), |
| 1011 | "::", |
| 1012 | stringify!(mxPathname) |
| 1013 | ) |
| 1014 | ); |
| 1015 | assert_eq!( |
| 1016 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).pNext as *const _ as usize }, |
| 1017 | 16usize, |
| 1018 | concat!( |
| 1019 | "Offset of field: ", |
| 1020 | stringify!(sqlite3_vfs), |
| 1021 | "::", |
| 1022 | stringify!(pNext) |
| 1023 | ) |
| 1024 | ); |
| 1025 | assert_eq!( |
| 1026 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).zName as *const _ as usize }, |
| 1027 | 24usize, |
| 1028 | concat!( |
| 1029 | "Offset of field: ", |
| 1030 | stringify!(sqlite3_vfs), |
| 1031 | "::", |
| 1032 | stringify!(zName) |
| 1033 | ) |
| 1034 | ); |
| 1035 | assert_eq!( |
| 1036 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).pAppData as *const _ as usize }, |
| 1037 | 32usize, |
| 1038 | concat!( |
| 1039 | "Offset of field: ", |
| 1040 | stringify!(sqlite3_vfs), |
| 1041 | "::", |
| 1042 | stringify!(pAppData) |
| 1043 | ) |
| 1044 | ); |
| 1045 | assert_eq!( |
| 1046 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xOpen as *const _ as usize }, |
| 1047 | 40usize, |
| 1048 | concat!( |
| 1049 | "Offset of field: ", |
| 1050 | stringify!(sqlite3_vfs), |
| 1051 | "::", |
| 1052 | stringify!(xOpen) |
| 1053 | ) |
| 1054 | ); |
| 1055 | assert_eq!( |
| 1056 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xDelete as *const _ as usize }, |
| 1057 | 48usize, |
| 1058 | concat!( |
| 1059 | "Offset of field: ", |
| 1060 | stringify!(sqlite3_vfs), |
| 1061 | "::", |
| 1062 | stringify!(xDelete) |
| 1063 | ) |
| 1064 | ); |
| 1065 | assert_eq!( |
| 1066 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xAccess as *const _ as usize }, |
| 1067 | 56usize, |
| 1068 | concat!( |
| 1069 | "Offset of field: ", |
| 1070 | stringify!(sqlite3_vfs), |
| 1071 | "::", |
| 1072 | stringify!(xAccess) |
| 1073 | ) |
| 1074 | ); |
| 1075 | assert_eq!( |
| 1076 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xFullPathname as *const _ as usize }, |
| 1077 | 64usize, |
| 1078 | concat!( |
| 1079 | "Offset of field: ", |
| 1080 | stringify!(sqlite3_vfs), |
| 1081 | "::", |
| 1082 | stringify!(xFullPathname) |
| 1083 | ) |
| 1084 | ); |
| 1085 | assert_eq!( |
| 1086 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xDlOpen as *const _ as usize }, |
| 1087 | 72usize, |
| 1088 | concat!( |
| 1089 | "Offset of field: ", |
| 1090 | stringify!(sqlite3_vfs), |
| 1091 | "::", |
| 1092 | stringify!(xDlOpen) |
| 1093 | ) |
| 1094 | ); |
| 1095 | assert_eq!( |
| 1096 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xDlError as *const _ as usize }, |
| 1097 | 80usize, |
| 1098 | concat!( |
| 1099 | "Offset of field: ", |
| 1100 | stringify!(sqlite3_vfs), |
| 1101 | "::", |
| 1102 | stringify!(xDlError) |
| 1103 | ) |
| 1104 | ); |
| 1105 | assert_eq!( |
| 1106 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xDlSym as *const _ as usize }, |
| 1107 | 88usize, |
| 1108 | concat!( |
| 1109 | "Offset of field: ", |
| 1110 | stringify!(sqlite3_vfs), |
| 1111 | "::", |
| 1112 | stringify!(xDlSym) |
| 1113 | ) |
| 1114 | ); |
| 1115 | assert_eq!( |
| 1116 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xDlClose as *const _ as usize }, |
| 1117 | 96usize, |
| 1118 | concat!( |
| 1119 | "Offset of field: ", |
| 1120 | stringify!(sqlite3_vfs), |
| 1121 | "::", |
| 1122 | stringify!(xDlClose) |
| 1123 | ) |
| 1124 | ); |
| 1125 | assert_eq!( |
| 1126 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xRandomness as *const _ as usize }, |
| 1127 | 104usize, |
| 1128 | concat!( |
| 1129 | "Offset of field: ", |
| 1130 | stringify!(sqlite3_vfs), |
| 1131 | "::", |
| 1132 | stringify!(xRandomness) |
| 1133 | ) |
| 1134 | ); |
| 1135 | assert_eq!( |
| 1136 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xSleep as *const _ as usize }, |
| 1137 | 112usize, |
| 1138 | concat!( |
| 1139 | "Offset of field: ", |
| 1140 | stringify!(sqlite3_vfs), |
| 1141 | "::", |
| 1142 | stringify!(xSleep) |
| 1143 | ) |
| 1144 | ); |
| 1145 | assert_eq!( |
| 1146 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xCurrentTime as *const _ as usize }, |
| 1147 | 120usize, |
| 1148 | concat!( |
| 1149 | "Offset of field: ", |
| 1150 | stringify!(sqlite3_vfs), |
| 1151 | "::", |
| 1152 | stringify!(xCurrentTime) |
| 1153 | ) |
| 1154 | ); |
| 1155 | assert_eq!( |
| 1156 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xGetLastError as *const _ as usize }, |
| 1157 | 128usize, |
| 1158 | concat!( |
| 1159 | "Offset of field: ", |
| 1160 | stringify!(sqlite3_vfs), |
| 1161 | "::", |
| 1162 | stringify!(xGetLastError) |
| 1163 | ) |
| 1164 | ); |
| 1165 | assert_eq!( |
| 1166 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xCurrentTimeInt64 as *const _ as usize }, |
| 1167 | 136usize, |
| 1168 | concat!( |
| 1169 | "Offset of field: ", |
| 1170 | stringify!(sqlite3_vfs), |
| 1171 | "::", |
| 1172 | stringify!(xCurrentTimeInt64) |
| 1173 | ) |
| 1174 | ); |
| 1175 | assert_eq!( |
| 1176 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xSetSystemCall as *const _ as usize }, |
| 1177 | 144usize, |
| 1178 | concat!( |
| 1179 | "Offset of field: ", |
| 1180 | stringify!(sqlite3_vfs), |
| 1181 | "::", |
| 1182 | stringify!(xSetSystemCall) |
| 1183 | ) |
| 1184 | ); |
| 1185 | assert_eq!( |
| 1186 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xGetSystemCall as *const _ as usize }, |
| 1187 | 152usize, |
| 1188 | concat!( |
| 1189 | "Offset of field: ", |
| 1190 | stringify!(sqlite3_vfs), |
| 1191 | "::", |
| 1192 | stringify!(xGetSystemCall) |
| 1193 | ) |
| 1194 | ); |
| 1195 | assert_eq!( |
| 1196 | unsafe { &(*(::std::ptr::null::<sqlite3_vfs>())).xNextSystemCall as *const _ as usize }, |
| 1197 | 160usize, |
| 1198 | concat!( |
| 1199 | "Offset of field: ", |
| 1200 | stringify!(sqlite3_vfs), |
| 1201 | "::", |
| 1202 | stringify!(xNextSystemCall) |
| 1203 | ) |
| 1204 | ); |
| 1205 | } |
| 1206 | extern "C" { |
| 1207 | pub fn sqlite3_initialize() -> ::std::os::raw::c_int; |
| 1208 | } |
| 1209 | extern "C" { |
| 1210 | pub fn sqlite3_shutdown() -> ::std::os::raw::c_int; |
| 1211 | } |
| 1212 | extern "C" { |
| 1213 | pub fn sqlite3_os_init() -> ::std::os::raw::c_int; |
| 1214 | } |
| 1215 | extern "C" { |
| 1216 | pub fn sqlite3_os_end() -> ::std::os::raw::c_int; |
| 1217 | } |
| 1218 | extern "C" { |
| 1219 | pub fn sqlite3_config(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; |
| 1220 | } |
| 1221 | extern "C" { |
| 1222 | pub fn sqlite3_db_config( |
| 1223 | arg1: *mut sqlite3, |
| 1224 | op: ::std::os::raw::c_int, |
| 1225 | ... |
| 1226 | ) -> ::std::os::raw::c_int; |
| 1227 | } |
| 1228 | #[repr(C)] |
| 1229 | #[derive(Debug, Copy, Clone)] |
| 1230 | pub struct sqlite3_mem_methods { |
| 1231 | pub xMalloc: ::std::option::Option< |
| 1232 | unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void, |
| 1233 | >, |
| 1234 | pub xFree: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1235 | pub xRealloc: ::std::option::Option< |
| 1236 | unsafe extern "C" fn( |
| 1237 | arg1: *mut ::std::os::raw::c_void, |
| 1238 | arg2: ::std::os::raw::c_int, |
| 1239 | ) -> *mut ::std::os::raw::c_void, |
| 1240 | >, |
| 1241 | pub xSize: ::std::option::Option< |
| 1242 | unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, |
| 1243 | >, |
| 1244 | pub xRoundup: ::std::option::Option< |
| 1245 | unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int, |
| 1246 | >, |
| 1247 | pub xInit: ::std::option::Option< |
| 1248 | unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, |
| 1249 | >, |
| 1250 | pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1251 | pub pAppData: *mut ::std::os::raw::c_void, |
| 1252 | } |
| 1253 | #[test] |
| 1254 | fn bindgen_test_layout_sqlite3_mem_methods() { |
| 1255 | assert_eq!( |
| 1256 | ::std::mem::size_of::<sqlite3_mem_methods>(), |
| 1257 | 64usize, |
| 1258 | concat!("Size of: ", stringify!(sqlite3_mem_methods)) |
| 1259 | ); |
| 1260 | assert_eq!( |
| 1261 | ::std::mem::align_of::<sqlite3_mem_methods>(), |
| 1262 | 8usize, |
| 1263 | concat!("Alignment of ", stringify!(sqlite3_mem_methods)) |
| 1264 | ); |
| 1265 | assert_eq!( |
| 1266 | unsafe { &(*(::std::ptr::null::<sqlite3_mem_methods>())).xMalloc as *const _ as usize }, |
| 1267 | 0usize, |
| 1268 | concat!( |
| 1269 | "Offset of field: ", |
| 1270 | stringify!(sqlite3_mem_methods), |
| 1271 | "::", |
| 1272 | stringify!(xMalloc) |
| 1273 | ) |
| 1274 | ); |
| 1275 | assert_eq!( |
| 1276 | unsafe { &(*(::std::ptr::null::<sqlite3_mem_methods>())).xFree as *const _ as usize }, |
| 1277 | 8usize, |
| 1278 | concat!( |
| 1279 | "Offset of field: ", |
| 1280 | stringify!(sqlite3_mem_methods), |
| 1281 | "::", |
| 1282 | stringify!(xFree) |
| 1283 | ) |
| 1284 | ); |
| 1285 | assert_eq!( |
| 1286 | unsafe { &(*(::std::ptr::null::<sqlite3_mem_methods>())).xRealloc as *const _ as usize }, |
| 1287 | 16usize, |
| 1288 | concat!( |
| 1289 | "Offset of field: ", |
| 1290 | stringify!(sqlite3_mem_methods), |
| 1291 | "::", |
| 1292 | stringify!(xRealloc) |
| 1293 | ) |
| 1294 | ); |
| 1295 | assert_eq!( |
| 1296 | unsafe { &(*(::std::ptr::null::<sqlite3_mem_methods>())).xSize as *const _ as usize }, |
| 1297 | 24usize, |
| 1298 | concat!( |
| 1299 | "Offset of field: ", |
| 1300 | stringify!(sqlite3_mem_methods), |
| 1301 | "::", |
| 1302 | stringify!(xSize) |
| 1303 | ) |
| 1304 | ); |
| 1305 | assert_eq!( |
| 1306 | unsafe { &(*(::std::ptr::null::<sqlite3_mem_methods>())).xRoundup as *const _ as usize }, |
| 1307 | 32usize, |
| 1308 | concat!( |
| 1309 | "Offset of field: ", |
| 1310 | stringify!(sqlite3_mem_methods), |
| 1311 | "::", |
| 1312 | stringify!(xRoundup) |
| 1313 | ) |
| 1314 | ); |
| 1315 | assert_eq!( |
| 1316 | unsafe { &(*(::std::ptr::null::<sqlite3_mem_methods>())).xInit as *const _ as usize }, |
| 1317 | 40usize, |
| 1318 | concat!( |
| 1319 | "Offset of field: ", |
| 1320 | stringify!(sqlite3_mem_methods), |
| 1321 | "::", |
| 1322 | stringify!(xInit) |
| 1323 | ) |
| 1324 | ); |
| 1325 | assert_eq!( |
| 1326 | unsafe { &(*(::std::ptr::null::<sqlite3_mem_methods>())).xShutdown as *const _ as usize }, |
| 1327 | 48usize, |
| 1328 | concat!( |
| 1329 | "Offset of field: ", |
| 1330 | stringify!(sqlite3_mem_methods), |
| 1331 | "::", |
| 1332 | stringify!(xShutdown) |
| 1333 | ) |
| 1334 | ); |
| 1335 | assert_eq!( |
| 1336 | unsafe { &(*(::std::ptr::null::<sqlite3_mem_methods>())).pAppData as *const _ as usize }, |
| 1337 | 56usize, |
| 1338 | concat!( |
| 1339 | "Offset of field: ", |
| 1340 | stringify!(sqlite3_mem_methods), |
| 1341 | "::", |
| 1342 | stringify!(pAppData) |
| 1343 | ) |
| 1344 | ); |
| 1345 | } |
| 1346 | extern "C" { |
| 1347 | pub fn sqlite3_extended_result_codes( |
| 1348 | arg1: *mut sqlite3, |
| 1349 | onoff: ::std::os::raw::c_int, |
| 1350 | ) -> ::std::os::raw::c_int; |
| 1351 | } |
| 1352 | extern "C" { |
| 1353 | pub fn sqlite3_last_insert_rowid(arg1: *mut sqlite3) -> sqlite3_int64; |
| 1354 | } |
| 1355 | extern "C" { |
| 1356 | pub fn sqlite3_set_last_insert_rowid(arg1: *mut sqlite3, arg2: sqlite3_int64); |
| 1357 | } |
| 1358 | extern "C" { |
| 1359 | pub fn sqlite3_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 1360 | } |
| 1361 | extern "C" { |
| 1362 | pub fn sqlite3_total_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 1363 | } |
| 1364 | extern "C" { |
| 1365 | pub fn sqlite3_interrupt(arg1: *mut sqlite3); |
| 1366 | } |
| 1367 | extern "C" { |
| 1368 | pub fn sqlite3_complete(sql: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; |
| 1369 | } |
| 1370 | extern "C" { |
| 1371 | pub fn sqlite3_complete16(sql: *const ::std::os::raw::c_void) -> ::std::os::raw::c_int; |
| 1372 | } |
| 1373 | extern "C" { |
| 1374 | pub fn sqlite3_busy_handler( |
| 1375 | arg1: *mut sqlite3, |
| 1376 | arg2: ::std::option::Option< |
| 1377 | unsafe extern "C" fn( |
| 1378 | arg1: *mut ::std::os::raw::c_void, |
| 1379 | arg2: ::std::os::raw::c_int, |
| 1380 | ) -> ::std::os::raw::c_int, |
| 1381 | >, |
| 1382 | arg3: *mut ::std::os::raw::c_void, |
| 1383 | ) -> ::std::os::raw::c_int; |
| 1384 | } |
| 1385 | extern "C" { |
| 1386 | pub fn sqlite3_busy_timeout( |
| 1387 | arg1: *mut sqlite3, |
| 1388 | ms: ::std::os::raw::c_int, |
| 1389 | ) -> ::std::os::raw::c_int; |
| 1390 | } |
| 1391 | extern "C" { |
| 1392 | pub fn sqlite3_get_table( |
| 1393 | db: *mut sqlite3, |
| 1394 | zSql: *const ::std::os::raw::c_char, |
| 1395 | pazResult: *mut *mut *mut ::std::os::raw::c_char, |
| 1396 | pnRow: *mut ::std::os::raw::c_int, |
| 1397 | pnColumn: *mut ::std::os::raw::c_int, |
| 1398 | pzErrmsg: *mut *mut ::std::os::raw::c_char, |
| 1399 | ) -> ::std::os::raw::c_int; |
| 1400 | } |
| 1401 | extern "C" { |
| 1402 | pub fn sqlite3_free_table(result: *mut *mut ::std::os::raw::c_char); |
| 1403 | } |
| 1404 | extern "C" { |
| 1405 | pub fn sqlite3_mprintf(arg1: *const ::std::os::raw::c_char, ...) |
| 1406 | -> *mut ::std::os::raw::c_char; |
| 1407 | } |
| 1408 | extern "C" { |
| 1409 | pub fn sqlite3_snprintf( |
| 1410 | arg1: ::std::os::raw::c_int, |
| 1411 | arg2: *mut ::std::os::raw::c_char, |
| 1412 | arg3: *const ::std::os::raw::c_char, |
| 1413 | ... |
| 1414 | ) -> *mut ::std::os::raw::c_char; |
| 1415 | } |
| 1416 | extern "C" { |
| 1417 | pub fn sqlite3_malloc(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void; |
| 1418 | } |
| 1419 | extern "C" { |
| 1420 | pub fn sqlite3_malloc64(arg1: sqlite3_uint64) -> *mut ::std::os::raw::c_void; |
| 1421 | } |
| 1422 | extern "C" { |
| 1423 | pub fn sqlite3_realloc( |
| 1424 | arg1: *mut ::std::os::raw::c_void, |
| 1425 | arg2: ::std::os::raw::c_int, |
| 1426 | ) -> *mut ::std::os::raw::c_void; |
| 1427 | } |
| 1428 | extern "C" { |
| 1429 | pub fn sqlite3_realloc64( |
| 1430 | arg1: *mut ::std::os::raw::c_void, |
| 1431 | arg2: sqlite3_uint64, |
| 1432 | ) -> *mut ::std::os::raw::c_void; |
| 1433 | } |
| 1434 | extern "C" { |
| 1435 | pub fn sqlite3_free(arg1: *mut ::std::os::raw::c_void); |
| 1436 | } |
| 1437 | extern "C" { |
| 1438 | pub fn sqlite3_msize(arg1: *mut ::std::os::raw::c_void) -> sqlite3_uint64; |
| 1439 | } |
| 1440 | extern "C" { |
| 1441 | pub fn sqlite3_memory_used() -> sqlite3_int64; |
| 1442 | } |
| 1443 | extern "C" { |
| 1444 | pub fn sqlite3_memory_highwater(resetFlag: ::std::os::raw::c_int) -> sqlite3_int64; |
| 1445 | } |
| 1446 | extern "C" { |
| 1447 | pub fn sqlite3_randomness(N: ::std::os::raw::c_int, P: *mut ::std::os::raw::c_void); |
| 1448 | } |
| 1449 | extern "C" { |
| 1450 | pub fn sqlite3_set_authorizer( |
| 1451 | arg1: *mut sqlite3, |
| 1452 | xAuth: ::std::option::Option< |
| 1453 | unsafe extern "C" fn( |
| 1454 | arg1: *mut ::std::os::raw::c_void, |
| 1455 | arg2: ::std::os::raw::c_int, |
| 1456 | arg3: *const ::std::os::raw::c_char, |
| 1457 | arg4: *const ::std::os::raw::c_char, |
| 1458 | arg5: *const ::std::os::raw::c_char, |
| 1459 | arg6: *const ::std::os::raw::c_char, |
| 1460 | ) -> ::std::os::raw::c_int, |
| 1461 | >, |
| 1462 | pUserData: *mut ::std::os::raw::c_void, |
| 1463 | ) -> ::std::os::raw::c_int; |
| 1464 | } |
| 1465 | extern "C" { |
| 1466 | pub fn sqlite3_trace( |
| 1467 | arg1: *mut sqlite3, |
| 1468 | xTrace: ::std::option::Option< |
| 1469 | unsafe extern "C" fn( |
| 1470 | arg1: *mut ::std::os::raw::c_void, |
| 1471 | arg2: *const ::std::os::raw::c_char, |
| 1472 | ), |
| 1473 | >, |
| 1474 | arg2: *mut ::std::os::raw::c_void, |
| 1475 | ) -> *mut ::std::os::raw::c_void; |
| 1476 | } |
| 1477 | extern "C" { |
| 1478 | pub fn sqlite3_profile( |
| 1479 | arg1: *mut sqlite3, |
| 1480 | xProfile: ::std::option::Option< |
| 1481 | unsafe extern "C" fn( |
| 1482 | arg1: *mut ::std::os::raw::c_void, |
| 1483 | arg2: *const ::std::os::raw::c_char, |
| 1484 | arg3: sqlite3_uint64, |
| 1485 | ), |
| 1486 | >, |
| 1487 | arg2: *mut ::std::os::raw::c_void, |
| 1488 | ) -> *mut ::std::os::raw::c_void; |
| 1489 | } |
| 1490 | extern "C" { |
| 1491 | pub fn sqlite3_trace_v2( |
| 1492 | arg1: *mut sqlite3, |
| 1493 | uMask: ::std::os::raw::c_uint, |
| 1494 | xCallback: ::std::option::Option< |
| 1495 | unsafe extern "C" fn( |
| 1496 | arg1: ::std::os::raw::c_uint, |
| 1497 | arg2: *mut ::std::os::raw::c_void, |
| 1498 | arg3: *mut ::std::os::raw::c_void, |
| 1499 | arg4: *mut ::std::os::raw::c_void, |
| 1500 | ) -> ::std::os::raw::c_int, |
| 1501 | >, |
| 1502 | pCtx: *mut ::std::os::raw::c_void, |
| 1503 | ) -> ::std::os::raw::c_int; |
| 1504 | } |
| 1505 | extern "C" { |
| 1506 | pub fn sqlite3_progress_handler( |
| 1507 | arg1: *mut sqlite3, |
| 1508 | arg2: ::std::os::raw::c_int, |
| 1509 | arg3: ::std::option::Option< |
| 1510 | unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, |
| 1511 | >, |
| 1512 | arg4: *mut ::std::os::raw::c_void, |
| 1513 | ); |
| 1514 | } |
| 1515 | extern "C" { |
| 1516 | pub fn sqlite3_open( |
| 1517 | filename: *const ::std::os::raw::c_char, |
| 1518 | ppDb: *mut *mut sqlite3, |
| 1519 | ) -> ::std::os::raw::c_int; |
| 1520 | } |
| 1521 | extern "C" { |
| 1522 | pub fn sqlite3_open16( |
| 1523 | filename: *const ::std::os::raw::c_void, |
| 1524 | ppDb: *mut *mut sqlite3, |
| 1525 | ) -> ::std::os::raw::c_int; |
| 1526 | } |
| 1527 | extern "C" { |
| 1528 | pub fn sqlite3_open_v2( |
| 1529 | filename: *const ::std::os::raw::c_char, |
| 1530 | ppDb: *mut *mut sqlite3, |
| 1531 | flags: ::std::os::raw::c_int, |
| 1532 | zVfs: *const ::std::os::raw::c_char, |
| 1533 | ) -> ::std::os::raw::c_int; |
| 1534 | } |
| 1535 | extern "C" { |
| 1536 | pub fn sqlite3_uri_parameter( |
| 1537 | zFilename: *const ::std::os::raw::c_char, |
| 1538 | zParam: *const ::std::os::raw::c_char, |
| 1539 | ) -> *const ::std::os::raw::c_char; |
| 1540 | } |
| 1541 | extern "C" { |
| 1542 | pub fn sqlite3_uri_boolean( |
| 1543 | zFile: *const ::std::os::raw::c_char, |
| 1544 | zParam: *const ::std::os::raw::c_char, |
| 1545 | bDefault: ::std::os::raw::c_int, |
| 1546 | ) -> ::std::os::raw::c_int; |
| 1547 | } |
| 1548 | extern "C" { |
| 1549 | pub fn sqlite3_uri_int64( |
| 1550 | arg1: *const ::std::os::raw::c_char, |
| 1551 | arg2: *const ::std::os::raw::c_char, |
| 1552 | arg3: sqlite3_int64, |
| 1553 | ) -> sqlite3_int64; |
| 1554 | } |
| 1555 | extern "C" { |
| 1556 | pub fn sqlite3_uri_key( |
| 1557 | zFilename: *const ::std::os::raw::c_char, |
| 1558 | N: ::std::os::raw::c_int, |
| 1559 | ) -> *const ::std::os::raw::c_char; |
| 1560 | } |
| 1561 | extern "C" { |
| 1562 | pub fn sqlite3_filename_database( |
| 1563 | arg1: *const ::std::os::raw::c_char, |
| 1564 | ) -> *const ::std::os::raw::c_char; |
| 1565 | } |
| 1566 | extern "C" { |
| 1567 | pub fn sqlite3_filename_journal( |
| 1568 | arg1: *const ::std::os::raw::c_char, |
| 1569 | ) -> *const ::std::os::raw::c_char; |
| 1570 | } |
| 1571 | extern "C" { |
| 1572 | pub fn sqlite3_filename_wal( |
| 1573 | arg1: *const ::std::os::raw::c_char, |
| 1574 | ) -> *const ::std::os::raw::c_char; |
| 1575 | } |
| 1576 | extern "C" { |
| 1577 | pub fn sqlite3_database_file_object(arg1: *const ::std::os::raw::c_char) -> *mut sqlite3_file; |
| 1578 | } |
| 1579 | extern "C" { |
| 1580 | pub fn sqlite3_create_filename( |
| 1581 | zDatabase: *const ::std::os::raw::c_char, |
| 1582 | zJournal: *const ::std::os::raw::c_char, |
| 1583 | zWal: *const ::std::os::raw::c_char, |
| 1584 | nParam: ::std::os::raw::c_int, |
| 1585 | azParam: *mut *const ::std::os::raw::c_char, |
| 1586 | ) -> *mut ::std::os::raw::c_char; |
| 1587 | } |
| 1588 | extern "C" { |
| 1589 | pub fn sqlite3_free_filename(arg1: *mut ::std::os::raw::c_char); |
| 1590 | } |
| 1591 | extern "C" { |
| 1592 | pub fn sqlite3_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int; |
| 1593 | } |
| 1594 | extern "C" { |
| 1595 | pub fn sqlite3_extended_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int; |
| 1596 | } |
| 1597 | extern "C" { |
| 1598 | pub fn sqlite3_errmsg(arg1: *mut sqlite3) -> *const ::std::os::raw::c_char; |
| 1599 | } |
| 1600 | extern "C" { |
| 1601 | pub fn sqlite3_errmsg16(arg1: *mut sqlite3) -> *const ::std::os::raw::c_void; |
| 1602 | } |
| 1603 | extern "C" { |
| 1604 | pub fn sqlite3_errstr(arg1: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; |
| 1605 | } |
| 1606 | #[repr(C)] |
| 1607 | #[derive(Debug, Copy, Clone)] |
| 1608 | pub struct sqlite3_stmt { |
| 1609 | _unused: [u8; 0], |
| 1610 | } |
| 1611 | extern "C" { |
| 1612 | pub fn sqlite3_limit( |
| 1613 | arg1: *mut sqlite3, |
| 1614 | id: ::std::os::raw::c_int, |
| 1615 | newVal: ::std::os::raw::c_int, |
| 1616 | ) -> ::std::os::raw::c_int; |
| 1617 | } |
| 1618 | extern "C" { |
| 1619 | pub fn sqlite3_prepare( |
| 1620 | db: *mut sqlite3, |
| 1621 | zSql: *const ::std::os::raw::c_char, |
| 1622 | nByte: ::std::os::raw::c_int, |
| 1623 | ppStmt: *mut *mut sqlite3_stmt, |
| 1624 | pzTail: *mut *const ::std::os::raw::c_char, |
| 1625 | ) -> ::std::os::raw::c_int; |
| 1626 | } |
| 1627 | extern "C" { |
| 1628 | pub fn sqlite3_prepare_v2( |
| 1629 | db: *mut sqlite3, |
| 1630 | zSql: *const ::std::os::raw::c_char, |
| 1631 | nByte: ::std::os::raw::c_int, |
| 1632 | ppStmt: *mut *mut sqlite3_stmt, |
| 1633 | pzTail: *mut *const ::std::os::raw::c_char, |
| 1634 | ) -> ::std::os::raw::c_int; |
| 1635 | } |
| 1636 | extern "C" { |
| 1637 | pub fn sqlite3_prepare_v3( |
| 1638 | db: *mut sqlite3, |
| 1639 | zSql: *const ::std::os::raw::c_char, |
| 1640 | nByte: ::std::os::raw::c_int, |
| 1641 | prepFlags: ::std::os::raw::c_uint, |
| 1642 | ppStmt: *mut *mut sqlite3_stmt, |
| 1643 | pzTail: *mut *const ::std::os::raw::c_char, |
| 1644 | ) -> ::std::os::raw::c_int; |
| 1645 | } |
| 1646 | extern "C" { |
| 1647 | pub fn sqlite3_prepare16( |
| 1648 | db: *mut sqlite3, |
| 1649 | zSql: *const ::std::os::raw::c_void, |
| 1650 | nByte: ::std::os::raw::c_int, |
| 1651 | ppStmt: *mut *mut sqlite3_stmt, |
| 1652 | pzTail: *mut *const ::std::os::raw::c_void, |
| 1653 | ) -> ::std::os::raw::c_int; |
| 1654 | } |
| 1655 | extern "C" { |
| 1656 | pub fn sqlite3_prepare16_v2( |
| 1657 | db: *mut sqlite3, |
| 1658 | zSql: *const ::std::os::raw::c_void, |
| 1659 | nByte: ::std::os::raw::c_int, |
| 1660 | ppStmt: *mut *mut sqlite3_stmt, |
| 1661 | pzTail: *mut *const ::std::os::raw::c_void, |
| 1662 | ) -> ::std::os::raw::c_int; |
| 1663 | } |
| 1664 | extern "C" { |
| 1665 | pub fn sqlite3_prepare16_v3( |
| 1666 | db: *mut sqlite3, |
| 1667 | zSql: *const ::std::os::raw::c_void, |
| 1668 | nByte: ::std::os::raw::c_int, |
| 1669 | prepFlags: ::std::os::raw::c_uint, |
| 1670 | ppStmt: *mut *mut sqlite3_stmt, |
| 1671 | pzTail: *mut *const ::std::os::raw::c_void, |
| 1672 | ) -> ::std::os::raw::c_int; |
| 1673 | } |
| 1674 | extern "C" { |
| 1675 | pub fn sqlite3_sql(pStmt: *mut sqlite3_stmt) -> *const ::std::os::raw::c_char; |
| 1676 | } |
| 1677 | extern "C" { |
| 1678 | pub fn sqlite3_expanded_sql(pStmt: *mut sqlite3_stmt) -> *mut ::std::os::raw::c_char; |
| 1679 | } |
| 1680 | extern "C" { |
| 1681 | pub fn sqlite3_normalized_sql(pStmt: *mut sqlite3_stmt) -> *const ::std::os::raw::c_char; |
| 1682 | } |
| 1683 | extern "C" { |
| 1684 | pub fn sqlite3_stmt_readonly(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1685 | } |
| 1686 | extern "C" { |
| 1687 | pub fn sqlite3_stmt_isexplain(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1688 | } |
| 1689 | extern "C" { |
| 1690 | pub fn sqlite3_stmt_busy(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1691 | } |
| 1692 | #[repr(C)] |
| 1693 | #[derive(Debug, Copy, Clone)] |
| 1694 | pub struct sqlite3_value { |
| 1695 | _unused: [u8; 0], |
| 1696 | } |
| 1697 | #[repr(C)] |
| 1698 | #[derive(Debug, Copy, Clone)] |
| 1699 | pub struct sqlite3_context { |
| 1700 | _unused: [u8; 0], |
| 1701 | } |
| 1702 | extern "C" { |
| 1703 | pub fn sqlite3_bind_blob( |
| 1704 | arg1: *mut sqlite3_stmt, |
| 1705 | arg2: ::std::os::raw::c_int, |
| 1706 | arg3: *const ::std::os::raw::c_void, |
| 1707 | n: ::std::os::raw::c_int, |
| 1708 | arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1709 | ) -> ::std::os::raw::c_int; |
| 1710 | } |
| 1711 | extern "C" { |
| 1712 | pub fn sqlite3_bind_blob64( |
| 1713 | arg1: *mut sqlite3_stmt, |
| 1714 | arg2: ::std::os::raw::c_int, |
| 1715 | arg3: *const ::std::os::raw::c_void, |
| 1716 | arg4: sqlite3_uint64, |
| 1717 | arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1718 | ) -> ::std::os::raw::c_int; |
| 1719 | } |
| 1720 | extern "C" { |
| 1721 | pub fn sqlite3_bind_double( |
| 1722 | arg1: *mut sqlite3_stmt, |
| 1723 | arg2: ::std::os::raw::c_int, |
| 1724 | arg3: f64, |
| 1725 | ) -> ::std::os::raw::c_int; |
| 1726 | } |
| 1727 | extern "C" { |
| 1728 | pub fn sqlite3_bind_int( |
| 1729 | arg1: *mut sqlite3_stmt, |
| 1730 | arg2: ::std::os::raw::c_int, |
| 1731 | arg3: ::std::os::raw::c_int, |
| 1732 | ) -> ::std::os::raw::c_int; |
| 1733 | } |
| 1734 | extern "C" { |
| 1735 | pub fn sqlite3_bind_int64( |
| 1736 | arg1: *mut sqlite3_stmt, |
| 1737 | arg2: ::std::os::raw::c_int, |
| 1738 | arg3: sqlite3_int64, |
| 1739 | ) -> ::std::os::raw::c_int; |
| 1740 | } |
| 1741 | extern "C" { |
| 1742 | pub fn sqlite3_bind_null( |
| 1743 | arg1: *mut sqlite3_stmt, |
| 1744 | arg2: ::std::os::raw::c_int, |
| 1745 | ) -> ::std::os::raw::c_int; |
| 1746 | } |
| 1747 | extern "C" { |
| 1748 | pub fn sqlite3_bind_text( |
| 1749 | arg1: *mut sqlite3_stmt, |
| 1750 | arg2: ::std::os::raw::c_int, |
| 1751 | arg3: *const ::std::os::raw::c_char, |
| 1752 | arg4: ::std::os::raw::c_int, |
| 1753 | arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1754 | ) -> ::std::os::raw::c_int; |
| 1755 | } |
| 1756 | extern "C" { |
| 1757 | pub fn sqlite3_bind_text16( |
| 1758 | arg1: *mut sqlite3_stmt, |
| 1759 | arg2: ::std::os::raw::c_int, |
| 1760 | arg3: *const ::std::os::raw::c_void, |
| 1761 | arg4: ::std::os::raw::c_int, |
| 1762 | arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1763 | ) -> ::std::os::raw::c_int; |
| 1764 | } |
| 1765 | extern "C" { |
| 1766 | pub fn sqlite3_bind_text64( |
| 1767 | arg1: *mut sqlite3_stmt, |
| 1768 | arg2: ::std::os::raw::c_int, |
| 1769 | arg3: *const ::std::os::raw::c_char, |
| 1770 | arg4: sqlite3_uint64, |
| 1771 | arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1772 | encoding: ::std::os::raw::c_uchar, |
| 1773 | ) -> ::std::os::raw::c_int; |
| 1774 | } |
| 1775 | extern "C" { |
| 1776 | pub fn sqlite3_bind_value( |
| 1777 | arg1: *mut sqlite3_stmt, |
| 1778 | arg2: ::std::os::raw::c_int, |
| 1779 | arg3: *const sqlite3_value, |
| 1780 | ) -> ::std::os::raw::c_int; |
| 1781 | } |
| 1782 | extern "C" { |
| 1783 | pub fn sqlite3_bind_pointer( |
| 1784 | arg1: *mut sqlite3_stmt, |
| 1785 | arg2: ::std::os::raw::c_int, |
| 1786 | arg3: *mut ::std::os::raw::c_void, |
| 1787 | arg4: *const ::std::os::raw::c_char, |
| 1788 | arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1789 | ) -> ::std::os::raw::c_int; |
| 1790 | } |
| 1791 | extern "C" { |
| 1792 | pub fn sqlite3_bind_zeroblob( |
| 1793 | arg1: *mut sqlite3_stmt, |
| 1794 | arg2: ::std::os::raw::c_int, |
| 1795 | n: ::std::os::raw::c_int, |
| 1796 | ) -> ::std::os::raw::c_int; |
| 1797 | } |
| 1798 | extern "C" { |
| 1799 | pub fn sqlite3_bind_zeroblob64( |
| 1800 | arg1: *mut sqlite3_stmt, |
| 1801 | arg2: ::std::os::raw::c_int, |
| 1802 | arg3: sqlite3_uint64, |
| 1803 | ) -> ::std::os::raw::c_int; |
| 1804 | } |
| 1805 | extern "C" { |
| 1806 | pub fn sqlite3_bind_parameter_count(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1807 | } |
| 1808 | extern "C" { |
| 1809 | pub fn sqlite3_bind_parameter_name( |
| 1810 | arg1: *mut sqlite3_stmt, |
| 1811 | arg2: ::std::os::raw::c_int, |
| 1812 | ) -> *const ::std::os::raw::c_char; |
| 1813 | } |
| 1814 | extern "C" { |
| 1815 | pub fn sqlite3_bind_parameter_index( |
| 1816 | arg1: *mut sqlite3_stmt, |
| 1817 | zName: *const ::std::os::raw::c_char, |
| 1818 | ) -> ::std::os::raw::c_int; |
| 1819 | } |
| 1820 | extern "C" { |
| 1821 | pub fn sqlite3_clear_bindings(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1822 | } |
| 1823 | extern "C" { |
| 1824 | pub fn sqlite3_column_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1825 | } |
| 1826 | extern "C" { |
| 1827 | pub fn sqlite3_column_name( |
| 1828 | arg1: *mut sqlite3_stmt, |
| 1829 | N: ::std::os::raw::c_int, |
| 1830 | ) -> *const ::std::os::raw::c_char; |
| 1831 | } |
| 1832 | extern "C" { |
| 1833 | pub fn sqlite3_column_name16( |
| 1834 | arg1: *mut sqlite3_stmt, |
| 1835 | N: ::std::os::raw::c_int, |
| 1836 | ) -> *const ::std::os::raw::c_void; |
| 1837 | } |
| 1838 | extern "C" { |
| 1839 | pub fn sqlite3_column_database_name( |
| 1840 | arg1: *mut sqlite3_stmt, |
| 1841 | arg2: ::std::os::raw::c_int, |
| 1842 | ) -> *const ::std::os::raw::c_char; |
| 1843 | } |
| 1844 | extern "C" { |
| 1845 | pub fn sqlite3_column_database_name16( |
| 1846 | arg1: *mut sqlite3_stmt, |
| 1847 | arg2: ::std::os::raw::c_int, |
| 1848 | ) -> *const ::std::os::raw::c_void; |
| 1849 | } |
| 1850 | extern "C" { |
| 1851 | pub fn sqlite3_column_table_name( |
| 1852 | arg1: *mut sqlite3_stmt, |
| 1853 | arg2: ::std::os::raw::c_int, |
| 1854 | ) -> *const ::std::os::raw::c_char; |
| 1855 | } |
| 1856 | extern "C" { |
| 1857 | pub fn sqlite3_column_table_name16( |
| 1858 | arg1: *mut sqlite3_stmt, |
| 1859 | arg2: ::std::os::raw::c_int, |
| 1860 | ) -> *const ::std::os::raw::c_void; |
| 1861 | } |
| 1862 | extern "C" { |
| 1863 | pub fn sqlite3_column_origin_name( |
| 1864 | arg1: *mut sqlite3_stmt, |
| 1865 | arg2: ::std::os::raw::c_int, |
| 1866 | ) -> *const ::std::os::raw::c_char; |
| 1867 | } |
| 1868 | extern "C" { |
| 1869 | pub fn sqlite3_column_origin_name16( |
| 1870 | arg1: *mut sqlite3_stmt, |
| 1871 | arg2: ::std::os::raw::c_int, |
| 1872 | ) -> *const ::std::os::raw::c_void; |
| 1873 | } |
| 1874 | extern "C" { |
| 1875 | pub fn sqlite3_column_decltype( |
| 1876 | arg1: *mut sqlite3_stmt, |
| 1877 | arg2: ::std::os::raw::c_int, |
| 1878 | ) -> *const ::std::os::raw::c_char; |
| 1879 | } |
| 1880 | extern "C" { |
| 1881 | pub fn sqlite3_column_decltype16( |
| 1882 | arg1: *mut sqlite3_stmt, |
| 1883 | arg2: ::std::os::raw::c_int, |
| 1884 | ) -> *const ::std::os::raw::c_void; |
| 1885 | } |
| 1886 | extern "C" { |
| 1887 | pub fn sqlite3_step(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1888 | } |
| 1889 | extern "C" { |
| 1890 | pub fn sqlite3_data_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1891 | } |
| 1892 | extern "C" { |
| 1893 | pub fn sqlite3_column_blob( |
| 1894 | arg1: *mut sqlite3_stmt, |
| 1895 | iCol: ::std::os::raw::c_int, |
| 1896 | ) -> *const ::std::os::raw::c_void; |
| 1897 | } |
| 1898 | extern "C" { |
| 1899 | pub fn sqlite3_column_double(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> f64; |
| 1900 | } |
| 1901 | extern "C" { |
| 1902 | pub fn sqlite3_column_int( |
| 1903 | arg1: *mut sqlite3_stmt, |
| 1904 | iCol: ::std::os::raw::c_int, |
| 1905 | ) -> ::std::os::raw::c_int; |
| 1906 | } |
| 1907 | extern "C" { |
| 1908 | pub fn sqlite3_column_int64( |
| 1909 | arg1: *mut sqlite3_stmt, |
| 1910 | iCol: ::std::os::raw::c_int, |
| 1911 | ) -> sqlite3_int64; |
| 1912 | } |
| 1913 | extern "C" { |
| 1914 | pub fn sqlite3_column_text( |
| 1915 | arg1: *mut sqlite3_stmt, |
| 1916 | iCol: ::std::os::raw::c_int, |
| 1917 | ) -> *const ::std::os::raw::c_uchar; |
| 1918 | } |
| 1919 | extern "C" { |
| 1920 | pub fn sqlite3_column_text16( |
| 1921 | arg1: *mut sqlite3_stmt, |
| 1922 | iCol: ::std::os::raw::c_int, |
| 1923 | ) -> *const ::std::os::raw::c_void; |
| 1924 | } |
| 1925 | extern "C" { |
| 1926 | pub fn sqlite3_column_value( |
| 1927 | arg1: *mut sqlite3_stmt, |
| 1928 | iCol: ::std::os::raw::c_int, |
| 1929 | ) -> *mut sqlite3_value; |
| 1930 | } |
| 1931 | extern "C" { |
| 1932 | pub fn sqlite3_column_bytes( |
| 1933 | arg1: *mut sqlite3_stmt, |
| 1934 | iCol: ::std::os::raw::c_int, |
| 1935 | ) -> ::std::os::raw::c_int; |
| 1936 | } |
| 1937 | extern "C" { |
| 1938 | pub fn sqlite3_column_bytes16( |
| 1939 | arg1: *mut sqlite3_stmt, |
| 1940 | iCol: ::std::os::raw::c_int, |
| 1941 | ) -> ::std::os::raw::c_int; |
| 1942 | } |
| 1943 | extern "C" { |
| 1944 | pub fn sqlite3_column_type( |
| 1945 | arg1: *mut sqlite3_stmt, |
| 1946 | iCol: ::std::os::raw::c_int, |
| 1947 | ) -> ::std::os::raw::c_int; |
| 1948 | } |
| 1949 | extern "C" { |
| 1950 | pub fn sqlite3_finalize(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1951 | } |
| 1952 | extern "C" { |
| 1953 | pub fn sqlite3_reset(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1954 | } |
| 1955 | extern "C" { |
| 1956 | pub fn sqlite3_create_function( |
| 1957 | db: *mut sqlite3, |
| 1958 | zFunctionName: *const ::std::os::raw::c_char, |
| 1959 | nArg: ::std::os::raw::c_int, |
| 1960 | eTextRep: ::std::os::raw::c_int, |
| 1961 | pApp: *mut ::std::os::raw::c_void, |
| 1962 | xFunc: ::std::option::Option< |
| 1963 | unsafe extern "C" fn( |
| 1964 | arg1: *mut sqlite3_context, |
| 1965 | arg2: ::std::os::raw::c_int, |
| 1966 | arg3: *mut *mut sqlite3_value, |
| 1967 | ), |
| 1968 | >, |
| 1969 | xStep: ::std::option::Option< |
| 1970 | unsafe extern "C" fn( |
| 1971 | arg1: *mut sqlite3_context, |
| 1972 | arg2: ::std::os::raw::c_int, |
| 1973 | arg3: *mut *mut sqlite3_value, |
| 1974 | ), |
| 1975 | >, |
| 1976 | xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>, |
| 1977 | ) -> ::std::os::raw::c_int; |
| 1978 | } |
| 1979 | extern "C" { |
| 1980 | pub fn sqlite3_create_function16( |
| 1981 | db: *mut sqlite3, |
| 1982 | zFunctionName: *const ::std::os::raw::c_void, |
| 1983 | nArg: ::std::os::raw::c_int, |
| 1984 | eTextRep: ::std::os::raw::c_int, |
| 1985 | pApp: *mut ::std::os::raw::c_void, |
| 1986 | xFunc: ::std::option::Option< |
| 1987 | unsafe extern "C" fn( |
| 1988 | arg1: *mut sqlite3_context, |
| 1989 | arg2: ::std::os::raw::c_int, |
| 1990 | arg3: *mut *mut sqlite3_value, |
| 1991 | ), |
| 1992 | >, |
| 1993 | xStep: ::std::option::Option< |
| 1994 | unsafe extern "C" fn( |
| 1995 | arg1: *mut sqlite3_context, |
| 1996 | arg2: ::std::os::raw::c_int, |
| 1997 | arg3: *mut *mut sqlite3_value, |
| 1998 | ), |
| 1999 | >, |
| 2000 | xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>, |
| 2001 | ) -> ::std::os::raw::c_int; |
| 2002 | } |
| 2003 | extern "C" { |
| 2004 | pub fn sqlite3_create_function_v2( |
| 2005 | db: *mut sqlite3, |
| 2006 | zFunctionName: *const ::std::os::raw::c_char, |
| 2007 | nArg: ::std::os::raw::c_int, |
| 2008 | eTextRep: ::std::os::raw::c_int, |
| 2009 | pApp: *mut ::std::os::raw::c_void, |
| 2010 | xFunc: ::std::option::Option< |
| 2011 | unsafe extern "C" fn( |
| 2012 | arg1: *mut sqlite3_context, |
| 2013 | arg2: ::std::os::raw::c_int, |
| 2014 | arg3: *mut *mut sqlite3_value, |
| 2015 | ), |
| 2016 | >, |
| 2017 | xStep: ::std::option::Option< |
| 2018 | unsafe extern "C" fn( |
| 2019 | arg1: *mut sqlite3_context, |
| 2020 | arg2: ::std::os::raw::c_int, |
| 2021 | arg3: *mut *mut sqlite3_value, |
| 2022 | ), |
| 2023 | >, |
| 2024 | xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>, |
| 2025 | xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2026 | ) -> ::std::os::raw::c_int; |
| 2027 | } |
| 2028 | extern "C" { |
| 2029 | pub fn sqlite3_create_window_function( |
| 2030 | db: *mut sqlite3, |
| 2031 | zFunctionName: *const ::std::os::raw::c_char, |
| 2032 | nArg: ::std::os::raw::c_int, |
| 2033 | eTextRep: ::std::os::raw::c_int, |
| 2034 | pApp: *mut ::std::os::raw::c_void, |
| 2035 | xStep: ::std::option::Option< |
| 2036 | unsafe extern "C" fn( |
| 2037 | arg1: *mut sqlite3_context, |
| 2038 | arg2: ::std::os::raw::c_int, |
| 2039 | arg3: *mut *mut sqlite3_value, |
| 2040 | ), |
| 2041 | >, |
| 2042 | xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>, |
| 2043 | xValue: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>, |
| 2044 | xInverse: ::std::option::Option< |
| 2045 | unsafe extern "C" fn( |
| 2046 | arg1: *mut sqlite3_context, |
| 2047 | arg2: ::std::os::raw::c_int, |
| 2048 | arg3: *mut *mut sqlite3_value, |
| 2049 | ), |
| 2050 | >, |
| 2051 | xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2052 | ) -> ::std::os::raw::c_int; |
| 2053 | } |
| 2054 | extern "C" { |
| 2055 | pub fn sqlite3_aggregate_count(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int; |
| 2056 | } |
| 2057 | extern "C" { |
| 2058 | pub fn sqlite3_expired(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 2059 | } |
| 2060 | extern "C" { |
| 2061 | pub fn sqlite3_transfer_bindings( |
| 2062 | arg1: *mut sqlite3_stmt, |
| 2063 | arg2: *mut sqlite3_stmt, |
| 2064 | ) -> ::std::os::raw::c_int; |
| 2065 | } |
| 2066 | extern "C" { |
| 2067 | pub fn sqlite3_global_recover() -> ::std::os::raw::c_int; |
| 2068 | } |
| 2069 | extern "C" { |
| 2070 | pub fn sqlite3_thread_cleanup(); |
| 2071 | } |
| 2072 | extern "C" { |
| 2073 | pub fn sqlite3_memory_alarm( |
| 2074 | arg1: ::std::option::Option< |
| 2075 | unsafe extern "C" fn( |
| 2076 | arg1: *mut ::std::os::raw::c_void, |
| 2077 | arg2: sqlite3_int64, |
| 2078 | arg3: ::std::os::raw::c_int, |
| 2079 | ), |
| 2080 | >, |
| 2081 | arg2: *mut ::std::os::raw::c_void, |
| 2082 | arg3: sqlite3_int64, |
| 2083 | ) -> ::std::os::raw::c_int; |
| 2084 | } |
| 2085 | extern "C" { |
| 2086 | pub fn sqlite3_value_blob(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void; |
| 2087 | } |
| 2088 | extern "C" { |
| 2089 | pub fn sqlite3_value_double(arg1: *mut sqlite3_value) -> f64; |
| 2090 | } |
| 2091 | extern "C" { |
| 2092 | pub fn sqlite3_value_int(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; |
| 2093 | } |
| 2094 | extern "C" { |
| 2095 | pub fn sqlite3_value_int64(arg1: *mut sqlite3_value) -> sqlite3_int64; |
| 2096 | } |
| 2097 | extern "C" { |
| 2098 | pub fn sqlite3_value_pointer( |
| 2099 | arg1: *mut sqlite3_value, |
| 2100 | arg2: *const ::std::os::raw::c_char, |
| 2101 | ) -> *mut ::std::os::raw::c_void; |
| 2102 | } |
| 2103 | extern "C" { |
| 2104 | pub fn sqlite3_value_text(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_uchar; |
| 2105 | } |
| 2106 | extern "C" { |
| 2107 | pub fn sqlite3_value_text16(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void; |
| 2108 | } |
| 2109 | extern "C" { |
| 2110 | pub fn sqlite3_value_text16le(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void; |
| 2111 | } |
| 2112 | extern "C" { |
| 2113 | pub fn sqlite3_value_text16be(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void; |
| 2114 | } |
| 2115 | extern "C" { |
| 2116 | pub fn sqlite3_value_bytes(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; |
| 2117 | } |
| 2118 | extern "C" { |
| 2119 | pub fn sqlite3_value_bytes16(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; |
| 2120 | } |
| 2121 | extern "C" { |
| 2122 | pub fn sqlite3_value_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; |
| 2123 | } |
| 2124 | extern "C" { |
| 2125 | pub fn sqlite3_value_numeric_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; |
| 2126 | } |
| 2127 | extern "C" { |
| 2128 | pub fn sqlite3_value_nochange(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; |
| 2129 | } |
| 2130 | extern "C" { |
| 2131 | pub fn sqlite3_value_frombind(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; |
| 2132 | } |
| 2133 | extern "C" { |
| 2134 | pub fn sqlite3_value_subtype(arg1: *mut sqlite3_value) -> ::std::os::raw::c_uint; |
| 2135 | } |
| 2136 | extern "C" { |
| 2137 | pub fn sqlite3_value_dup(arg1: *const sqlite3_value) -> *mut sqlite3_value; |
| 2138 | } |
| 2139 | extern "C" { |
| 2140 | pub fn sqlite3_value_free(arg1: *mut sqlite3_value); |
| 2141 | } |
| 2142 | extern "C" { |
| 2143 | pub fn sqlite3_aggregate_context( |
| 2144 | arg1: *mut sqlite3_context, |
| 2145 | nBytes: ::std::os::raw::c_int, |
| 2146 | ) -> *mut ::std::os::raw::c_void; |
| 2147 | } |
| 2148 | extern "C" { |
| 2149 | pub fn sqlite3_user_data(arg1: *mut sqlite3_context) -> *mut ::std::os::raw::c_void; |
| 2150 | } |
| 2151 | extern "C" { |
| 2152 | pub fn sqlite3_context_db_handle(arg1: *mut sqlite3_context) -> *mut sqlite3; |
| 2153 | } |
| 2154 | extern "C" { |
| 2155 | pub fn sqlite3_get_auxdata( |
| 2156 | arg1: *mut sqlite3_context, |
| 2157 | N: ::std::os::raw::c_int, |
| 2158 | ) -> *mut ::std::os::raw::c_void; |
| 2159 | } |
| 2160 | extern "C" { |
| 2161 | pub fn sqlite3_set_auxdata( |
| 2162 | arg1: *mut sqlite3_context, |
| 2163 | N: ::std::os::raw::c_int, |
| 2164 | arg2: *mut ::std::os::raw::c_void, |
| 2165 | arg3: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2166 | ); |
| 2167 | } |
| 2168 | pub type sqlite3_destructor_type = |
| 2169 | ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>; |
| 2170 | extern "C" { |
| 2171 | pub fn sqlite3_result_blob( |
| 2172 | arg1: *mut sqlite3_context, |
| 2173 | arg2: *const ::std::os::raw::c_void, |
| 2174 | arg3: ::std::os::raw::c_int, |
| 2175 | arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2176 | ); |
| 2177 | } |
| 2178 | extern "C" { |
| 2179 | pub fn sqlite3_result_blob64( |
| 2180 | arg1: *mut sqlite3_context, |
| 2181 | arg2: *const ::std::os::raw::c_void, |
| 2182 | arg3: sqlite3_uint64, |
| 2183 | arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2184 | ); |
| 2185 | } |
| 2186 | extern "C" { |
| 2187 | pub fn sqlite3_result_double(arg1: *mut sqlite3_context, arg2: f64); |
| 2188 | } |
| 2189 | extern "C" { |
| 2190 | pub fn sqlite3_result_error( |
| 2191 | arg1: *mut sqlite3_context, |
| 2192 | arg2: *const ::std::os::raw::c_char, |
| 2193 | arg3: ::std::os::raw::c_int, |
| 2194 | ); |
| 2195 | } |
| 2196 | extern "C" { |
| 2197 | pub fn sqlite3_result_error16( |
| 2198 | arg1: *mut sqlite3_context, |
| 2199 | arg2: *const ::std::os::raw::c_void, |
| 2200 | arg3: ::std::os::raw::c_int, |
| 2201 | ); |
| 2202 | } |
| 2203 | extern "C" { |
| 2204 | pub fn sqlite3_result_error_toobig(arg1: *mut sqlite3_context); |
| 2205 | } |
| 2206 | extern "C" { |
| 2207 | pub fn sqlite3_result_error_nomem(arg1: *mut sqlite3_context); |
| 2208 | } |
| 2209 | extern "C" { |
| 2210 | pub fn sqlite3_result_error_code(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int); |
| 2211 | } |
| 2212 | extern "C" { |
| 2213 | pub fn sqlite3_result_int(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int); |
| 2214 | } |
| 2215 | extern "C" { |
| 2216 | pub fn sqlite3_result_int64(arg1: *mut sqlite3_context, arg2: sqlite3_int64); |
| 2217 | } |
| 2218 | extern "C" { |
| 2219 | pub fn sqlite3_result_null(arg1: *mut sqlite3_context); |
| 2220 | } |
| 2221 | extern "C" { |
| 2222 | pub fn sqlite3_result_text( |
| 2223 | arg1: *mut sqlite3_context, |
| 2224 | arg2: *const ::std::os::raw::c_char, |
| 2225 | arg3: ::std::os::raw::c_int, |
| 2226 | arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2227 | ); |
| 2228 | } |
| 2229 | extern "C" { |
| 2230 | pub fn sqlite3_result_text64( |
| 2231 | arg1: *mut sqlite3_context, |
| 2232 | arg2: *const ::std::os::raw::c_char, |
| 2233 | arg3: sqlite3_uint64, |
| 2234 | arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2235 | encoding: ::std::os::raw::c_uchar, |
| 2236 | ); |
| 2237 | } |
| 2238 | extern "C" { |
| 2239 | pub fn sqlite3_result_text16( |
| 2240 | arg1: *mut sqlite3_context, |
| 2241 | arg2: *const ::std::os::raw::c_void, |
| 2242 | arg3: ::std::os::raw::c_int, |
| 2243 | arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2244 | ); |
| 2245 | } |
| 2246 | extern "C" { |
| 2247 | pub fn sqlite3_result_text16le( |
| 2248 | arg1: *mut sqlite3_context, |
| 2249 | arg2: *const ::std::os::raw::c_void, |
| 2250 | arg3: ::std::os::raw::c_int, |
| 2251 | arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2252 | ); |
| 2253 | } |
| 2254 | extern "C" { |
| 2255 | pub fn sqlite3_result_text16be( |
| 2256 | arg1: *mut sqlite3_context, |
| 2257 | arg2: *const ::std::os::raw::c_void, |
| 2258 | arg3: ::std::os::raw::c_int, |
| 2259 | arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2260 | ); |
| 2261 | } |
| 2262 | extern "C" { |
| 2263 | pub fn sqlite3_result_value(arg1: *mut sqlite3_context, arg2: *mut sqlite3_value); |
| 2264 | } |
| 2265 | extern "C" { |
| 2266 | pub fn sqlite3_result_pointer( |
| 2267 | arg1: *mut sqlite3_context, |
| 2268 | arg2: *mut ::std::os::raw::c_void, |
| 2269 | arg3: *const ::std::os::raw::c_char, |
| 2270 | arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2271 | ); |
| 2272 | } |
| 2273 | extern "C" { |
| 2274 | pub fn sqlite3_result_zeroblob(arg1: *mut sqlite3_context, n: ::std::os::raw::c_int); |
| 2275 | } |
| 2276 | extern "C" { |
| 2277 | pub fn sqlite3_result_zeroblob64( |
| 2278 | arg1: *mut sqlite3_context, |
| 2279 | n: sqlite3_uint64, |
| 2280 | ) -> ::std::os::raw::c_int; |
| 2281 | } |
| 2282 | extern "C" { |
| 2283 | pub fn sqlite3_result_subtype(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_uint); |
| 2284 | } |
| 2285 | extern "C" { |
| 2286 | pub fn sqlite3_create_collation( |
| 2287 | arg1: *mut sqlite3, |
| 2288 | zName: *const ::std::os::raw::c_char, |
| 2289 | eTextRep: ::std::os::raw::c_int, |
| 2290 | pArg: *mut ::std::os::raw::c_void, |
| 2291 | xCompare: ::std::option::Option< |
| 2292 | unsafe extern "C" fn( |
| 2293 | arg1: *mut ::std::os::raw::c_void, |
| 2294 | arg2: ::std::os::raw::c_int, |
| 2295 | arg3: *const ::std::os::raw::c_void, |
| 2296 | arg4: ::std::os::raw::c_int, |
| 2297 | arg5: *const ::std::os::raw::c_void, |
| 2298 | ) -> ::std::os::raw::c_int, |
| 2299 | >, |
| 2300 | ) -> ::std::os::raw::c_int; |
| 2301 | } |
| 2302 | extern "C" { |
| 2303 | pub fn sqlite3_create_collation_v2( |
| 2304 | arg1: *mut sqlite3, |
| 2305 | zName: *const ::std::os::raw::c_char, |
| 2306 | eTextRep: ::std::os::raw::c_int, |
| 2307 | pArg: *mut ::std::os::raw::c_void, |
| 2308 | xCompare: ::std::option::Option< |
| 2309 | unsafe extern "C" fn( |
| 2310 | arg1: *mut ::std::os::raw::c_void, |
| 2311 | arg2: ::std::os::raw::c_int, |
| 2312 | arg3: *const ::std::os::raw::c_void, |
| 2313 | arg4: ::std::os::raw::c_int, |
| 2314 | arg5: *const ::std::os::raw::c_void, |
| 2315 | ) -> ::std::os::raw::c_int, |
| 2316 | >, |
| 2317 | xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2318 | ) -> ::std::os::raw::c_int; |
| 2319 | } |
| 2320 | extern "C" { |
| 2321 | pub fn sqlite3_create_collation16( |
| 2322 | arg1: *mut sqlite3, |
| 2323 | zName: *const ::std::os::raw::c_void, |
| 2324 | eTextRep: ::std::os::raw::c_int, |
| 2325 | pArg: *mut ::std::os::raw::c_void, |
| 2326 | xCompare: ::std::option::Option< |
| 2327 | unsafe extern "C" fn( |
| 2328 | arg1: *mut ::std::os::raw::c_void, |
| 2329 | arg2: ::std::os::raw::c_int, |
| 2330 | arg3: *const ::std::os::raw::c_void, |
| 2331 | arg4: ::std::os::raw::c_int, |
| 2332 | arg5: *const ::std::os::raw::c_void, |
| 2333 | ) -> ::std::os::raw::c_int, |
| 2334 | >, |
| 2335 | ) -> ::std::os::raw::c_int; |
| 2336 | } |
| 2337 | extern "C" { |
| 2338 | pub fn sqlite3_collation_needed( |
| 2339 | arg1: *mut sqlite3, |
| 2340 | arg2: *mut ::std::os::raw::c_void, |
| 2341 | arg3: ::std::option::Option< |
| 2342 | unsafe extern "C" fn( |
| 2343 | arg1: *mut ::std::os::raw::c_void, |
| 2344 | arg2: *mut sqlite3, |
| 2345 | eTextRep: ::std::os::raw::c_int, |
| 2346 | arg3: *const ::std::os::raw::c_char, |
| 2347 | ), |
| 2348 | >, |
| 2349 | ) -> ::std::os::raw::c_int; |
| 2350 | } |
| 2351 | extern "C" { |
| 2352 | pub fn sqlite3_collation_needed16( |
| 2353 | arg1: *mut sqlite3, |
| 2354 | arg2: *mut ::std::os::raw::c_void, |
| 2355 | arg3: ::std::option::Option< |
| 2356 | unsafe extern "C" fn( |
| 2357 | arg1: *mut ::std::os::raw::c_void, |
| 2358 | arg2: *mut sqlite3, |
| 2359 | eTextRep: ::std::os::raw::c_int, |
| 2360 | arg3: *const ::std::os::raw::c_void, |
| 2361 | ), |
| 2362 | >, |
| 2363 | ) -> ::std::os::raw::c_int; |
| 2364 | } |
| 2365 | extern "C" { |
| 2366 | pub fn sqlite3_sleep(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; |
| 2367 | } |
| 2368 | extern "C" { |
| 2369 | pub static mut sqlite3_temp_directory: *mut ::std::os::raw::c_char; |
| 2370 | } |
| 2371 | extern "C" { |
| 2372 | pub static mut sqlite3_data_directory: *mut ::std::os::raw::c_char; |
| 2373 | } |
| 2374 | extern "C" { |
| 2375 | pub fn sqlite3_win32_set_directory( |
| 2376 | type_: ::std::os::raw::c_ulong, |
| 2377 | zValue: *mut ::std::os::raw::c_void, |
| 2378 | ) -> ::std::os::raw::c_int; |
| 2379 | } |
| 2380 | extern "C" { |
| 2381 | pub fn sqlite3_win32_set_directory8( |
| 2382 | type_: ::std::os::raw::c_ulong, |
| 2383 | zValue: *const ::std::os::raw::c_char, |
| 2384 | ) -> ::std::os::raw::c_int; |
| 2385 | } |
| 2386 | extern "C" { |
| 2387 | pub fn sqlite3_win32_set_directory16( |
| 2388 | type_: ::std::os::raw::c_ulong, |
| 2389 | zValue: *const ::std::os::raw::c_void, |
| 2390 | ) -> ::std::os::raw::c_int; |
| 2391 | } |
| 2392 | extern "C" { |
| 2393 | pub fn sqlite3_get_autocommit(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 2394 | } |
| 2395 | extern "C" { |
| 2396 | pub fn sqlite3_db_handle(arg1: *mut sqlite3_stmt) -> *mut sqlite3; |
| 2397 | } |
| 2398 | extern "C" { |
| 2399 | pub fn sqlite3_db_filename( |
| 2400 | db: *mut sqlite3, |
| 2401 | zDbName: *const ::std::os::raw::c_char, |
| 2402 | ) -> *const ::std::os::raw::c_char; |
| 2403 | } |
| 2404 | extern "C" { |
| 2405 | pub fn sqlite3_db_readonly( |
| 2406 | db: *mut sqlite3, |
| 2407 | zDbName: *const ::std::os::raw::c_char, |
| 2408 | ) -> ::std::os::raw::c_int; |
| 2409 | } |
| 2410 | extern "C" { |
| 2411 | pub fn sqlite3_next_stmt(pDb: *mut sqlite3, pStmt: *mut sqlite3_stmt) -> *mut sqlite3_stmt; |
| 2412 | } |
| 2413 | extern "C" { |
| 2414 | pub fn sqlite3_commit_hook( |
| 2415 | arg1: *mut sqlite3, |
| 2416 | arg2: ::std::option::Option< |
| 2417 | unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, |
| 2418 | >, |
| 2419 | arg3: *mut ::std::os::raw::c_void, |
| 2420 | ) -> *mut ::std::os::raw::c_void; |
| 2421 | } |
| 2422 | extern "C" { |
| 2423 | pub fn sqlite3_rollback_hook( |
| 2424 | arg1: *mut sqlite3, |
| 2425 | arg2: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2426 | arg3: *mut ::std::os::raw::c_void, |
| 2427 | ) -> *mut ::std::os::raw::c_void; |
| 2428 | } |
| 2429 | extern "C" { |
| 2430 | pub fn sqlite3_update_hook( |
| 2431 | arg1: *mut sqlite3, |
| 2432 | arg2: ::std::option::Option< |
| 2433 | unsafe extern "C" fn( |
| 2434 | arg1: *mut ::std::os::raw::c_void, |
| 2435 | arg2: ::std::os::raw::c_int, |
| 2436 | arg3: *const ::std::os::raw::c_char, |
| 2437 | arg4: *const ::std::os::raw::c_char, |
| 2438 | arg5: sqlite3_int64, |
| 2439 | ), |
| 2440 | >, |
| 2441 | arg3: *mut ::std::os::raw::c_void, |
| 2442 | ) -> *mut ::std::os::raw::c_void; |
| 2443 | } |
| 2444 | extern "C" { |
| 2445 | pub fn sqlite3_enable_shared_cache(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; |
| 2446 | } |
| 2447 | extern "C" { |
| 2448 | pub fn sqlite3_release_memory(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; |
| 2449 | } |
| 2450 | extern "C" { |
| 2451 | pub fn sqlite3_db_release_memory(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 2452 | } |
| 2453 | extern "C" { |
| 2454 | pub fn sqlite3_soft_heap_limit64(N: sqlite3_int64) -> sqlite3_int64; |
| 2455 | } |
| 2456 | extern "C" { |
| 2457 | pub fn sqlite3_hard_heap_limit64(N: sqlite3_int64) -> sqlite3_int64; |
| 2458 | } |
| 2459 | extern "C" { |
| 2460 | pub fn sqlite3_soft_heap_limit(N: ::std::os::raw::c_int); |
| 2461 | } |
| 2462 | extern "C" { |
| 2463 | pub fn sqlite3_table_column_metadata( |
| 2464 | db: *mut sqlite3, |
| 2465 | zDbName: *const ::std::os::raw::c_char, |
| 2466 | zTableName: *const ::std::os::raw::c_char, |
| 2467 | zColumnName: *const ::std::os::raw::c_char, |
| 2468 | pzDataType: *mut *const ::std::os::raw::c_char, |
| 2469 | pzCollSeq: *mut *const ::std::os::raw::c_char, |
| 2470 | pNotNull: *mut ::std::os::raw::c_int, |
| 2471 | pPrimaryKey: *mut ::std::os::raw::c_int, |
| 2472 | pAutoinc: *mut ::std::os::raw::c_int, |
| 2473 | ) -> ::std::os::raw::c_int; |
| 2474 | } |
| 2475 | extern "C" { |
| 2476 | pub fn sqlite3_load_extension( |
| 2477 | db: *mut sqlite3, |
| 2478 | zFile: *const ::std::os::raw::c_char, |
| 2479 | zProc: *const ::std::os::raw::c_char, |
| 2480 | pzErrMsg: *mut *mut ::std::os::raw::c_char, |
| 2481 | ) -> ::std::os::raw::c_int; |
| 2482 | } |
| 2483 | extern "C" { |
| 2484 | pub fn sqlite3_enable_load_extension( |
| 2485 | db: *mut sqlite3, |
| 2486 | onoff: ::std::os::raw::c_int, |
| 2487 | ) -> ::std::os::raw::c_int; |
| 2488 | } |
| 2489 | extern "C" { |
| 2490 | pub fn sqlite3_auto_extension( |
| 2491 | xEntryPoint: ::std::option::Option<unsafe extern "C" fn()>, |
| 2492 | ) -> ::std::os::raw::c_int; |
| 2493 | } |
| 2494 | extern "C" { |
| 2495 | pub fn sqlite3_cancel_auto_extension( |
| 2496 | xEntryPoint: ::std::option::Option<unsafe extern "C" fn()>, |
| 2497 | ) -> ::std::os::raw::c_int; |
| 2498 | } |
| 2499 | extern "C" { |
| 2500 | pub fn sqlite3_reset_auto_extension(); |
| 2501 | } |
| 2502 | #[repr(C)] |
| 2503 | #[derive(Debug, Copy, Clone)] |
| 2504 | pub struct sqlite3_module { |
| 2505 | pub iVersion: ::std::os::raw::c_int, |
| 2506 | pub xCreate: ::std::option::Option< |
| 2507 | unsafe extern "C" fn( |
| 2508 | arg1: *mut sqlite3, |
| 2509 | pAux: *mut ::std::os::raw::c_void, |
| 2510 | argc: ::std::os::raw::c_int, |
| 2511 | argv: *const *const ::std::os::raw::c_char, |
| 2512 | ppVTab: *mut *mut sqlite3_vtab, |
| 2513 | arg2: *mut *mut ::std::os::raw::c_char, |
| 2514 | ) -> ::std::os::raw::c_int, |
| 2515 | >, |
| 2516 | pub xConnect: ::std::option::Option< |
| 2517 | unsafe extern "C" fn( |
| 2518 | arg1: *mut sqlite3, |
| 2519 | pAux: *mut ::std::os::raw::c_void, |
| 2520 | argc: ::std::os::raw::c_int, |
| 2521 | argv: *const *const ::std::os::raw::c_char, |
| 2522 | ppVTab: *mut *mut sqlite3_vtab, |
| 2523 | arg2: *mut *mut ::std::os::raw::c_char, |
| 2524 | ) -> ::std::os::raw::c_int, |
| 2525 | >, |
| 2526 | pub xBestIndex: ::std::option::Option< |
| 2527 | unsafe extern "C" fn( |
| 2528 | pVTab: *mut sqlite3_vtab, |
| 2529 | arg1: *mut sqlite3_index_info, |
| 2530 | ) -> ::std::os::raw::c_int, |
| 2531 | >, |
| 2532 | pub xDisconnect: ::std::option::Option< |
| 2533 | unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, |
| 2534 | >, |
| 2535 | pub xDestroy: ::std::option::Option< |
| 2536 | unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, |
| 2537 | >, |
| 2538 | pub xOpen: ::std::option::Option< |
| 2539 | unsafe extern "C" fn( |
| 2540 | pVTab: *mut sqlite3_vtab, |
| 2541 | ppCursor: *mut *mut sqlite3_vtab_cursor, |
| 2542 | ) -> ::std::os::raw::c_int, |
| 2543 | >, |
| 2544 | pub xClose: ::std::option::Option< |
| 2545 | unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int, |
| 2546 | >, |
| 2547 | pub xFilter: ::std::option::Option< |
| 2548 | unsafe extern "C" fn( |
| 2549 | arg1: *mut sqlite3_vtab_cursor, |
| 2550 | idxNum: ::std::os::raw::c_int, |
| 2551 | idxStr: *const ::std::os::raw::c_char, |
| 2552 | argc: ::std::os::raw::c_int, |
| 2553 | argv: *mut *mut sqlite3_value, |
| 2554 | ) -> ::std::os::raw::c_int, |
| 2555 | >, |
| 2556 | pub xNext: ::std::option::Option< |
| 2557 | unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int, |
| 2558 | >, |
| 2559 | pub xEof: ::std::option::Option< |
| 2560 | unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int, |
| 2561 | >, |
| 2562 | pub xColumn: ::std::option::Option< |
| 2563 | unsafe extern "C" fn( |
| 2564 | arg1: *mut sqlite3_vtab_cursor, |
| 2565 | arg2: *mut sqlite3_context, |
| 2566 | arg3: ::std::os::raw::c_int, |
| 2567 | ) -> ::std::os::raw::c_int, |
| 2568 | >, |
| 2569 | pub xRowid: ::std::option::Option< |
| 2570 | unsafe extern "C" fn( |
| 2571 | arg1: *mut sqlite3_vtab_cursor, |
| 2572 | pRowid: *mut sqlite3_int64, |
| 2573 | ) -> ::std::os::raw::c_int, |
| 2574 | >, |
| 2575 | pub xUpdate: ::std::option::Option< |
| 2576 | unsafe extern "C" fn( |
| 2577 | arg1: *mut sqlite3_vtab, |
| 2578 | arg2: ::std::os::raw::c_int, |
| 2579 | arg3: *mut *mut sqlite3_value, |
| 2580 | arg4: *mut sqlite3_int64, |
| 2581 | ) -> ::std::os::raw::c_int, |
| 2582 | >, |
| 2583 | pub xBegin: ::std::option::Option< |
| 2584 | unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, |
| 2585 | >, |
| 2586 | pub xSync: ::std::option::Option< |
| 2587 | unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, |
| 2588 | >, |
| 2589 | pub xCommit: ::std::option::Option< |
| 2590 | unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, |
| 2591 | >, |
| 2592 | pub xRollback: ::std::option::Option< |
| 2593 | unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, |
| 2594 | >, |
| 2595 | pub xFindFunction: ::std::option::Option< |
| 2596 | unsafe extern "C" fn( |
| 2597 | pVtab: *mut sqlite3_vtab, |
| 2598 | nArg: ::std::os::raw::c_int, |
| 2599 | zName: *const ::std::os::raw::c_char, |
| 2600 | pxFunc: *mut ::std::option::Option< |
| 2601 | unsafe extern "C" fn( |
| 2602 | arg1: *mut sqlite3_context, |
| 2603 | arg2: ::std::os::raw::c_int, |
| 2604 | arg3: *mut *mut sqlite3_value, |
| 2605 | ), |
| 2606 | >, |
| 2607 | ppArg: *mut *mut ::std::os::raw::c_void, |
| 2608 | ) -> ::std::os::raw::c_int, |
| 2609 | >, |
| 2610 | pub xRename: ::std::option::Option< |
| 2611 | unsafe extern "C" fn( |
| 2612 | pVtab: *mut sqlite3_vtab, |
| 2613 | zNew: *const ::std::os::raw::c_char, |
| 2614 | ) -> ::std::os::raw::c_int, |
| 2615 | >, |
| 2616 | pub xSavepoint: ::std::option::Option< |
| 2617 | unsafe extern "C" fn( |
| 2618 | pVTab: *mut sqlite3_vtab, |
| 2619 | arg1: ::std::os::raw::c_int, |
| 2620 | ) -> ::std::os::raw::c_int, |
| 2621 | >, |
| 2622 | pub xRelease: ::std::option::Option< |
| 2623 | unsafe extern "C" fn( |
| 2624 | pVTab: *mut sqlite3_vtab, |
| 2625 | arg1: ::std::os::raw::c_int, |
| 2626 | ) -> ::std::os::raw::c_int, |
| 2627 | >, |
| 2628 | pub xRollbackTo: ::std::option::Option< |
| 2629 | unsafe extern "C" fn( |
| 2630 | pVTab: *mut sqlite3_vtab, |
| 2631 | arg1: ::std::os::raw::c_int, |
| 2632 | ) -> ::std::os::raw::c_int, |
| 2633 | >, |
| 2634 | pub xShadowName: ::std::option::Option< |
| 2635 | unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int, |
| 2636 | >, |
| 2637 | } |
| 2638 | #[test] |
| 2639 | fn bindgen_test_layout_sqlite3_module() { |
| 2640 | assert_eq!( |
| 2641 | ::std::mem::size_of::<sqlite3_module>(), |
| 2642 | 192usize, |
| 2643 | concat!("Size of: ", stringify!(sqlite3_module)) |
| 2644 | ); |
| 2645 | assert_eq!( |
| 2646 | ::std::mem::align_of::<sqlite3_module>(), |
| 2647 | 8usize, |
| 2648 | concat!("Alignment of ", stringify!(sqlite3_module)) |
| 2649 | ); |
| 2650 | assert_eq!( |
| 2651 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).iVersion as *const _ as usize }, |
| 2652 | 0usize, |
| 2653 | concat!( |
| 2654 | "Offset of field: ", |
| 2655 | stringify!(sqlite3_module), |
| 2656 | "::", |
| 2657 | stringify!(iVersion) |
| 2658 | ) |
| 2659 | ); |
| 2660 | assert_eq!( |
| 2661 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xCreate as *const _ as usize }, |
| 2662 | 8usize, |
| 2663 | concat!( |
| 2664 | "Offset of field: ", |
| 2665 | stringify!(sqlite3_module), |
| 2666 | "::", |
| 2667 | stringify!(xCreate) |
| 2668 | ) |
| 2669 | ); |
| 2670 | assert_eq!( |
| 2671 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xConnect as *const _ as usize }, |
| 2672 | 16usize, |
| 2673 | concat!( |
| 2674 | "Offset of field: ", |
| 2675 | stringify!(sqlite3_module), |
| 2676 | "::", |
| 2677 | stringify!(xConnect) |
| 2678 | ) |
| 2679 | ); |
| 2680 | assert_eq!( |
| 2681 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xBestIndex as *const _ as usize }, |
| 2682 | 24usize, |
| 2683 | concat!( |
| 2684 | "Offset of field: ", |
| 2685 | stringify!(sqlite3_module), |
| 2686 | "::", |
| 2687 | stringify!(xBestIndex) |
| 2688 | ) |
| 2689 | ); |
| 2690 | assert_eq!( |
| 2691 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xDisconnect as *const _ as usize }, |
| 2692 | 32usize, |
| 2693 | concat!( |
| 2694 | "Offset of field: ", |
| 2695 | stringify!(sqlite3_module), |
| 2696 | "::", |
| 2697 | stringify!(xDisconnect) |
| 2698 | ) |
| 2699 | ); |
| 2700 | assert_eq!( |
| 2701 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xDestroy as *const _ as usize }, |
| 2702 | 40usize, |
| 2703 | concat!( |
| 2704 | "Offset of field: ", |
| 2705 | stringify!(sqlite3_module), |
| 2706 | "::", |
| 2707 | stringify!(xDestroy) |
| 2708 | ) |
| 2709 | ); |
| 2710 | assert_eq!( |
| 2711 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xOpen as *const _ as usize }, |
| 2712 | 48usize, |
| 2713 | concat!( |
| 2714 | "Offset of field: ", |
| 2715 | stringify!(sqlite3_module), |
| 2716 | "::", |
| 2717 | stringify!(xOpen) |
| 2718 | ) |
| 2719 | ); |
| 2720 | assert_eq!( |
| 2721 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xClose as *const _ as usize }, |
| 2722 | 56usize, |
| 2723 | concat!( |
| 2724 | "Offset of field: ", |
| 2725 | stringify!(sqlite3_module), |
| 2726 | "::", |
| 2727 | stringify!(xClose) |
| 2728 | ) |
| 2729 | ); |
| 2730 | assert_eq!( |
| 2731 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xFilter as *const _ as usize }, |
| 2732 | 64usize, |
| 2733 | concat!( |
| 2734 | "Offset of field: ", |
| 2735 | stringify!(sqlite3_module), |
| 2736 | "::", |
| 2737 | stringify!(xFilter) |
| 2738 | ) |
| 2739 | ); |
| 2740 | assert_eq!( |
| 2741 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xNext as *const _ as usize }, |
| 2742 | 72usize, |
| 2743 | concat!( |
| 2744 | "Offset of field: ", |
| 2745 | stringify!(sqlite3_module), |
| 2746 | "::", |
| 2747 | stringify!(xNext) |
| 2748 | ) |
| 2749 | ); |
| 2750 | assert_eq!( |
| 2751 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xEof as *const _ as usize }, |
| 2752 | 80usize, |
| 2753 | concat!( |
| 2754 | "Offset of field: ", |
| 2755 | stringify!(sqlite3_module), |
| 2756 | "::", |
| 2757 | stringify!(xEof) |
| 2758 | ) |
| 2759 | ); |
| 2760 | assert_eq!( |
| 2761 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xColumn as *const _ as usize }, |
| 2762 | 88usize, |
| 2763 | concat!( |
| 2764 | "Offset of field: ", |
| 2765 | stringify!(sqlite3_module), |
| 2766 | "::", |
| 2767 | stringify!(xColumn) |
| 2768 | ) |
| 2769 | ); |
| 2770 | assert_eq!( |
| 2771 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xRowid as *const _ as usize }, |
| 2772 | 96usize, |
| 2773 | concat!( |
| 2774 | "Offset of field: ", |
| 2775 | stringify!(sqlite3_module), |
| 2776 | "::", |
| 2777 | stringify!(xRowid) |
| 2778 | ) |
| 2779 | ); |
| 2780 | assert_eq!( |
| 2781 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xUpdate as *const _ as usize }, |
| 2782 | 104usize, |
| 2783 | concat!( |
| 2784 | "Offset of field: ", |
| 2785 | stringify!(sqlite3_module), |
| 2786 | "::", |
| 2787 | stringify!(xUpdate) |
| 2788 | ) |
| 2789 | ); |
| 2790 | assert_eq!( |
| 2791 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xBegin as *const _ as usize }, |
| 2792 | 112usize, |
| 2793 | concat!( |
| 2794 | "Offset of field: ", |
| 2795 | stringify!(sqlite3_module), |
| 2796 | "::", |
| 2797 | stringify!(xBegin) |
| 2798 | ) |
| 2799 | ); |
| 2800 | assert_eq!( |
| 2801 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xSync as *const _ as usize }, |
| 2802 | 120usize, |
| 2803 | concat!( |
| 2804 | "Offset of field: ", |
| 2805 | stringify!(sqlite3_module), |
| 2806 | "::", |
| 2807 | stringify!(xSync) |
| 2808 | ) |
| 2809 | ); |
| 2810 | assert_eq!( |
| 2811 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xCommit as *const _ as usize }, |
| 2812 | 128usize, |
| 2813 | concat!( |
| 2814 | "Offset of field: ", |
| 2815 | stringify!(sqlite3_module), |
| 2816 | "::", |
| 2817 | stringify!(xCommit) |
| 2818 | ) |
| 2819 | ); |
| 2820 | assert_eq!( |
| 2821 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xRollback as *const _ as usize }, |
| 2822 | 136usize, |
| 2823 | concat!( |
| 2824 | "Offset of field: ", |
| 2825 | stringify!(sqlite3_module), |
| 2826 | "::", |
| 2827 | stringify!(xRollback) |
| 2828 | ) |
| 2829 | ); |
| 2830 | assert_eq!( |
| 2831 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xFindFunction as *const _ as usize }, |
| 2832 | 144usize, |
| 2833 | concat!( |
| 2834 | "Offset of field: ", |
| 2835 | stringify!(sqlite3_module), |
| 2836 | "::", |
| 2837 | stringify!(xFindFunction) |
| 2838 | ) |
| 2839 | ); |
| 2840 | assert_eq!( |
| 2841 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xRename as *const _ as usize }, |
| 2842 | 152usize, |
| 2843 | concat!( |
| 2844 | "Offset of field: ", |
| 2845 | stringify!(sqlite3_module), |
| 2846 | "::", |
| 2847 | stringify!(xRename) |
| 2848 | ) |
| 2849 | ); |
| 2850 | assert_eq!( |
| 2851 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xSavepoint as *const _ as usize }, |
| 2852 | 160usize, |
| 2853 | concat!( |
| 2854 | "Offset of field: ", |
| 2855 | stringify!(sqlite3_module), |
| 2856 | "::", |
| 2857 | stringify!(xSavepoint) |
| 2858 | ) |
| 2859 | ); |
| 2860 | assert_eq!( |
| 2861 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xRelease as *const _ as usize }, |
| 2862 | 168usize, |
| 2863 | concat!( |
| 2864 | "Offset of field: ", |
| 2865 | stringify!(sqlite3_module), |
| 2866 | "::", |
| 2867 | stringify!(xRelease) |
| 2868 | ) |
| 2869 | ); |
| 2870 | assert_eq!( |
| 2871 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xRollbackTo as *const _ as usize }, |
| 2872 | 176usize, |
| 2873 | concat!( |
| 2874 | "Offset of field: ", |
| 2875 | stringify!(sqlite3_module), |
| 2876 | "::", |
| 2877 | stringify!(xRollbackTo) |
| 2878 | ) |
| 2879 | ); |
| 2880 | assert_eq!( |
| 2881 | unsafe { &(*(::std::ptr::null::<sqlite3_module>())).xShadowName as *const _ as usize }, |
| 2882 | 184usize, |
| 2883 | concat!( |
| 2884 | "Offset of field: ", |
| 2885 | stringify!(sqlite3_module), |
| 2886 | "::", |
| 2887 | stringify!(xShadowName) |
| 2888 | ) |
| 2889 | ); |
| 2890 | } |
| 2891 | #[repr(C)] |
| 2892 | #[derive(Debug, Copy, Clone)] |
| 2893 | pub struct sqlite3_index_info { |
| 2894 | pub nConstraint: ::std::os::raw::c_int, |
| 2895 | pub aConstraint: *mut sqlite3_index_info_sqlite3_index_constraint, |
| 2896 | pub nOrderBy: ::std::os::raw::c_int, |
| 2897 | pub aOrderBy: *mut sqlite3_index_info_sqlite3_index_orderby, |
| 2898 | pub aConstraintUsage: *mut sqlite3_index_info_sqlite3_index_constraint_usage, |
| 2899 | pub idxNum: ::std::os::raw::c_int, |
| 2900 | pub idxStr: *mut ::std::os::raw::c_char, |
| 2901 | pub needToFreeIdxStr: ::std::os::raw::c_int, |
| 2902 | pub orderByConsumed: ::std::os::raw::c_int, |
| 2903 | pub estimatedCost: f64, |
| 2904 | pub estimatedRows: sqlite3_int64, |
| 2905 | pub idxFlags: ::std::os::raw::c_int, |
| 2906 | pub colUsed: sqlite3_uint64, |
| 2907 | } |
| 2908 | #[repr(C)] |
| 2909 | #[derive(Debug, Copy, Clone)] |
| 2910 | pub struct sqlite3_index_info_sqlite3_index_constraint { |
| 2911 | pub iColumn: ::std::os::raw::c_int, |
| 2912 | pub op: ::std::os::raw::c_uchar, |
| 2913 | pub usable: ::std::os::raw::c_uchar, |
| 2914 | pub iTermOffset: ::std::os::raw::c_int, |
| 2915 | } |
| 2916 | #[test] |
| 2917 | fn bindgen_test_layout_sqlite3_index_info_sqlite3_index_constraint() { |
| 2918 | assert_eq!( |
| 2919 | ::std::mem::size_of::<sqlite3_index_info_sqlite3_index_constraint>(), |
| 2920 | 12usize, |
| 2921 | concat!( |
| 2922 | "Size of: ", |
| 2923 | stringify!(sqlite3_index_info_sqlite3_index_constraint) |
| 2924 | ) |
| 2925 | ); |
| 2926 | assert_eq!( |
| 2927 | ::std::mem::align_of::<sqlite3_index_info_sqlite3_index_constraint>(), |
| 2928 | 4usize, |
| 2929 | concat!( |
| 2930 | "Alignment of ", |
| 2931 | stringify!(sqlite3_index_info_sqlite3_index_constraint) |
| 2932 | ) |
| 2933 | ); |
| 2934 | assert_eq!( |
| 2935 | unsafe { |
| 2936 | &(*(::std::ptr::null::<sqlite3_index_info_sqlite3_index_constraint>())).iColumn |
| 2937 | as *const _ as usize |
| 2938 | }, |
| 2939 | 0usize, |
| 2940 | concat!( |
| 2941 | "Offset of field: ", |
| 2942 | stringify!(sqlite3_index_info_sqlite3_index_constraint), |
| 2943 | "::", |
| 2944 | stringify!(iColumn) |
| 2945 | ) |
| 2946 | ); |
| 2947 | assert_eq!( |
| 2948 | unsafe { |
| 2949 | &(*(::std::ptr::null::<sqlite3_index_info_sqlite3_index_constraint>())).op as *const _ |
| 2950 | as usize |
| 2951 | }, |
| 2952 | 4usize, |
| 2953 | concat!( |
| 2954 | "Offset of field: ", |
| 2955 | stringify!(sqlite3_index_info_sqlite3_index_constraint), |
| 2956 | "::", |
| 2957 | stringify!(op) |
| 2958 | ) |
| 2959 | ); |
| 2960 | assert_eq!( |
| 2961 | unsafe { |
| 2962 | &(*(::std::ptr::null::<sqlite3_index_info_sqlite3_index_constraint>())).usable |
| 2963 | as *const _ as usize |
| 2964 | }, |
| 2965 | 5usize, |
| 2966 | concat!( |
| 2967 | "Offset of field: ", |
| 2968 | stringify!(sqlite3_index_info_sqlite3_index_constraint), |
| 2969 | "::", |
| 2970 | stringify!(usable) |
| 2971 | ) |
| 2972 | ); |
| 2973 | assert_eq!( |
| 2974 | unsafe { |
| 2975 | &(*(::std::ptr::null::<sqlite3_index_info_sqlite3_index_constraint>())).iTermOffset |
| 2976 | as *const _ as usize |
| 2977 | }, |
| 2978 | 8usize, |
| 2979 | concat!( |
| 2980 | "Offset of field: ", |
| 2981 | stringify!(sqlite3_index_info_sqlite3_index_constraint), |
| 2982 | "::", |
| 2983 | stringify!(iTermOffset) |
| 2984 | ) |
| 2985 | ); |
| 2986 | } |
| 2987 | #[repr(C)] |
| 2988 | #[derive(Debug, Copy, Clone)] |
| 2989 | pub struct sqlite3_index_info_sqlite3_index_orderby { |
| 2990 | pub iColumn: ::std::os::raw::c_int, |
| 2991 | pub desc: ::std::os::raw::c_uchar, |
| 2992 | } |
| 2993 | #[test] |
| 2994 | fn bindgen_test_layout_sqlite3_index_info_sqlite3_index_orderby() { |
| 2995 | assert_eq!( |
| 2996 | ::std::mem::size_of::<sqlite3_index_info_sqlite3_index_orderby>(), |
| 2997 | 8usize, |
| 2998 | concat!( |
| 2999 | "Size of: ", |
| 3000 | stringify!(sqlite3_index_info_sqlite3_index_orderby) |
| 3001 | ) |
| 3002 | ); |
| 3003 | assert_eq!( |
| 3004 | ::std::mem::align_of::<sqlite3_index_info_sqlite3_index_orderby>(), |
| 3005 | 4usize, |
| 3006 | concat!( |
| 3007 | "Alignment of ", |
| 3008 | stringify!(sqlite3_index_info_sqlite3_index_orderby) |
| 3009 | ) |
| 3010 | ); |
| 3011 | assert_eq!( |
| 3012 | unsafe { |
| 3013 | &(*(::std::ptr::null::<sqlite3_index_info_sqlite3_index_orderby>())).iColumn as *const _ |
| 3014 | as usize |
| 3015 | }, |
| 3016 | 0usize, |
| 3017 | concat!( |
| 3018 | "Offset of field: ", |
| 3019 | stringify!(sqlite3_index_info_sqlite3_index_orderby), |
| 3020 | "::", |
| 3021 | stringify!(iColumn) |
| 3022 | ) |
| 3023 | ); |
| 3024 | assert_eq!( |
| 3025 | unsafe { |
| 3026 | &(*(::std::ptr::null::<sqlite3_index_info_sqlite3_index_orderby>())).desc as *const _ |
| 3027 | as usize |
| 3028 | }, |
| 3029 | 4usize, |
| 3030 | concat!( |
| 3031 | "Offset of field: ", |
| 3032 | stringify!(sqlite3_index_info_sqlite3_index_orderby), |
| 3033 | "::", |
| 3034 | stringify!(desc) |
| 3035 | ) |
| 3036 | ); |
| 3037 | } |
| 3038 | #[repr(C)] |
| 3039 | #[derive(Debug, Copy, Clone)] |
| 3040 | pub struct sqlite3_index_info_sqlite3_index_constraint_usage { |
| 3041 | pub argvIndex: ::std::os::raw::c_int, |
| 3042 | pub omit: ::std::os::raw::c_uchar, |
| 3043 | } |
| 3044 | #[test] |
| 3045 | fn bindgen_test_layout_sqlite3_index_info_sqlite3_index_constraint_usage() { |
| 3046 | assert_eq!( |
| 3047 | ::std::mem::size_of::<sqlite3_index_info_sqlite3_index_constraint_usage>(), |
| 3048 | 8usize, |
| 3049 | concat!( |
| 3050 | "Size of: ", |
| 3051 | stringify!(sqlite3_index_info_sqlite3_index_constraint_usage) |
| 3052 | ) |
| 3053 | ); |
| 3054 | assert_eq!( |
| 3055 | ::std::mem::align_of::<sqlite3_index_info_sqlite3_index_constraint_usage>(), |
| 3056 | 4usize, |
| 3057 | concat!( |
| 3058 | "Alignment of ", |
| 3059 | stringify!(sqlite3_index_info_sqlite3_index_constraint_usage) |
| 3060 | ) |
| 3061 | ); |
| 3062 | assert_eq!( |
| 3063 | unsafe { |
| 3064 | &(*(::std::ptr::null::<sqlite3_index_info_sqlite3_index_constraint_usage>())).argvIndex |
| 3065 | as *const _ as usize |
| 3066 | }, |
| 3067 | 0usize, |
| 3068 | concat!( |
| 3069 | "Offset of field: ", |
| 3070 | stringify!(sqlite3_index_info_sqlite3_index_constraint_usage), |
| 3071 | "::", |
| 3072 | stringify!(argvIndex) |
| 3073 | ) |
| 3074 | ); |
| 3075 | assert_eq!( |
| 3076 | unsafe { |
| 3077 | &(*(::std::ptr::null::<sqlite3_index_info_sqlite3_index_constraint_usage>())).omit |
| 3078 | as *const _ as usize |
| 3079 | }, |
| 3080 | 4usize, |
| 3081 | concat!( |
| 3082 | "Offset of field: ", |
| 3083 | stringify!(sqlite3_index_info_sqlite3_index_constraint_usage), |
| 3084 | "::", |
| 3085 | stringify!(omit) |
| 3086 | ) |
| 3087 | ); |
| 3088 | } |
| 3089 | #[test] |
| 3090 | fn bindgen_test_layout_sqlite3_index_info() { |
| 3091 | assert_eq!( |
| 3092 | ::std::mem::size_of::<sqlite3_index_info>(), |
| 3093 | 96usize, |
| 3094 | concat!("Size of: ", stringify!(sqlite3_index_info)) |
| 3095 | ); |
| 3096 | assert_eq!( |
| 3097 | ::std::mem::align_of::<sqlite3_index_info>(), |
| 3098 | 8usize, |
| 3099 | concat!("Alignment of ", stringify!(sqlite3_index_info)) |
| 3100 | ); |
| 3101 | assert_eq!( |
| 3102 | unsafe { &(*(::std::ptr::null::<sqlite3_index_info>())).nConstraint as *const _ as usize }, |
| 3103 | 0usize, |
| 3104 | concat!( |
| 3105 | "Offset of field: ", |
| 3106 | stringify!(sqlite3_index_info), |
| 3107 | "::", |
| 3108 | stringify!(nConstraint) |
| 3109 | ) |
| 3110 | ); |
| 3111 | assert_eq!( |
| 3112 | unsafe { &(*(::std::ptr::null::<sqlite3_index_info>())).aConstraint as *const _ as usize }, |
| 3113 | 8usize, |
| 3114 | concat!( |
| 3115 | "Offset of field: ", |
| 3116 | stringify!(sqlite3_index_info), |
| 3117 | "::", |
| 3118 | stringify!(aConstraint) |
| 3119 | ) |
| 3120 | ); |
| 3121 | assert_eq!( |
| 3122 | unsafe { &(*(::std::ptr::null::<sqlite3_index_info>())).nOrderBy as *const _ as usize }, |
| 3123 | 16usize, |
| 3124 | concat!( |
| 3125 | "Offset of field: ", |
| 3126 | stringify!(sqlite3_index_info), |
| 3127 | "::", |
| 3128 | stringify!(nOrderBy) |
| 3129 | ) |
| 3130 | ); |
| 3131 | assert_eq!( |
| 3132 | unsafe { &(*(::std::ptr::null::<sqlite3_index_info>())).aOrderBy as *const _ as usize }, |
| 3133 | 24usize, |
| 3134 | concat!( |
| 3135 | "Offset of field: ", |
| 3136 | stringify!(sqlite3_index_info), |
| 3137 | "::", |
| 3138 | stringify!(aOrderBy) |
| 3139 | ) |
| 3140 | ); |
| 3141 | assert_eq!( |
| 3142 | unsafe { |
| 3143 | &(*(::std::ptr::null::<sqlite3_index_info>())).aConstraintUsage as *const _ as usize |
| 3144 | }, |
| 3145 | 32usize, |
| 3146 | concat!( |
| 3147 | "Offset of field: ", |
| 3148 | stringify!(sqlite3_index_info), |
| 3149 | "::", |
| 3150 | stringify!(aConstraintUsage) |
| 3151 | ) |
| 3152 | ); |
| 3153 | assert_eq!( |
| 3154 | unsafe { &(*(::std::ptr::null::<sqlite3_index_info>())).idxNum as *const _ as usize }, |
| 3155 | 40usize, |
| 3156 | concat!( |
| 3157 | "Offset of field: ", |
| 3158 | stringify!(sqlite3_index_info), |
| 3159 | "::", |
| 3160 | stringify!(idxNum) |
| 3161 | ) |
| 3162 | ); |
| 3163 | assert_eq!( |
| 3164 | unsafe { &(*(::std::ptr::null::<sqlite3_index_info>())).idxStr as *const _ as usize }, |
| 3165 | 48usize, |
| 3166 | concat!( |
| 3167 | "Offset of field: ", |
| 3168 | stringify!(sqlite3_index_info), |
| 3169 | "::", |
| 3170 | stringify!(idxStr) |
| 3171 | ) |
| 3172 | ); |
| 3173 | assert_eq!( |
| 3174 | unsafe { |
| 3175 | &(*(::std::ptr::null::<sqlite3_index_info>())).needToFreeIdxStr as *const _ as usize |
| 3176 | }, |
| 3177 | 56usize, |
| 3178 | concat!( |
| 3179 | "Offset of field: ", |
| 3180 | stringify!(sqlite3_index_info), |
| 3181 | "::", |
| 3182 | stringify!(needToFreeIdxStr) |
| 3183 | ) |
| 3184 | ); |
| 3185 | assert_eq!( |
| 3186 | unsafe { |
| 3187 | &(*(::std::ptr::null::<sqlite3_index_info>())).orderByConsumed as *const _ as usize |
| 3188 | }, |
| 3189 | 60usize, |
| 3190 | concat!( |
| 3191 | "Offset of field: ", |
| 3192 | stringify!(sqlite3_index_info), |
| 3193 | "::", |
| 3194 | stringify!(orderByConsumed) |
| 3195 | ) |
| 3196 | ); |
| 3197 | assert_eq!( |
| 3198 | unsafe { |
| 3199 | &(*(::std::ptr::null::<sqlite3_index_info>())).estimatedCost as *const _ as usize |
| 3200 | }, |
| 3201 | 64usize, |
| 3202 | concat!( |
| 3203 | "Offset of field: ", |
| 3204 | stringify!(sqlite3_index_info), |
| 3205 | "::", |
| 3206 | stringify!(estimatedCost) |
| 3207 | ) |
| 3208 | ); |
| 3209 | assert_eq!( |
| 3210 | unsafe { |
| 3211 | &(*(::std::ptr::null::<sqlite3_index_info>())).estimatedRows as *const _ as usize |
| 3212 | }, |
| 3213 | 72usize, |
| 3214 | concat!( |
| 3215 | "Offset of field: ", |
| 3216 | stringify!(sqlite3_index_info), |
| 3217 | "::", |
| 3218 | stringify!(estimatedRows) |
| 3219 | ) |
| 3220 | ); |
| 3221 | assert_eq!( |
| 3222 | unsafe { &(*(::std::ptr::null::<sqlite3_index_info>())).idxFlags as *const _ as usize }, |
| 3223 | 80usize, |
| 3224 | concat!( |
| 3225 | "Offset of field: ", |
| 3226 | stringify!(sqlite3_index_info), |
| 3227 | "::", |
| 3228 | stringify!(idxFlags) |
| 3229 | ) |
| 3230 | ); |
| 3231 | assert_eq!( |
| 3232 | unsafe { &(*(::std::ptr::null::<sqlite3_index_info>())).colUsed as *const _ as usize }, |
| 3233 | 88usize, |
| 3234 | concat!( |
| 3235 | "Offset of field: ", |
| 3236 | stringify!(sqlite3_index_info), |
| 3237 | "::", |
| 3238 | stringify!(colUsed) |
| 3239 | ) |
| 3240 | ); |
| 3241 | } |
| 3242 | extern "C" { |
| 3243 | pub fn sqlite3_create_module( |
| 3244 | db: *mut sqlite3, |
| 3245 | zName: *const ::std::os::raw::c_char, |
| 3246 | p: *const sqlite3_module, |
| 3247 | pClientData: *mut ::std::os::raw::c_void, |
| 3248 | ) -> ::std::os::raw::c_int; |
| 3249 | } |
| 3250 | extern "C" { |
| 3251 | pub fn sqlite3_create_module_v2( |
| 3252 | db: *mut sqlite3, |
| 3253 | zName: *const ::std::os::raw::c_char, |
| 3254 | p: *const sqlite3_module, |
| 3255 | pClientData: *mut ::std::os::raw::c_void, |
| 3256 | xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 3257 | ) -> ::std::os::raw::c_int; |
| 3258 | } |
| 3259 | extern "C" { |
| 3260 | pub fn sqlite3_drop_modules( |
| 3261 | db: *mut sqlite3, |
| 3262 | azKeep: *mut *const ::std::os::raw::c_char, |
| 3263 | ) -> ::std::os::raw::c_int; |
| 3264 | } |
| 3265 | #[repr(C)] |
| 3266 | #[derive(Debug, Copy, Clone)] |
| 3267 | pub struct sqlite3_vtab { |
| 3268 | pub pModule: *const sqlite3_module, |
| 3269 | pub nRef: ::std::os::raw::c_int, |
| 3270 | pub zErrMsg: *mut ::std::os::raw::c_char, |
| 3271 | } |
| 3272 | #[test] |
| 3273 | fn bindgen_test_layout_sqlite3_vtab() { |
| 3274 | assert_eq!( |
| 3275 | ::std::mem::size_of::<sqlite3_vtab>(), |
| 3276 | 24usize, |
| 3277 | concat!("Size of: ", stringify!(sqlite3_vtab)) |
| 3278 | ); |
| 3279 | assert_eq!( |
| 3280 | ::std::mem::align_of::<sqlite3_vtab>(), |
| 3281 | 8usize, |
| 3282 | concat!("Alignment of ", stringify!(sqlite3_vtab)) |
| 3283 | ); |
| 3284 | assert_eq!( |
| 3285 | unsafe { &(*(::std::ptr::null::<sqlite3_vtab>())).pModule as *const _ as usize }, |
| 3286 | 0usize, |
| 3287 | concat!( |
| 3288 | "Offset of field: ", |
| 3289 | stringify!(sqlite3_vtab), |
| 3290 | "::", |
| 3291 | stringify!(pModule) |
| 3292 | ) |
| 3293 | ); |
| 3294 | assert_eq!( |
| 3295 | unsafe { &(*(::std::ptr::null::<sqlite3_vtab>())).nRef as *const _ as usize }, |
| 3296 | 8usize, |
| 3297 | concat!( |
| 3298 | "Offset of field: ", |
| 3299 | stringify!(sqlite3_vtab), |
| 3300 | "::", |
| 3301 | stringify!(nRef) |
| 3302 | ) |
| 3303 | ); |
| 3304 | assert_eq!( |
| 3305 | unsafe { &(*(::std::ptr::null::<sqlite3_vtab>())).zErrMsg as *const _ as usize }, |
| 3306 | 16usize, |
| 3307 | concat!( |
| 3308 | "Offset of field: ", |
| 3309 | stringify!(sqlite3_vtab), |
| 3310 | "::", |
| 3311 | stringify!(zErrMsg) |
| 3312 | ) |
| 3313 | ); |
| 3314 | } |
| 3315 | #[repr(C)] |
| 3316 | #[derive(Debug, Copy, Clone)] |
| 3317 | pub struct sqlite3_vtab_cursor { |
| 3318 | pub pVtab: *mut sqlite3_vtab, |
| 3319 | } |
| 3320 | #[test] |
| 3321 | fn bindgen_test_layout_sqlite3_vtab_cursor() { |
| 3322 | assert_eq!( |
| 3323 | ::std::mem::size_of::<sqlite3_vtab_cursor>(), |
| 3324 | 8usize, |
| 3325 | concat!("Size of: ", stringify!(sqlite3_vtab_cursor)) |
| 3326 | ); |
| 3327 | assert_eq!( |
| 3328 | ::std::mem::align_of::<sqlite3_vtab_cursor>(), |
| 3329 | 8usize, |
| 3330 | concat!("Alignment of ", stringify!(sqlite3_vtab_cursor)) |
| 3331 | ); |
| 3332 | assert_eq!( |
| 3333 | unsafe { &(*(::std::ptr::null::<sqlite3_vtab_cursor>())).pVtab as *const _ as usize }, |
| 3334 | 0usize, |
| 3335 | concat!( |
| 3336 | "Offset of field: ", |
| 3337 | stringify!(sqlite3_vtab_cursor), |
| 3338 | "::", |
| 3339 | stringify!(pVtab) |
| 3340 | ) |
| 3341 | ); |
| 3342 | } |
| 3343 | extern "C" { |
| 3344 | pub fn sqlite3_declare_vtab( |
| 3345 | arg1: *mut sqlite3, |
| 3346 | zSQL: *const ::std::os::raw::c_char, |
| 3347 | ) -> ::std::os::raw::c_int; |
| 3348 | } |
| 3349 | extern "C" { |
| 3350 | pub fn sqlite3_overload_function( |
| 3351 | arg1: *mut sqlite3, |
| 3352 | zFuncName: *const ::std::os::raw::c_char, |
| 3353 | nArg: ::std::os::raw::c_int, |
| 3354 | ) -> ::std::os::raw::c_int; |
| 3355 | } |
| 3356 | #[repr(C)] |
| 3357 | #[derive(Debug, Copy, Clone)] |
| 3358 | pub struct sqlite3_blob { |
| 3359 | _unused: [u8; 0], |
| 3360 | } |
| 3361 | extern "C" { |
| 3362 | pub fn sqlite3_blob_open( |
| 3363 | arg1: *mut sqlite3, |
| 3364 | zDb: *const ::std::os::raw::c_char, |
| 3365 | zTable: *const ::std::os::raw::c_char, |
| 3366 | zColumn: *const ::std::os::raw::c_char, |
| 3367 | iRow: sqlite3_int64, |
| 3368 | flags: ::std::os::raw::c_int, |
| 3369 | ppBlob: *mut *mut sqlite3_blob, |
| 3370 | ) -> ::std::os::raw::c_int; |
| 3371 | } |
| 3372 | extern "C" { |
| 3373 | pub fn sqlite3_blob_reopen( |
| 3374 | arg1: *mut sqlite3_blob, |
| 3375 | arg2: sqlite3_int64, |
| 3376 | ) -> ::std::os::raw::c_int; |
| 3377 | } |
| 3378 | extern "C" { |
| 3379 | pub fn sqlite3_blob_close(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int; |
| 3380 | } |
| 3381 | extern "C" { |
| 3382 | pub fn sqlite3_blob_bytes(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int; |
| 3383 | } |
| 3384 | extern "C" { |
| 3385 | pub fn sqlite3_blob_read( |
| 3386 | arg1: *mut sqlite3_blob, |
| 3387 | Z: *mut ::std::os::raw::c_void, |
| 3388 | N: ::std::os::raw::c_int, |
| 3389 | iOffset: ::std::os::raw::c_int, |
| 3390 | ) -> ::std::os::raw::c_int; |
| 3391 | } |
| 3392 | extern "C" { |
| 3393 | pub fn sqlite3_blob_write( |
| 3394 | arg1: *mut sqlite3_blob, |
| 3395 | z: *const ::std::os::raw::c_void, |
| 3396 | n: ::std::os::raw::c_int, |
| 3397 | iOffset: ::std::os::raw::c_int, |
| 3398 | ) -> ::std::os::raw::c_int; |
| 3399 | } |
| 3400 | extern "C" { |
| 3401 | pub fn sqlite3_vfs_find(zVfsName: *const ::std::os::raw::c_char) -> *mut sqlite3_vfs; |
| 3402 | } |
| 3403 | extern "C" { |
| 3404 | pub fn sqlite3_vfs_register( |
| 3405 | arg1: *mut sqlite3_vfs, |
| 3406 | makeDflt: ::std::os::raw::c_int, |
| 3407 | ) -> ::std::os::raw::c_int; |
| 3408 | } |
| 3409 | extern "C" { |
| 3410 | pub fn sqlite3_vfs_unregister(arg1: *mut sqlite3_vfs) -> ::std::os::raw::c_int; |
| 3411 | } |
| 3412 | extern "C" { |
| 3413 | pub fn sqlite3_mutex_alloc(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex; |
| 3414 | } |
| 3415 | extern "C" { |
| 3416 | pub fn sqlite3_mutex_free(arg1: *mut sqlite3_mutex); |
| 3417 | } |
| 3418 | extern "C" { |
| 3419 | pub fn sqlite3_mutex_enter(arg1: *mut sqlite3_mutex); |
| 3420 | } |
| 3421 | extern "C" { |
| 3422 | pub fn sqlite3_mutex_try(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int; |
| 3423 | } |
| 3424 | extern "C" { |
| 3425 | pub fn sqlite3_mutex_leave(arg1: *mut sqlite3_mutex); |
| 3426 | } |
| 3427 | #[repr(C)] |
| 3428 | #[derive(Debug, Copy, Clone)] |
| 3429 | pub struct sqlite3_mutex_methods { |
| 3430 | pub xMutexInit: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, |
| 3431 | pub xMutexEnd: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, |
| 3432 | pub xMutexAlloc: ::std::option::Option< |
| 3433 | unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex, |
| 3434 | >, |
| 3435 | pub xMutexFree: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_mutex)>, |
| 3436 | pub xMutexEnter: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_mutex)>, |
| 3437 | pub xMutexTry: ::std::option::Option< |
| 3438 | unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int, |
| 3439 | >, |
| 3440 | pub xMutexLeave: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_mutex)>, |
| 3441 | pub xMutexHeld: ::std::option::Option< |
| 3442 | unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int, |
| 3443 | >, |
| 3444 | pub xMutexNotheld: ::std::option::Option< |
| 3445 | unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int, |
| 3446 | >, |
| 3447 | } |
| 3448 | #[test] |
| 3449 | fn bindgen_test_layout_sqlite3_mutex_methods() { |
| 3450 | assert_eq!( |
| 3451 | ::std::mem::size_of::<sqlite3_mutex_methods>(), |
| 3452 | 72usize, |
| 3453 | concat!("Size of: ", stringify!(sqlite3_mutex_methods)) |
| 3454 | ); |
| 3455 | assert_eq!( |
| 3456 | ::std::mem::align_of::<sqlite3_mutex_methods>(), |
| 3457 | 8usize, |
| 3458 | concat!("Alignment of ", stringify!(sqlite3_mutex_methods)) |
| 3459 | ); |
| 3460 | assert_eq!( |
| 3461 | unsafe { |
| 3462 | &(*(::std::ptr::null::<sqlite3_mutex_methods>())).xMutexInit as *const _ as usize |
| 3463 | }, |
| 3464 | 0usize, |
| 3465 | concat!( |
| 3466 | "Offset of field: ", |
| 3467 | stringify!(sqlite3_mutex_methods), |
| 3468 | "::", |
| 3469 | stringify!(xMutexInit) |
| 3470 | ) |
| 3471 | ); |
| 3472 | assert_eq!( |
| 3473 | unsafe { &(*(::std::ptr::null::<sqlite3_mutex_methods>())).xMutexEnd as *const _ as usize }, |
| 3474 | 8usize, |
| 3475 | concat!( |
| 3476 | "Offset of field: ", |
| 3477 | stringify!(sqlite3_mutex_methods), |
| 3478 | "::", |
| 3479 | stringify!(xMutexEnd) |
| 3480 | ) |
| 3481 | ); |
| 3482 | assert_eq!( |
| 3483 | unsafe { |
| 3484 | &(*(::std::ptr::null::<sqlite3_mutex_methods>())).xMutexAlloc as *const _ as usize |
| 3485 | }, |
| 3486 | 16usize, |
| 3487 | concat!( |
| 3488 | "Offset of field: ", |
| 3489 | stringify!(sqlite3_mutex_methods), |
| 3490 | "::", |
| 3491 | stringify!(xMutexAlloc) |
| 3492 | ) |
| 3493 | ); |
| 3494 | assert_eq!( |
| 3495 | unsafe { |
| 3496 | &(*(::std::ptr::null::<sqlite3_mutex_methods>())).xMutexFree as *const _ as usize |
| 3497 | }, |
| 3498 | 24usize, |
| 3499 | concat!( |
| 3500 | "Offset of field: ", |
| 3501 | stringify!(sqlite3_mutex_methods), |
| 3502 | "::", |
| 3503 | stringify!(xMutexFree) |
| 3504 | ) |
| 3505 | ); |
| 3506 | assert_eq!( |
| 3507 | unsafe { |
| 3508 | &(*(::std::ptr::null::<sqlite3_mutex_methods>())).xMutexEnter as *const _ as usize |
| 3509 | }, |
| 3510 | 32usize, |
| 3511 | concat!( |
| 3512 | "Offset of field: ", |
| 3513 | stringify!(sqlite3_mutex_methods), |
| 3514 | "::", |
| 3515 | stringify!(xMutexEnter) |
| 3516 | ) |
| 3517 | ); |
| 3518 | assert_eq!( |
| 3519 | unsafe { &(*(::std::ptr::null::<sqlite3_mutex_methods>())).xMutexTry as *const _ as usize }, |
| 3520 | 40usize, |
| 3521 | concat!( |
| 3522 | "Offset of field: ", |
| 3523 | stringify!(sqlite3_mutex_methods), |
| 3524 | "::", |
| 3525 | stringify!(xMutexTry) |
| 3526 | ) |
| 3527 | ); |
| 3528 | assert_eq!( |
| 3529 | unsafe { |
| 3530 | &(*(::std::ptr::null::<sqlite3_mutex_methods>())).xMutexLeave as *const _ as usize |
| 3531 | }, |
| 3532 | 48usize, |
| 3533 | concat!( |
| 3534 | "Offset of field: ", |
| 3535 | stringify!(sqlite3_mutex_methods), |
| 3536 | "::", |
| 3537 | stringify!(xMutexLeave) |
| 3538 | ) |
| 3539 | ); |
| 3540 | assert_eq!( |
| 3541 | unsafe { |
| 3542 | &(*(::std::ptr::null::<sqlite3_mutex_methods>())).xMutexHeld as *const _ as usize |
| 3543 | }, |
| 3544 | 56usize, |
| 3545 | concat!( |
| 3546 | "Offset of field: ", |
| 3547 | stringify!(sqlite3_mutex_methods), |
| 3548 | "::", |
| 3549 | stringify!(xMutexHeld) |
| 3550 | ) |
| 3551 | ); |
| 3552 | assert_eq!( |
| 3553 | unsafe { |
| 3554 | &(*(::std::ptr::null::<sqlite3_mutex_methods>())).xMutexNotheld as *const _ as usize |
| 3555 | }, |
| 3556 | 64usize, |
| 3557 | concat!( |
| 3558 | "Offset of field: ", |
| 3559 | stringify!(sqlite3_mutex_methods), |
| 3560 | "::", |
| 3561 | stringify!(xMutexNotheld) |
| 3562 | ) |
| 3563 | ); |
| 3564 | } |
| 3565 | extern "C" { |
| 3566 | pub fn sqlite3_db_mutex(arg1: *mut sqlite3) -> *mut sqlite3_mutex; |
| 3567 | } |
| 3568 | extern "C" { |
| 3569 | pub fn sqlite3_file_control( |
| 3570 | arg1: *mut sqlite3, |
| 3571 | zDbName: *const ::std::os::raw::c_char, |
| 3572 | op: ::std::os::raw::c_int, |
| 3573 | arg2: *mut ::std::os::raw::c_void, |
| 3574 | ) -> ::std::os::raw::c_int; |
| 3575 | } |
| 3576 | extern "C" { |
| 3577 | pub fn sqlite3_test_control(op: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; |
| 3578 | } |
| 3579 | extern "C" { |
| 3580 | pub fn sqlite3_keyword_count() -> ::std::os::raw::c_int; |
| 3581 | } |
| 3582 | extern "C" { |
| 3583 | pub fn sqlite3_keyword_name( |
| 3584 | arg1: ::std::os::raw::c_int, |
| 3585 | arg2: *mut *const ::std::os::raw::c_char, |
| 3586 | arg3: *mut ::std::os::raw::c_int, |
| 3587 | ) -> ::std::os::raw::c_int; |
| 3588 | } |
| 3589 | extern "C" { |
| 3590 | pub fn sqlite3_keyword_check( |
| 3591 | arg1: *const ::std::os::raw::c_char, |
| 3592 | arg2: ::std::os::raw::c_int, |
| 3593 | ) -> ::std::os::raw::c_int; |
| 3594 | } |
| 3595 | #[repr(C)] |
| 3596 | #[derive(Debug, Copy, Clone)] |
| 3597 | pub struct sqlite3_str { |
| 3598 | _unused: [u8; 0], |
| 3599 | } |
| 3600 | extern "C" { |
| 3601 | pub fn sqlite3_str_new(arg1: *mut sqlite3) -> *mut sqlite3_str; |
| 3602 | } |
| 3603 | extern "C" { |
| 3604 | pub fn sqlite3_str_finish(arg1: *mut sqlite3_str) -> *mut ::std::os::raw::c_char; |
| 3605 | } |
| 3606 | extern "C" { |
| 3607 | pub fn sqlite3_str_appendf(arg1: *mut sqlite3_str, zFormat: *const ::std::os::raw::c_char, ...); |
| 3608 | } |
| 3609 | extern "C" { |
| 3610 | pub fn sqlite3_str_append( |
| 3611 | arg1: *mut sqlite3_str, |
| 3612 | zIn: *const ::std::os::raw::c_char, |
| 3613 | N: ::std::os::raw::c_int, |
| 3614 | ); |
| 3615 | } |
| 3616 | extern "C" { |
| 3617 | pub fn sqlite3_str_appendall(arg1: *mut sqlite3_str, zIn: *const ::std::os::raw::c_char); |
| 3618 | } |
| 3619 | extern "C" { |
| 3620 | pub fn sqlite3_str_appendchar( |
| 3621 | arg1: *mut sqlite3_str, |
| 3622 | N: ::std::os::raw::c_int, |
| 3623 | C: ::std::os::raw::c_char, |
| 3624 | ); |
| 3625 | } |
| 3626 | extern "C" { |
| 3627 | pub fn sqlite3_str_reset(arg1: *mut sqlite3_str); |
| 3628 | } |
| 3629 | extern "C" { |
| 3630 | pub fn sqlite3_str_errcode(arg1: *mut sqlite3_str) -> ::std::os::raw::c_int; |
| 3631 | } |
| 3632 | extern "C" { |
| 3633 | pub fn sqlite3_str_length(arg1: *mut sqlite3_str) -> ::std::os::raw::c_int; |
| 3634 | } |
| 3635 | extern "C" { |
| 3636 | pub fn sqlite3_str_value(arg1: *mut sqlite3_str) -> *mut ::std::os::raw::c_char; |
| 3637 | } |
| 3638 | extern "C" { |
| 3639 | pub fn sqlite3_status( |
| 3640 | op: ::std::os::raw::c_int, |
| 3641 | pCurrent: *mut ::std::os::raw::c_int, |
| 3642 | pHighwater: *mut ::std::os::raw::c_int, |
| 3643 | resetFlag: ::std::os::raw::c_int, |
| 3644 | ) -> ::std::os::raw::c_int; |
| 3645 | } |
| 3646 | extern "C" { |
| 3647 | pub fn sqlite3_status64( |
| 3648 | op: ::std::os::raw::c_int, |
| 3649 | pCurrent: *mut sqlite3_int64, |
| 3650 | pHighwater: *mut sqlite3_int64, |
| 3651 | resetFlag: ::std::os::raw::c_int, |
| 3652 | ) -> ::std::os::raw::c_int; |
| 3653 | } |
| 3654 | extern "C" { |
| 3655 | pub fn sqlite3_db_status( |
| 3656 | arg1: *mut sqlite3, |
| 3657 | op: ::std::os::raw::c_int, |
| 3658 | pCur: *mut ::std::os::raw::c_int, |
| 3659 | pHiwtr: *mut ::std::os::raw::c_int, |
| 3660 | resetFlg: ::std::os::raw::c_int, |
| 3661 | ) -> ::std::os::raw::c_int; |
| 3662 | } |
| 3663 | extern "C" { |
| 3664 | pub fn sqlite3_stmt_status( |
| 3665 | arg1: *mut sqlite3_stmt, |
| 3666 | op: ::std::os::raw::c_int, |
| 3667 | resetFlg: ::std::os::raw::c_int, |
| 3668 | ) -> ::std::os::raw::c_int; |
| 3669 | } |
| 3670 | #[repr(C)] |
| 3671 | #[derive(Debug, Copy, Clone)] |
| 3672 | pub struct sqlite3_pcache { |
| 3673 | _unused: [u8; 0], |
| 3674 | } |
| 3675 | #[repr(C)] |
| 3676 | #[derive(Debug, Copy, Clone)] |
| 3677 | pub struct sqlite3_pcache_page { |
| 3678 | pub pBuf: *mut ::std::os::raw::c_void, |
| 3679 | pub pExtra: *mut ::std::os::raw::c_void, |
| 3680 | } |
| 3681 | #[test] |
| 3682 | fn bindgen_test_layout_sqlite3_pcache_page() { |
| 3683 | assert_eq!( |
| 3684 | ::std::mem::size_of::<sqlite3_pcache_page>(), |
| 3685 | 16usize, |
| 3686 | concat!("Size of: ", stringify!(sqlite3_pcache_page)) |
| 3687 | ); |
| 3688 | assert_eq!( |
| 3689 | ::std::mem::align_of::<sqlite3_pcache_page>(), |
| 3690 | 8usize, |
| 3691 | concat!("Alignment of ", stringify!(sqlite3_pcache_page)) |
| 3692 | ); |
| 3693 | assert_eq!( |
| 3694 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_page>())).pBuf as *const _ as usize }, |
| 3695 | 0usize, |
| 3696 | concat!( |
| 3697 | "Offset of field: ", |
| 3698 | stringify!(sqlite3_pcache_page), |
| 3699 | "::", |
| 3700 | stringify!(pBuf) |
| 3701 | ) |
| 3702 | ); |
| 3703 | assert_eq!( |
| 3704 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_page>())).pExtra as *const _ as usize }, |
| 3705 | 8usize, |
| 3706 | concat!( |
| 3707 | "Offset of field: ", |
| 3708 | stringify!(sqlite3_pcache_page), |
| 3709 | "::", |
| 3710 | stringify!(pExtra) |
| 3711 | ) |
| 3712 | ); |
| 3713 | } |
| 3714 | #[repr(C)] |
| 3715 | #[derive(Debug, Copy, Clone)] |
| 3716 | pub struct sqlite3_pcache_methods2 { |
| 3717 | pub iVersion: ::std::os::raw::c_int, |
| 3718 | pub pArg: *mut ::std::os::raw::c_void, |
| 3719 | pub xInit: ::std::option::Option< |
| 3720 | unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, |
| 3721 | >, |
| 3722 | pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 3723 | pub xCreate: ::std::option::Option< |
| 3724 | unsafe extern "C" fn( |
| 3725 | szPage: ::std::os::raw::c_int, |
| 3726 | szExtra: ::std::os::raw::c_int, |
| 3727 | bPurgeable: ::std::os::raw::c_int, |
| 3728 | ) -> *mut sqlite3_pcache, |
| 3729 | >, |
| 3730 | pub xCachesize: ::std::option::Option< |
| 3731 | unsafe extern "C" fn(arg1: *mut sqlite3_pcache, nCachesize: ::std::os::raw::c_int), |
| 3732 | >, |
| 3733 | pub xPagecount: ::std::option::Option< |
| 3734 | unsafe extern "C" fn(arg1: *mut sqlite3_pcache) -> ::std::os::raw::c_int, |
| 3735 | >, |
| 3736 | pub xFetch: ::std::option::Option< |
| 3737 | unsafe extern "C" fn( |
| 3738 | arg1: *mut sqlite3_pcache, |
| 3739 | key: ::std::os::raw::c_uint, |
| 3740 | createFlag: ::std::os::raw::c_int, |
| 3741 | ) -> *mut sqlite3_pcache_page, |
| 3742 | >, |
| 3743 | pub xUnpin: ::std::option::Option< |
| 3744 | unsafe extern "C" fn( |
| 3745 | arg1: *mut sqlite3_pcache, |
| 3746 | arg2: *mut sqlite3_pcache_page, |
| 3747 | discard: ::std::os::raw::c_int, |
| 3748 | ), |
| 3749 | >, |
| 3750 | pub xRekey: ::std::option::Option< |
| 3751 | unsafe extern "C" fn( |
| 3752 | arg1: *mut sqlite3_pcache, |
| 3753 | arg2: *mut sqlite3_pcache_page, |
| 3754 | oldKey: ::std::os::raw::c_uint, |
| 3755 | newKey: ::std::os::raw::c_uint, |
| 3756 | ), |
| 3757 | >, |
| 3758 | pub xTruncate: ::std::option::Option< |
| 3759 | unsafe extern "C" fn(arg1: *mut sqlite3_pcache, iLimit: ::std::os::raw::c_uint), |
| 3760 | >, |
| 3761 | pub xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_pcache)>, |
| 3762 | pub xShrink: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_pcache)>, |
| 3763 | } |
| 3764 | #[test] |
| 3765 | fn bindgen_test_layout_sqlite3_pcache_methods2() { |
| 3766 | assert_eq!( |
| 3767 | ::std::mem::size_of::<sqlite3_pcache_methods2>(), |
| 3768 | 104usize, |
| 3769 | concat!("Size of: ", stringify!(sqlite3_pcache_methods2)) |
| 3770 | ); |
| 3771 | assert_eq!( |
| 3772 | ::std::mem::align_of::<sqlite3_pcache_methods2>(), |
| 3773 | 8usize, |
| 3774 | concat!("Alignment of ", stringify!(sqlite3_pcache_methods2)) |
| 3775 | ); |
| 3776 | assert_eq!( |
| 3777 | unsafe { |
| 3778 | &(*(::std::ptr::null::<sqlite3_pcache_methods2>())).iVersion as *const _ as usize |
| 3779 | }, |
| 3780 | 0usize, |
| 3781 | concat!( |
| 3782 | "Offset of field: ", |
| 3783 | stringify!(sqlite3_pcache_methods2), |
| 3784 | "::", |
| 3785 | stringify!(iVersion) |
| 3786 | ) |
| 3787 | ); |
| 3788 | assert_eq!( |
| 3789 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_methods2>())).pArg as *const _ as usize }, |
| 3790 | 8usize, |
| 3791 | concat!( |
| 3792 | "Offset of field: ", |
| 3793 | stringify!(sqlite3_pcache_methods2), |
| 3794 | "::", |
| 3795 | stringify!(pArg) |
| 3796 | ) |
| 3797 | ); |
| 3798 | assert_eq!( |
| 3799 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_methods2>())).xInit as *const _ as usize }, |
| 3800 | 16usize, |
| 3801 | concat!( |
| 3802 | "Offset of field: ", |
| 3803 | stringify!(sqlite3_pcache_methods2), |
| 3804 | "::", |
| 3805 | stringify!(xInit) |
| 3806 | ) |
| 3807 | ); |
| 3808 | assert_eq!( |
| 3809 | unsafe { |
| 3810 | &(*(::std::ptr::null::<sqlite3_pcache_methods2>())).xShutdown as *const _ as usize |
| 3811 | }, |
| 3812 | 24usize, |
| 3813 | concat!( |
| 3814 | "Offset of field: ", |
| 3815 | stringify!(sqlite3_pcache_methods2), |
| 3816 | "::", |
| 3817 | stringify!(xShutdown) |
| 3818 | ) |
| 3819 | ); |
| 3820 | assert_eq!( |
| 3821 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_methods2>())).xCreate as *const _ as usize }, |
| 3822 | 32usize, |
| 3823 | concat!( |
| 3824 | "Offset of field: ", |
| 3825 | stringify!(sqlite3_pcache_methods2), |
| 3826 | "::", |
| 3827 | stringify!(xCreate) |
| 3828 | ) |
| 3829 | ); |
| 3830 | assert_eq!( |
| 3831 | unsafe { |
| 3832 | &(*(::std::ptr::null::<sqlite3_pcache_methods2>())).xCachesize as *const _ as usize |
| 3833 | }, |
| 3834 | 40usize, |
| 3835 | concat!( |
| 3836 | "Offset of field: ", |
| 3837 | stringify!(sqlite3_pcache_methods2), |
| 3838 | "::", |
| 3839 | stringify!(xCachesize) |
| 3840 | ) |
| 3841 | ); |
| 3842 | assert_eq!( |
| 3843 | unsafe { |
| 3844 | &(*(::std::ptr::null::<sqlite3_pcache_methods2>())).xPagecount as *const _ as usize |
| 3845 | }, |
| 3846 | 48usize, |
| 3847 | concat!( |
| 3848 | "Offset of field: ", |
| 3849 | stringify!(sqlite3_pcache_methods2), |
| 3850 | "::", |
| 3851 | stringify!(xPagecount) |
| 3852 | ) |
| 3853 | ); |
| 3854 | assert_eq!( |
| 3855 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_methods2>())).xFetch as *const _ as usize }, |
| 3856 | 56usize, |
| 3857 | concat!( |
| 3858 | "Offset of field: ", |
| 3859 | stringify!(sqlite3_pcache_methods2), |
| 3860 | "::", |
| 3861 | stringify!(xFetch) |
| 3862 | ) |
| 3863 | ); |
| 3864 | assert_eq!( |
| 3865 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_methods2>())).xUnpin as *const _ as usize }, |
| 3866 | 64usize, |
| 3867 | concat!( |
| 3868 | "Offset of field: ", |
| 3869 | stringify!(sqlite3_pcache_methods2), |
| 3870 | "::", |
| 3871 | stringify!(xUnpin) |
| 3872 | ) |
| 3873 | ); |
| 3874 | assert_eq!( |
| 3875 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_methods2>())).xRekey as *const _ as usize }, |
| 3876 | 72usize, |
| 3877 | concat!( |
| 3878 | "Offset of field: ", |
| 3879 | stringify!(sqlite3_pcache_methods2), |
| 3880 | "::", |
| 3881 | stringify!(xRekey) |
| 3882 | ) |
| 3883 | ); |
| 3884 | assert_eq!( |
| 3885 | unsafe { |
| 3886 | &(*(::std::ptr::null::<sqlite3_pcache_methods2>())).xTruncate as *const _ as usize |
| 3887 | }, |
| 3888 | 80usize, |
| 3889 | concat!( |
| 3890 | "Offset of field: ", |
| 3891 | stringify!(sqlite3_pcache_methods2), |
| 3892 | "::", |
| 3893 | stringify!(xTruncate) |
| 3894 | ) |
| 3895 | ); |
| 3896 | assert_eq!( |
| 3897 | unsafe { |
| 3898 | &(*(::std::ptr::null::<sqlite3_pcache_methods2>())).xDestroy as *const _ as usize |
| 3899 | }, |
| 3900 | 88usize, |
| 3901 | concat!( |
| 3902 | "Offset of field: ", |
| 3903 | stringify!(sqlite3_pcache_methods2), |
| 3904 | "::", |
| 3905 | stringify!(xDestroy) |
| 3906 | ) |
| 3907 | ); |
| 3908 | assert_eq!( |
| 3909 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_methods2>())).xShrink as *const _ as usize }, |
| 3910 | 96usize, |
| 3911 | concat!( |
| 3912 | "Offset of field: ", |
| 3913 | stringify!(sqlite3_pcache_methods2), |
| 3914 | "::", |
| 3915 | stringify!(xShrink) |
| 3916 | ) |
| 3917 | ); |
| 3918 | } |
| 3919 | #[repr(C)] |
| 3920 | #[derive(Debug, Copy, Clone)] |
| 3921 | pub struct sqlite3_pcache_methods { |
| 3922 | pub pArg: *mut ::std::os::raw::c_void, |
| 3923 | pub xInit: ::std::option::Option< |
| 3924 | unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, |
| 3925 | >, |
| 3926 | pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 3927 | pub xCreate: ::std::option::Option< |
| 3928 | unsafe extern "C" fn( |
| 3929 | szPage: ::std::os::raw::c_int, |
| 3930 | bPurgeable: ::std::os::raw::c_int, |
| 3931 | ) -> *mut sqlite3_pcache, |
| 3932 | >, |
| 3933 | pub xCachesize: ::std::option::Option< |
| 3934 | unsafe extern "C" fn(arg1: *mut sqlite3_pcache, nCachesize: ::std::os::raw::c_int), |
| 3935 | >, |
| 3936 | pub xPagecount: ::std::option::Option< |
| 3937 | unsafe extern "C" fn(arg1: *mut sqlite3_pcache) -> ::std::os::raw::c_int, |
| 3938 | >, |
| 3939 | pub xFetch: ::std::option::Option< |
| 3940 | unsafe extern "C" fn( |
| 3941 | arg1: *mut sqlite3_pcache, |
| 3942 | key: ::std::os::raw::c_uint, |
| 3943 | createFlag: ::std::os::raw::c_int, |
| 3944 | ) -> *mut ::std::os::raw::c_void, |
| 3945 | >, |
| 3946 | pub xUnpin: ::std::option::Option< |
| 3947 | unsafe extern "C" fn( |
| 3948 | arg1: *mut sqlite3_pcache, |
| 3949 | arg2: *mut ::std::os::raw::c_void, |
| 3950 | discard: ::std::os::raw::c_int, |
| 3951 | ), |
| 3952 | >, |
| 3953 | pub xRekey: ::std::option::Option< |
| 3954 | unsafe extern "C" fn( |
| 3955 | arg1: *mut sqlite3_pcache, |
| 3956 | arg2: *mut ::std::os::raw::c_void, |
| 3957 | oldKey: ::std::os::raw::c_uint, |
| 3958 | newKey: ::std::os::raw::c_uint, |
| 3959 | ), |
| 3960 | >, |
| 3961 | pub xTruncate: ::std::option::Option< |
| 3962 | unsafe extern "C" fn(arg1: *mut sqlite3_pcache, iLimit: ::std::os::raw::c_uint), |
| 3963 | >, |
| 3964 | pub xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_pcache)>, |
| 3965 | } |
| 3966 | #[test] |
| 3967 | fn bindgen_test_layout_sqlite3_pcache_methods() { |
| 3968 | assert_eq!( |
| 3969 | ::std::mem::size_of::<sqlite3_pcache_methods>(), |
| 3970 | 88usize, |
| 3971 | concat!("Size of: ", stringify!(sqlite3_pcache_methods)) |
| 3972 | ); |
| 3973 | assert_eq!( |
| 3974 | ::std::mem::align_of::<sqlite3_pcache_methods>(), |
| 3975 | 8usize, |
| 3976 | concat!("Alignment of ", stringify!(sqlite3_pcache_methods)) |
| 3977 | ); |
| 3978 | assert_eq!( |
| 3979 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_methods>())).pArg as *const _ as usize }, |
| 3980 | 0usize, |
| 3981 | concat!( |
| 3982 | "Offset of field: ", |
| 3983 | stringify!(sqlite3_pcache_methods), |
| 3984 | "::", |
| 3985 | stringify!(pArg) |
| 3986 | ) |
| 3987 | ); |
| 3988 | assert_eq!( |
| 3989 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_methods>())).xInit as *const _ as usize }, |
| 3990 | 8usize, |
| 3991 | concat!( |
| 3992 | "Offset of field: ", |
| 3993 | stringify!(sqlite3_pcache_methods), |
| 3994 | "::", |
| 3995 | stringify!(xInit) |
| 3996 | ) |
| 3997 | ); |
| 3998 | assert_eq!( |
| 3999 | unsafe { |
| 4000 | &(*(::std::ptr::null::<sqlite3_pcache_methods>())).xShutdown as *const _ as usize |
| 4001 | }, |
| 4002 | 16usize, |
| 4003 | concat!( |
| 4004 | "Offset of field: ", |
| 4005 | stringify!(sqlite3_pcache_methods), |
| 4006 | "::", |
| 4007 | stringify!(xShutdown) |
| 4008 | ) |
| 4009 | ); |
| 4010 | assert_eq!( |
| 4011 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_methods>())).xCreate as *const _ as usize }, |
| 4012 | 24usize, |
| 4013 | concat!( |
| 4014 | "Offset of field: ", |
| 4015 | stringify!(sqlite3_pcache_methods), |
| 4016 | "::", |
| 4017 | stringify!(xCreate) |
| 4018 | ) |
| 4019 | ); |
| 4020 | assert_eq!( |
| 4021 | unsafe { |
| 4022 | &(*(::std::ptr::null::<sqlite3_pcache_methods>())).xCachesize as *const _ as usize |
| 4023 | }, |
| 4024 | 32usize, |
| 4025 | concat!( |
| 4026 | "Offset of field: ", |
| 4027 | stringify!(sqlite3_pcache_methods), |
| 4028 | "::", |
| 4029 | stringify!(xCachesize) |
| 4030 | ) |
| 4031 | ); |
| 4032 | assert_eq!( |
| 4033 | unsafe { |
| 4034 | &(*(::std::ptr::null::<sqlite3_pcache_methods>())).xPagecount as *const _ as usize |
| 4035 | }, |
| 4036 | 40usize, |
| 4037 | concat!( |
| 4038 | "Offset of field: ", |
| 4039 | stringify!(sqlite3_pcache_methods), |
| 4040 | "::", |
| 4041 | stringify!(xPagecount) |
| 4042 | ) |
| 4043 | ); |
| 4044 | assert_eq!( |
| 4045 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_methods>())).xFetch as *const _ as usize }, |
| 4046 | 48usize, |
| 4047 | concat!( |
| 4048 | "Offset of field: ", |
| 4049 | stringify!(sqlite3_pcache_methods), |
| 4050 | "::", |
| 4051 | stringify!(xFetch) |
| 4052 | ) |
| 4053 | ); |
| 4054 | assert_eq!( |
| 4055 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_methods>())).xUnpin as *const _ as usize }, |
| 4056 | 56usize, |
| 4057 | concat!( |
| 4058 | "Offset of field: ", |
| 4059 | stringify!(sqlite3_pcache_methods), |
| 4060 | "::", |
| 4061 | stringify!(xUnpin) |
| 4062 | ) |
| 4063 | ); |
| 4064 | assert_eq!( |
| 4065 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_methods>())).xRekey as *const _ as usize }, |
| 4066 | 64usize, |
| 4067 | concat!( |
| 4068 | "Offset of field: ", |
| 4069 | stringify!(sqlite3_pcache_methods), |
| 4070 | "::", |
| 4071 | stringify!(xRekey) |
| 4072 | ) |
| 4073 | ); |
| 4074 | assert_eq!( |
| 4075 | unsafe { |
| 4076 | &(*(::std::ptr::null::<sqlite3_pcache_methods>())).xTruncate as *const _ as usize |
| 4077 | }, |
| 4078 | 72usize, |
| 4079 | concat!( |
| 4080 | "Offset of field: ", |
| 4081 | stringify!(sqlite3_pcache_methods), |
| 4082 | "::", |
| 4083 | stringify!(xTruncate) |
| 4084 | ) |
| 4085 | ); |
| 4086 | assert_eq!( |
| 4087 | unsafe { &(*(::std::ptr::null::<sqlite3_pcache_methods>())).xDestroy as *const _ as usize }, |
| 4088 | 80usize, |
| 4089 | concat!( |
| 4090 | "Offset of field: ", |
| 4091 | stringify!(sqlite3_pcache_methods), |
| 4092 | "::", |
| 4093 | stringify!(xDestroy) |
| 4094 | ) |
| 4095 | ); |
| 4096 | } |
| 4097 | #[repr(C)] |
| 4098 | #[derive(Debug, Copy, Clone)] |
| 4099 | pub struct sqlite3_backup { |
| 4100 | _unused: [u8; 0], |
| 4101 | } |
| 4102 | extern "C" { |
| 4103 | pub fn sqlite3_backup_init( |
| 4104 | pDest: *mut sqlite3, |
| 4105 | zDestName: *const ::std::os::raw::c_char, |
| 4106 | pSource: *mut sqlite3, |
| 4107 | zSourceName: *const ::std::os::raw::c_char, |
| 4108 | ) -> *mut sqlite3_backup; |
| 4109 | } |
| 4110 | extern "C" { |
| 4111 | pub fn sqlite3_backup_step( |
| 4112 | p: *mut sqlite3_backup, |
| 4113 | nPage: ::std::os::raw::c_int, |
| 4114 | ) -> ::std::os::raw::c_int; |
| 4115 | } |
| 4116 | extern "C" { |
| 4117 | pub fn sqlite3_backup_finish(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; |
| 4118 | } |
| 4119 | extern "C" { |
| 4120 | pub fn sqlite3_backup_remaining(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; |
| 4121 | } |
| 4122 | extern "C" { |
| 4123 | pub fn sqlite3_backup_pagecount(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; |
| 4124 | } |
| 4125 | extern "C" { |
| 4126 | pub fn sqlite3_unlock_notify( |
| 4127 | pBlocked: *mut sqlite3, |
| 4128 | xNotify: ::std::option::Option< |
| 4129 | unsafe extern "C" fn( |
| 4130 | apArg: *mut *mut ::std::os::raw::c_void, |
| 4131 | nArg: ::std::os::raw::c_int, |
| 4132 | ), |
| 4133 | >, |
| 4134 | pNotifyArg: *mut ::std::os::raw::c_void, |
| 4135 | ) -> ::std::os::raw::c_int; |
| 4136 | } |
| 4137 | extern "C" { |
| 4138 | pub fn sqlite3_stricmp( |
| 4139 | arg1: *const ::std::os::raw::c_char, |
| 4140 | arg2: *const ::std::os::raw::c_char, |
| 4141 | ) -> ::std::os::raw::c_int; |
| 4142 | } |
| 4143 | extern "C" { |
| 4144 | pub fn sqlite3_strnicmp( |
| 4145 | arg1: *const ::std::os::raw::c_char, |
| 4146 | arg2: *const ::std::os::raw::c_char, |
| 4147 | arg3: ::std::os::raw::c_int, |
| 4148 | ) -> ::std::os::raw::c_int; |
| 4149 | } |
| 4150 | extern "C" { |
| 4151 | pub fn sqlite3_strglob( |
| 4152 | zGlob: *const ::std::os::raw::c_char, |
| 4153 | zStr: *const ::std::os::raw::c_char, |
| 4154 | ) -> ::std::os::raw::c_int; |
| 4155 | } |
| 4156 | extern "C" { |
| 4157 | pub fn sqlite3_strlike( |
| 4158 | zGlob: *const ::std::os::raw::c_char, |
| 4159 | zStr: *const ::std::os::raw::c_char, |
| 4160 | cEsc: ::std::os::raw::c_uint, |
| 4161 | ) -> ::std::os::raw::c_int; |
| 4162 | } |
| 4163 | extern "C" { |
| 4164 | pub fn sqlite3_log( |
| 4165 | iErrCode: ::std::os::raw::c_int, |
| 4166 | zFormat: *const ::std::os::raw::c_char, |
| 4167 | ... |
| 4168 | ); |
| 4169 | } |
| 4170 | extern "C" { |
| 4171 | pub fn sqlite3_wal_hook( |
| 4172 | arg1: *mut sqlite3, |
| 4173 | arg2: ::std::option::Option< |
| 4174 | unsafe extern "C" fn( |
| 4175 | arg1: *mut ::std::os::raw::c_void, |
| 4176 | arg2: *mut sqlite3, |
| 4177 | arg3: *const ::std::os::raw::c_char, |
| 4178 | arg4: ::std::os::raw::c_int, |
| 4179 | ) -> ::std::os::raw::c_int, |
| 4180 | >, |
| 4181 | arg3: *mut ::std::os::raw::c_void, |
| 4182 | ) -> *mut ::std::os::raw::c_void; |
| 4183 | } |
| 4184 | extern "C" { |
| 4185 | pub fn sqlite3_wal_autocheckpoint( |
| 4186 | db: *mut sqlite3, |
| 4187 | N: ::std::os::raw::c_int, |
| 4188 | ) -> ::std::os::raw::c_int; |
| 4189 | } |
| 4190 | extern "C" { |
| 4191 | pub fn sqlite3_wal_checkpoint( |
| 4192 | db: *mut sqlite3, |
| 4193 | zDb: *const ::std::os::raw::c_char, |
| 4194 | ) -> ::std::os::raw::c_int; |
| 4195 | } |
| 4196 | extern "C" { |
| 4197 | pub fn sqlite3_wal_checkpoint_v2( |
| 4198 | db: *mut sqlite3, |
| 4199 | zDb: *const ::std::os::raw::c_char, |
| 4200 | eMode: ::std::os::raw::c_int, |
| 4201 | pnLog: *mut ::std::os::raw::c_int, |
| 4202 | pnCkpt: *mut ::std::os::raw::c_int, |
| 4203 | ) -> ::std::os::raw::c_int; |
| 4204 | } |
| 4205 | extern "C" { |
| 4206 | pub fn sqlite3_vtab_config( |
| 4207 | arg1: *mut sqlite3, |
| 4208 | op: ::std::os::raw::c_int, |
| 4209 | ... |
| 4210 | ) -> ::std::os::raw::c_int; |
| 4211 | } |
| 4212 | extern "C" { |
| 4213 | pub fn sqlite3_vtab_on_conflict(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 4214 | } |
| 4215 | extern "C" { |
| 4216 | pub fn sqlite3_vtab_nochange(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int; |
| 4217 | } |
| 4218 | extern "C" { |
| 4219 | pub fn sqlite3_vtab_collation( |
| 4220 | arg1: *mut sqlite3_index_info, |
| 4221 | arg2: ::std::os::raw::c_int, |
| 4222 | ) -> *const ::std::os::raw::c_char; |
| 4223 | } |
| 4224 | extern "C" { |
| 4225 | pub fn sqlite3_stmt_scanstatus( |
| 4226 | pStmt: *mut sqlite3_stmt, |
| 4227 | idx: ::std::os::raw::c_int, |
| 4228 | iScanStatusOp: ::std::os::raw::c_int, |
| 4229 | pOut: *mut ::std::os::raw::c_void, |
| 4230 | ) -> ::std::os::raw::c_int; |
| 4231 | } |
| 4232 | extern "C" { |
| 4233 | pub fn sqlite3_stmt_scanstatus_reset(arg1: *mut sqlite3_stmt); |
| 4234 | } |
| 4235 | extern "C" { |
| 4236 | pub fn sqlite3_db_cacheflush(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 4237 | } |
| 4238 | extern "C" { |
| 4239 | pub fn sqlite3_system_errno(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 4240 | } |
| 4241 | #[repr(C)] |
| 4242 | #[derive(Copy, Clone)] |
| 4243 | pub struct sqlite3_snapshot { |
| 4244 | pub hidden: [::std::os::raw::c_uchar; 48usize], |
| 4245 | } |
| 4246 | #[test] |
| 4247 | fn bindgen_test_layout_sqlite3_snapshot() { |
| 4248 | assert_eq!( |
| 4249 | ::std::mem::size_of::<sqlite3_snapshot>(), |
| 4250 | 48usize, |
| 4251 | concat!("Size of: ", stringify!(sqlite3_snapshot)) |
| 4252 | ); |
| 4253 | assert_eq!( |
| 4254 | ::std::mem::align_of::<sqlite3_snapshot>(), |
| 4255 | 1usize, |
| 4256 | concat!("Alignment of ", stringify!(sqlite3_snapshot)) |
| 4257 | ); |
| 4258 | assert_eq!( |
| 4259 | unsafe { &(*(::std::ptr::null::<sqlite3_snapshot>())).hidden as *const _ as usize }, |
| 4260 | 0usize, |
| 4261 | concat!( |
| 4262 | "Offset of field: ", |
| 4263 | stringify!(sqlite3_snapshot), |
| 4264 | "::", |
| 4265 | stringify!(hidden) |
| 4266 | ) |
| 4267 | ); |
| 4268 | } |
| 4269 | extern "C" { |
| 4270 | pub fn sqlite3_snapshot_get( |
| 4271 | db: *mut sqlite3, |
| 4272 | zSchema: *const ::std::os::raw::c_char, |
| 4273 | ppSnapshot: *mut *mut sqlite3_snapshot, |
| 4274 | ) -> ::std::os::raw::c_int; |
| 4275 | } |
| 4276 | extern "C" { |
| 4277 | pub fn sqlite3_snapshot_open( |
| 4278 | db: *mut sqlite3, |
| 4279 | zSchema: *const ::std::os::raw::c_char, |
| 4280 | pSnapshot: *mut sqlite3_snapshot, |
| 4281 | ) -> ::std::os::raw::c_int; |
| 4282 | } |
| 4283 | extern "C" { |
| 4284 | pub fn sqlite3_snapshot_free(arg1: *mut sqlite3_snapshot); |
| 4285 | } |
| 4286 | extern "C" { |
| 4287 | pub fn sqlite3_snapshot_cmp( |
| 4288 | p1: *mut sqlite3_snapshot, |
| 4289 | p2: *mut sqlite3_snapshot, |
| 4290 | ) -> ::std::os::raw::c_int; |
| 4291 | } |
| 4292 | extern "C" { |
| 4293 | pub fn sqlite3_snapshot_recover( |
| 4294 | db: *mut sqlite3, |
| 4295 | zDb: *const ::std::os::raw::c_char, |
| 4296 | ) -> ::std::os::raw::c_int; |
| 4297 | } |
| 4298 | extern "C" { |
| 4299 | pub fn sqlite3_serialize( |
| 4300 | db: *mut sqlite3, |
| 4301 | zSchema: *const ::std::os::raw::c_char, |
| 4302 | piSize: *mut sqlite3_int64, |
| 4303 | mFlags: ::std::os::raw::c_uint, |
| 4304 | ) -> *mut ::std::os::raw::c_uchar; |
| 4305 | } |
| 4306 | extern "C" { |
| 4307 | pub fn sqlite3_deserialize( |
| 4308 | db: *mut sqlite3, |
| 4309 | zSchema: *const ::std::os::raw::c_char, |
| 4310 | pData: *mut ::std::os::raw::c_uchar, |
| 4311 | szDb: sqlite3_int64, |
| 4312 | szBuf: sqlite3_int64, |
| 4313 | mFlags: ::std::os::raw::c_uint, |
| 4314 | ) -> ::std::os::raw::c_int; |
| 4315 | } |
| 4316 | pub type sqlite3_rtree_dbl = f64; |
| 4317 | extern "C" { |
| 4318 | pub fn sqlite3_rtree_geometry_callback( |
| 4319 | db: *mut sqlite3, |
| 4320 | zGeom: *const ::std::os::raw::c_char, |
| 4321 | xGeom: ::std::option::Option< |
| 4322 | unsafe extern "C" fn( |
| 4323 | arg1: *mut sqlite3_rtree_geometry, |
| 4324 | arg2: ::std::os::raw::c_int, |
| 4325 | arg3: *mut sqlite3_rtree_dbl, |
| 4326 | arg4: *mut ::std::os::raw::c_int, |
| 4327 | ) -> ::std::os::raw::c_int, |
| 4328 | >, |
| 4329 | pContext: *mut ::std::os::raw::c_void, |
| 4330 | ) -> ::std::os::raw::c_int; |
| 4331 | } |
| 4332 | #[repr(C)] |
| 4333 | #[derive(Debug, Copy, Clone)] |
| 4334 | pub struct sqlite3_rtree_geometry { |
| 4335 | pub pContext: *mut ::std::os::raw::c_void, |
| 4336 | pub nParam: ::std::os::raw::c_int, |
| 4337 | pub aParam: *mut sqlite3_rtree_dbl, |
| 4338 | pub pUser: *mut ::std::os::raw::c_void, |
| 4339 | pub xDelUser: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 4340 | } |
| 4341 | #[test] |
| 4342 | fn bindgen_test_layout_sqlite3_rtree_geometry() { |
| 4343 | assert_eq!( |
| 4344 | ::std::mem::size_of::<sqlite3_rtree_geometry>(), |
| 4345 | 40usize, |
| 4346 | concat!("Size of: ", stringify!(sqlite3_rtree_geometry)) |
| 4347 | ); |
| 4348 | assert_eq!( |
| 4349 | ::std::mem::align_of::<sqlite3_rtree_geometry>(), |
| 4350 | 8usize, |
| 4351 | concat!("Alignment of ", stringify!(sqlite3_rtree_geometry)) |
| 4352 | ); |
| 4353 | assert_eq!( |
| 4354 | unsafe { &(*(::std::ptr::null::<sqlite3_rtree_geometry>())).pContext as *const _ as usize }, |
| 4355 | 0usize, |
| 4356 | concat!( |
| 4357 | "Offset of field: ", |
| 4358 | stringify!(sqlite3_rtree_geometry), |
| 4359 | "::", |
| 4360 | stringify!(pContext) |
| 4361 | ) |
| 4362 | ); |
| 4363 | assert_eq!( |
| 4364 | unsafe { &(*(::std::ptr::null::<sqlite3_rtree_geometry>())).nParam as *const _ as usize }, |
| 4365 | 8usize, |
| 4366 | concat!( |
| 4367 | "Offset of field: ", |
| 4368 | stringify!(sqlite3_rtree_geometry), |
| 4369 | "::", |
| 4370 | stringify!(nParam) |
| 4371 | ) |
| 4372 | ); |
| 4373 | assert_eq!( |
| 4374 | unsafe { &(*(::std::ptr::null::<sqlite3_rtree_geometry>())).aParam as *const _ as usize }, |
| 4375 | 16usize, |
| 4376 | concat!( |
| 4377 | "Offset of field: ", |
| 4378 | stringify!(sqlite3_rtree_geometry), |
| 4379 | "::", |
| 4380 | stringify!(aParam) |
| 4381 | ) |
| 4382 | ); |
| 4383 | assert_eq!( |
| 4384 | unsafe { &(*(::std::ptr::null::<sqlite3_rtree_geometry>())).pUser as *const _ as usize }, |
| 4385 | 24usize, |
| 4386 | concat!( |
| 4387 | "Offset of field: ", |
| 4388 | stringify!(sqlite3_rtree_geometry), |
| 4389 | "::", |
| 4390 | stringify!(pUser) |
| 4391 | ) |
| 4392 | ); |
| 4393 | assert_eq!( |
| 4394 | unsafe { &(*(::std::ptr::null::<sqlite3_rtree_geometry>())).xDelUser as *const _ as usize }, |
| 4395 | 32usize, |
| 4396 | concat!( |
| 4397 | "Offset of field: ", |
| 4398 | stringify!(sqlite3_rtree_geometry), |
| 4399 | "::", |
| 4400 | stringify!(xDelUser) |
| 4401 | ) |
| 4402 | ); |
| 4403 | } |
| 4404 | extern "C" { |
| 4405 | pub fn sqlite3_rtree_query_callback( |
| 4406 | db: *mut sqlite3, |
| 4407 | zQueryFunc: *const ::std::os::raw::c_char, |
| 4408 | xQueryFunc: ::std::option::Option< |
| 4409 | unsafe extern "C" fn(arg1: *mut sqlite3_rtree_query_info) -> ::std::os::raw::c_int, |
| 4410 | >, |
| 4411 | pContext: *mut ::std::os::raw::c_void, |
| 4412 | xDestructor: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 4413 | ) -> ::std::os::raw::c_int; |
| 4414 | } |
| 4415 | #[repr(C)] |
| 4416 | #[derive(Debug, Copy, Clone)] |
| 4417 | pub struct sqlite3_rtree_query_info { |
| 4418 | pub pContext: *mut ::std::os::raw::c_void, |
| 4419 | pub nParam: ::std::os::raw::c_int, |
| 4420 | pub aParam: *mut sqlite3_rtree_dbl, |
| 4421 | pub pUser: *mut ::std::os::raw::c_void, |
| 4422 | pub xDelUser: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 4423 | pub aCoord: *mut sqlite3_rtree_dbl, |
| 4424 | pub anQueue: *mut ::std::os::raw::c_uint, |
| 4425 | pub nCoord: ::std::os::raw::c_int, |
| 4426 | pub iLevel: ::std::os::raw::c_int, |
| 4427 | pub mxLevel: ::std::os::raw::c_int, |
| 4428 | pub iRowid: sqlite3_int64, |
| 4429 | pub rParentScore: sqlite3_rtree_dbl, |
| 4430 | pub eParentWithin: ::std::os::raw::c_int, |
| 4431 | pub eWithin: ::std::os::raw::c_int, |
| 4432 | pub rScore: sqlite3_rtree_dbl, |
| 4433 | pub apSqlParam: *mut *mut sqlite3_value, |
| 4434 | } |
| 4435 | #[test] |
| 4436 | fn bindgen_test_layout_sqlite3_rtree_query_info() { |
| 4437 | assert_eq!( |
| 4438 | ::std::mem::size_of::<sqlite3_rtree_query_info>(), |
| 4439 | 112usize, |
| 4440 | concat!("Size of: ", stringify!(sqlite3_rtree_query_info)) |
| 4441 | ); |
| 4442 | assert_eq!( |
| 4443 | ::std::mem::align_of::<sqlite3_rtree_query_info>(), |
| 4444 | 8usize, |
| 4445 | concat!("Alignment of ", stringify!(sqlite3_rtree_query_info)) |
| 4446 | ); |
| 4447 | assert_eq!( |
| 4448 | unsafe { |
| 4449 | &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).pContext as *const _ as usize |
| 4450 | }, |
| 4451 | 0usize, |
| 4452 | concat!( |
| 4453 | "Offset of field: ", |
| 4454 | stringify!(sqlite3_rtree_query_info), |
| 4455 | "::", |
| 4456 | stringify!(pContext) |
| 4457 | ) |
| 4458 | ); |
| 4459 | assert_eq!( |
| 4460 | unsafe { &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).nParam as *const _ as usize }, |
| 4461 | 8usize, |
| 4462 | concat!( |
| 4463 | "Offset of field: ", |
| 4464 | stringify!(sqlite3_rtree_query_info), |
| 4465 | "::", |
| 4466 | stringify!(nParam) |
| 4467 | ) |
| 4468 | ); |
| 4469 | assert_eq!( |
| 4470 | unsafe { &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).aParam as *const _ as usize }, |
| 4471 | 16usize, |
| 4472 | concat!( |
| 4473 | "Offset of field: ", |
| 4474 | stringify!(sqlite3_rtree_query_info), |
| 4475 | "::", |
| 4476 | stringify!(aParam) |
| 4477 | ) |
| 4478 | ); |
| 4479 | assert_eq!( |
| 4480 | unsafe { &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).pUser as *const _ as usize }, |
| 4481 | 24usize, |
| 4482 | concat!( |
| 4483 | "Offset of field: ", |
| 4484 | stringify!(sqlite3_rtree_query_info), |
| 4485 | "::", |
| 4486 | stringify!(pUser) |
| 4487 | ) |
| 4488 | ); |
| 4489 | assert_eq!( |
| 4490 | unsafe { |
| 4491 | &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).xDelUser as *const _ as usize |
| 4492 | }, |
| 4493 | 32usize, |
| 4494 | concat!( |
| 4495 | "Offset of field: ", |
| 4496 | stringify!(sqlite3_rtree_query_info), |
| 4497 | "::", |
| 4498 | stringify!(xDelUser) |
| 4499 | ) |
| 4500 | ); |
| 4501 | assert_eq!( |
| 4502 | unsafe { &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).aCoord as *const _ as usize }, |
| 4503 | 40usize, |
| 4504 | concat!( |
| 4505 | "Offset of field: ", |
| 4506 | stringify!(sqlite3_rtree_query_info), |
| 4507 | "::", |
| 4508 | stringify!(aCoord) |
| 4509 | ) |
| 4510 | ); |
| 4511 | assert_eq!( |
| 4512 | unsafe { |
| 4513 | &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).anQueue as *const _ as usize |
| 4514 | }, |
| 4515 | 48usize, |
| 4516 | concat!( |
| 4517 | "Offset of field: ", |
| 4518 | stringify!(sqlite3_rtree_query_info), |
| 4519 | "::", |
| 4520 | stringify!(anQueue) |
| 4521 | ) |
| 4522 | ); |
| 4523 | assert_eq!( |
| 4524 | unsafe { &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).nCoord as *const _ as usize }, |
| 4525 | 56usize, |
| 4526 | concat!( |
| 4527 | "Offset of field: ", |
| 4528 | stringify!(sqlite3_rtree_query_info), |
| 4529 | "::", |
| 4530 | stringify!(nCoord) |
| 4531 | ) |
| 4532 | ); |
| 4533 | assert_eq!( |
| 4534 | unsafe { &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).iLevel as *const _ as usize }, |
| 4535 | 60usize, |
| 4536 | concat!( |
| 4537 | "Offset of field: ", |
| 4538 | stringify!(sqlite3_rtree_query_info), |
| 4539 | "::", |
| 4540 | stringify!(iLevel) |
| 4541 | ) |
| 4542 | ); |
| 4543 | assert_eq!( |
| 4544 | unsafe { |
| 4545 | &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).mxLevel as *const _ as usize |
| 4546 | }, |
| 4547 | 64usize, |
| 4548 | concat!( |
| 4549 | "Offset of field: ", |
| 4550 | stringify!(sqlite3_rtree_query_info), |
| 4551 | "::", |
| 4552 | stringify!(mxLevel) |
| 4553 | ) |
| 4554 | ); |
| 4555 | assert_eq!( |
| 4556 | unsafe { &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).iRowid as *const _ as usize }, |
| 4557 | 72usize, |
| 4558 | concat!( |
| 4559 | "Offset of field: ", |
| 4560 | stringify!(sqlite3_rtree_query_info), |
| 4561 | "::", |
| 4562 | stringify!(iRowid) |
| 4563 | ) |
| 4564 | ); |
| 4565 | assert_eq!( |
| 4566 | unsafe { |
| 4567 | &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).rParentScore as *const _ as usize |
| 4568 | }, |
| 4569 | 80usize, |
| 4570 | concat!( |
| 4571 | "Offset of field: ", |
| 4572 | stringify!(sqlite3_rtree_query_info), |
| 4573 | "::", |
| 4574 | stringify!(rParentScore) |
| 4575 | ) |
| 4576 | ); |
| 4577 | assert_eq!( |
| 4578 | unsafe { |
| 4579 | &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).eParentWithin as *const _ as usize |
| 4580 | }, |
| 4581 | 88usize, |
| 4582 | concat!( |
| 4583 | "Offset of field: ", |
| 4584 | stringify!(sqlite3_rtree_query_info), |
| 4585 | "::", |
| 4586 | stringify!(eParentWithin) |
| 4587 | ) |
| 4588 | ); |
| 4589 | assert_eq!( |
| 4590 | unsafe { |
| 4591 | &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).eWithin as *const _ as usize |
| 4592 | }, |
| 4593 | 92usize, |
| 4594 | concat!( |
| 4595 | "Offset of field: ", |
| 4596 | stringify!(sqlite3_rtree_query_info), |
| 4597 | "::", |
| 4598 | stringify!(eWithin) |
| 4599 | ) |
| 4600 | ); |
| 4601 | assert_eq!( |
| 4602 | unsafe { &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).rScore as *const _ as usize }, |
| 4603 | 96usize, |
| 4604 | concat!( |
| 4605 | "Offset of field: ", |
| 4606 | stringify!(sqlite3_rtree_query_info), |
| 4607 | "::", |
| 4608 | stringify!(rScore) |
| 4609 | ) |
| 4610 | ); |
| 4611 | assert_eq!( |
| 4612 | unsafe { |
| 4613 | &(*(::std::ptr::null::<sqlite3_rtree_query_info>())).apSqlParam as *const _ as usize |
| 4614 | }, |
| 4615 | 104usize, |
| 4616 | concat!( |
| 4617 | "Offset of field: ", |
| 4618 | stringify!(sqlite3_rtree_query_info), |
| 4619 | "::", |
| 4620 | stringify!(apSqlParam) |
| 4621 | ) |
| 4622 | ); |
| 4623 | } |
| 4624 | #[repr(C)] |
| 4625 | #[derive(Debug, Copy, Clone)] |
| 4626 | pub struct Fts5Context { |
| 4627 | _unused: [u8; 0], |
| 4628 | } |
| 4629 | pub type fts5_extension_function = ::std::option::Option< |
| 4630 | unsafe extern "C" fn( |
| 4631 | pApi: *const Fts5ExtensionApi, |
| 4632 | pFts: *mut Fts5Context, |
| 4633 | pCtx: *mut sqlite3_context, |
| 4634 | nVal: ::std::os::raw::c_int, |
| 4635 | apVal: *mut *mut sqlite3_value, |
| 4636 | ), |
| 4637 | >; |
| 4638 | #[repr(C)] |
| 4639 | #[derive(Debug, Copy, Clone)] |
| 4640 | pub struct Fts5PhraseIter { |
| 4641 | pub a: *const ::std::os::raw::c_uchar, |
| 4642 | pub b: *const ::std::os::raw::c_uchar, |
| 4643 | } |
| 4644 | #[test] |
| 4645 | fn bindgen_test_layout_Fts5PhraseIter() { |
| 4646 | assert_eq!( |
| 4647 | ::std::mem::size_of::<Fts5PhraseIter>(), |
| 4648 | 16usize, |
| 4649 | concat!("Size of: ", stringify!(Fts5PhraseIter)) |
| 4650 | ); |
| 4651 | assert_eq!( |
| 4652 | ::std::mem::align_of::<Fts5PhraseIter>(), |
| 4653 | 8usize, |
| 4654 | concat!("Alignment of ", stringify!(Fts5PhraseIter)) |
| 4655 | ); |
| 4656 | assert_eq!( |
| 4657 | unsafe { &(*(::std::ptr::null::<Fts5PhraseIter>())).a as *const _ as usize }, |
| 4658 | 0usize, |
| 4659 | concat!( |
| 4660 | "Offset of field: ", |
| 4661 | stringify!(Fts5PhraseIter), |
| 4662 | "::", |
| 4663 | stringify!(a) |
| 4664 | ) |
| 4665 | ); |
| 4666 | assert_eq!( |
| 4667 | unsafe { &(*(::std::ptr::null::<Fts5PhraseIter>())).b as *const _ as usize }, |
| 4668 | 8usize, |
| 4669 | concat!( |
| 4670 | "Offset of field: ", |
| 4671 | stringify!(Fts5PhraseIter), |
| 4672 | "::", |
| 4673 | stringify!(b) |
| 4674 | ) |
| 4675 | ); |
| 4676 | } |
| 4677 | #[repr(C)] |
| 4678 | #[derive(Debug, Copy, Clone)] |
| 4679 | pub struct Fts5ExtensionApi { |
| 4680 | pub iVersion: ::std::os::raw::c_int, |
| 4681 | pub xUserData: ::std::option::Option< |
| 4682 | unsafe extern "C" fn(arg1: *mut Fts5Context) -> *mut ::std::os::raw::c_void, |
| 4683 | >, |
| 4684 | pub xColumnCount: ::std::option::Option< |
| 4685 | unsafe extern "C" fn(arg1: *mut Fts5Context) -> ::std::os::raw::c_int, |
| 4686 | >, |
| 4687 | pub xRowCount: ::std::option::Option< |
| 4688 | unsafe extern "C" fn( |
| 4689 | arg1: *mut Fts5Context, |
| 4690 | pnRow: *mut sqlite3_int64, |
| 4691 | ) -> ::std::os::raw::c_int, |
| 4692 | >, |
| 4693 | pub xColumnTotalSize: ::std::option::Option< |
| 4694 | unsafe extern "C" fn( |
| 4695 | arg1: *mut Fts5Context, |
| 4696 | iCol: ::std::os::raw::c_int, |
| 4697 | pnToken: *mut sqlite3_int64, |
| 4698 | ) -> ::std::os::raw::c_int, |
| 4699 | >, |
| 4700 | pub xTokenize: ::std::option::Option< |
| 4701 | unsafe extern "C" fn( |
| 4702 | arg1: *mut Fts5Context, |
| 4703 | pText: *const ::std::os::raw::c_char, |
| 4704 | nText: ::std::os::raw::c_int, |
| 4705 | pCtx: *mut ::std::os::raw::c_void, |
| 4706 | xToken: ::std::option::Option< |
| 4707 | unsafe extern "C" fn( |
| 4708 | arg1: *mut ::std::os::raw::c_void, |
| 4709 | arg2: ::std::os::raw::c_int, |
| 4710 | arg3: *const ::std::os::raw::c_char, |
| 4711 | arg4: ::std::os::raw::c_int, |
| 4712 | arg5: ::std::os::raw::c_int, |
| 4713 | arg6: ::std::os::raw::c_int, |
| 4714 | ) -> ::std::os::raw::c_int, |
| 4715 | >, |
| 4716 | ) -> ::std::os::raw::c_int, |
| 4717 | >, |
| 4718 | pub xPhraseCount: ::std::option::Option< |
| 4719 | unsafe extern "C" fn(arg1: *mut Fts5Context) -> ::std::os::raw::c_int, |
| 4720 | >, |
| 4721 | pub xPhraseSize: ::std::option::Option< |
| 4722 | unsafe extern "C" fn( |
| 4723 | arg1: *mut Fts5Context, |
| 4724 | iPhrase: ::std::os::raw::c_int, |
| 4725 | ) -> ::std::os::raw::c_int, |
| 4726 | >, |
| 4727 | pub xInstCount: ::std::option::Option< |
| 4728 | unsafe extern "C" fn( |
| 4729 | arg1: *mut Fts5Context, |
| 4730 | pnInst: *mut ::std::os::raw::c_int, |
| 4731 | ) -> ::std::os::raw::c_int, |
| 4732 | >, |
| 4733 | pub xInst: ::std::option::Option< |
| 4734 | unsafe extern "C" fn( |
| 4735 | arg1: *mut Fts5Context, |
| 4736 | iIdx: ::std::os::raw::c_int, |
| 4737 | piPhrase: *mut ::std::os::raw::c_int, |
| 4738 | piCol: *mut ::std::os::raw::c_int, |
| 4739 | piOff: *mut ::std::os::raw::c_int, |
| 4740 | ) -> ::std::os::raw::c_int, |
| 4741 | >, |
| 4742 | pub xRowid: |
| 4743 | ::std::option::Option<unsafe extern "C" fn(arg1: *mut Fts5Context) -> sqlite3_int64>, |
| 4744 | pub xColumnText: ::std::option::Option< |
| 4745 | unsafe extern "C" fn( |
| 4746 | arg1: *mut Fts5Context, |
| 4747 | iCol: ::std::os::raw::c_int, |
| 4748 | pz: *mut *const ::std::os::raw::c_char, |
| 4749 | pn: *mut ::std::os::raw::c_int, |
| 4750 | ) -> ::std::os::raw::c_int, |
| 4751 | >, |
| 4752 | pub xColumnSize: ::std::option::Option< |
| 4753 | unsafe extern "C" fn( |
| 4754 | arg1: *mut Fts5Context, |
| 4755 | iCol: ::std::os::raw::c_int, |
| 4756 | pnToken: *mut ::std::os::raw::c_int, |
| 4757 | ) -> ::std::os::raw::c_int, |
| 4758 | >, |
| 4759 | pub xQueryPhrase: ::std::option::Option< |
| 4760 | unsafe extern "C" fn( |
| 4761 | arg1: *mut Fts5Context, |
| 4762 | iPhrase: ::std::os::raw::c_int, |
| 4763 | pUserData: *mut ::std::os::raw::c_void, |
| 4764 | arg2: ::std::option::Option< |
| 4765 | unsafe extern "C" fn( |
| 4766 | arg1: *const Fts5ExtensionApi, |
| 4767 | arg2: *mut Fts5Context, |
| 4768 | arg3: *mut ::std::os::raw::c_void, |
| 4769 | ) -> ::std::os::raw::c_int, |
| 4770 | >, |
| 4771 | ) -> ::std::os::raw::c_int, |
| 4772 | >, |
| 4773 | pub xSetAuxdata: ::std::option::Option< |
| 4774 | unsafe extern "C" fn( |
| 4775 | arg1: *mut Fts5Context, |
| 4776 | pAux: *mut ::std::os::raw::c_void, |
| 4777 | xDelete: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 4778 | ) -> ::std::os::raw::c_int, |
| 4779 | >, |
| 4780 | pub xGetAuxdata: ::std::option::Option< |
| 4781 | unsafe extern "C" fn( |
| 4782 | arg1: *mut Fts5Context, |
| 4783 | bClear: ::std::os::raw::c_int, |
| 4784 | ) -> *mut ::std::os::raw::c_void, |
| 4785 | >, |
| 4786 | pub xPhraseFirst: ::std::option::Option< |
| 4787 | unsafe extern "C" fn( |
| 4788 | arg1: *mut Fts5Context, |
| 4789 | iPhrase: ::std::os::raw::c_int, |
| 4790 | arg2: *mut Fts5PhraseIter, |
| 4791 | arg3: *mut ::std::os::raw::c_int, |
| 4792 | arg4: *mut ::std::os::raw::c_int, |
| 4793 | ) -> ::std::os::raw::c_int, |
| 4794 | >, |
| 4795 | pub xPhraseNext: ::std::option::Option< |
| 4796 | unsafe extern "C" fn( |
| 4797 | arg1: *mut Fts5Context, |
| 4798 | arg2: *mut Fts5PhraseIter, |
| 4799 | piCol: *mut ::std::os::raw::c_int, |
| 4800 | piOff: *mut ::std::os::raw::c_int, |
| 4801 | ), |
| 4802 | >, |
| 4803 | pub xPhraseFirstColumn: ::std::option::Option< |
| 4804 | unsafe extern "C" fn( |
| 4805 | arg1: *mut Fts5Context, |
| 4806 | iPhrase: ::std::os::raw::c_int, |
| 4807 | arg2: *mut Fts5PhraseIter, |
| 4808 | arg3: *mut ::std::os::raw::c_int, |
| 4809 | ) -> ::std::os::raw::c_int, |
| 4810 | >, |
| 4811 | pub xPhraseNextColumn: ::std::option::Option< |
| 4812 | unsafe extern "C" fn( |
| 4813 | arg1: *mut Fts5Context, |
| 4814 | arg2: *mut Fts5PhraseIter, |
| 4815 | piCol: *mut ::std::os::raw::c_int, |
| 4816 | ), |
| 4817 | >, |
| 4818 | } |
| 4819 | #[test] |
| 4820 | fn bindgen_test_layout_Fts5ExtensionApi() { |
| 4821 | assert_eq!( |
| 4822 | ::std::mem::size_of::<Fts5ExtensionApi>(), |
| 4823 | 160usize, |
| 4824 | concat!("Size of: ", stringify!(Fts5ExtensionApi)) |
| 4825 | ); |
| 4826 | assert_eq!( |
| 4827 | ::std::mem::align_of::<Fts5ExtensionApi>(), |
| 4828 | 8usize, |
| 4829 | concat!("Alignment of ", stringify!(Fts5ExtensionApi)) |
| 4830 | ); |
| 4831 | assert_eq!( |
| 4832 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).iVersion as *const _ as usize }, |
| 4833 | 0usize, |
| 4834 | concat!( |
| 4835 | "Offset of field: ", |
| 4836 | stringify!(Fts5ExtensionApi), |
| 4837 | "::", |
| 4838 | stringify!(iVersion) |
| 4839 | ) |
| 4840 | ); |
| 4841 | assert_eq!( |
| 4842 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xUserData as *const _ as usize }, |
| 4843 | 8usize, |
| 4844 | concat!( |
| 4845 | "Offset of field: ", |
| 4846 | stringify!(Fts5ExtensionApi), |
| 4847 | "::", |
| 4848 | stringify!(xUserData) |
| 4849 | ) |
| 4850 | ); |
| 4851 | assert_eq!( |
| 4852 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xColumnCount as *const _ as usize }, |
| 4853 | 16usize, |
| 4854 | concat!( |
| 4855 | "Offset of field: ", |
| 4856 | stringify!(Fts5ExtensionApi), |
| 4857 | "::", |
| 4858 | stringify!(xColumnCount) |
| 4859 | ) |
| 4860 | ); |
| 4861 | assert_eq!( |
| 4862 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xRowCount as *const _ as usize }, |
| 4863 | 24usize, |
| 4864 | concat!( |
| 4865 | "Offset of field: ", |
| 4866 | stringify!(Fts5ExtensionApi), |
| 4867 | "::", |
| 4868 | stringify!(xRowCount) |
| 4869 | ) |
| 4870 | ); |
| 4871 | assert_eq!( |
| 4872 | unsafe { |
| 4873 | &(*(::std::ptr::null::<Fts5ExtensionApi>())).xColumnTotalSize as *const _ as usize |
| 4874 | }, |
| 4875 | 32usize, |
| 4876 | concat!( |
| 4877 | "Offset of field: ", |
| 4878 | stringify!(Fts5ExtensionApi), |
| 4879 | "::", |
| 4880 | stringify!(xColumnTotalSize) |
| 4881 | ) |
| 4882 | ); |
| 4883 | assert_eq!( |
| 4884 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xTokenize as *const _ as usize }, |
| 4885 | 40usize, |
| 4886 | concat!( |
| 4887 | "Offset of field: ", |
| 4888 | stringify!(Fts5ExtensionApi), |
| 4889 | "::", |
| 4890 | stringify!(xTokenize) |
| 4891 | ) |
| 4892 | ); |
| 4893 | assert_eq!( |
| 4894 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xPhraseCount as *const _ as usize }, |
| 4895 | 48usize, |
| 4896 | concat!( |
| 4897 | "Offset of field: ", |
| 4898 | stringify!(Fts5ExtensionApi), |
| 4899 | "::", |
| 4900 | stringify!(xPhraseCount) |
| 4901 | ) |
| 4902 | ); |
| 4903 | assert_eq!( |
| 4904 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xPhraseSize as *const _ as usize }, |
| 4905 | 56usize, |
| 4906 | concat!( |
| 4907 | "Offset of field: ", |
| 4908 | stringify!(Fts5ExtensionApi), |
| 4909 | "::", |
| 4910 | stringify!(xPhraseSize) |
| 4911 | ) |
| 4912 | ); |
| 4913 | assert_eq!( |
| 4914 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xInstCount as *const _ as usize }, |
| 4915 | 64usize, |
| 4916 | concat!( |
| 4917 | "Offset of field: ", |
| 4918 | stringify!(Fts5ExtensionApi), |
| 4919 | "::", |
| 4920 | stringify!(xInstCount) |
| 4921 | ) |
| 4922 | ); |
| 4923 | assert_eq!( |
| 4924 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xInst as *const _ as usize }, |
| 4925 | 72usize, |
| 4926 | concat!( |
| 4927 | "Offset of field: ", |
| 4928 | stringify!(Fts5ExtensionApi), |
| 4929 | "::", |
| 4930 | stringify!(xInst) |
| 4931 | ) |
| 4932 | ); |
| 4933 | assert_eq!( |
| 4934 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xRowid as *const _ as usize }, |
| 4935 | 80usize, |
| 4936 | concat!( |
| 4937 | "Offset of field: ", |
| 4938 | stringify!(Fts5ExtensionApi), |
| 4939 | "::", |
| 4940 | stringify!(xRowid) |
| 4941 | ) |
| 4942 | ); |
| 4943 | assert_eq!( |
| 4944 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xColumnText as *const _ as usize }, |
| 4945 | 88usize, |
| 4946 | concat!( |
| 4947 | "Offset of field: ", |
| 4948 | stringify!(Fts5ExtensionApi), |
| 4949 | "::", |
| 4950 | stringify!(xColumnText) |
| 4951 | ) |
| 4952 | ); |
| 4953 | assert_eq!( |
| 4954 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xColumnSize as *const _ as usize }, |
| 4955 | 96usize, |
| 4956 | concat!( |
| 4957 | "Offset of field: ", |
| 4958 | stringify!(Fts5ExtensionApi), |
| 4959 | "::", |
| 4960 | stringify!(xColumnSize) |
| 4961 | ) |
| 4962 | ); |
| 4963 | assert_eq!( |
| 4964 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xQueryPhrase as *const _ as usize }, |
| 4965 | 104usize, |
| 4966 | concat!( |
| 4967 | "Offset of field: ", |
| 4968 | stringify!(Fts5ExtensionApi), |
| 4969 | "::", |
| 4970 | stringify!(xQueryPhrase) |
| 4971 | ) |
| 4972 | ); |
| 4973 | assert_eq!( |
| 4974 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xSetAuxdata as *const _ as usize }, |
| 4975 | 112usize, |
| 4976 | concat!( |
| 4977 | "Offset of field: ", |
| 4978 | stringify!(Fts5ExtensionApi), |
| 4979 | "::", |
| 4980 | stringify!(xSetAuxdata) |
| 4981 | ) |
| 4982 | ); |
| 4983 | assert_eq!( |
| 4984 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xGetAuxdata as *const _ as usize }, |
| 4985 | 120usize, |
| 4986 | concat!( |
| 4987 | "Offset of field: ", |
| 4988 | stringify!(Fts5ExtensionApi), |
| 4989 | "::", |
| 4990 | stringify!(xGetAuxdata) |
| 4991 | ) |
| 4992 | ); |
| 4993 | assert_eq!( |
| 4994 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xPhraseFirst as *const _ as usize }, |
| 4995 | 128usize, |
| 4996 | concat!( |
| 4997 | "Offset of field: ", |
| 4998 | stringify!(Fts5ExtensionApi), |
| 4999 | "::", |
| 5000 | stringify!(xPhraseFirst) |
| 5001 | ) |
| 5002 | ); |
| 5003 | assert_eq!( |
| 5004 | unsafe { &(*(::std::ptr::null::<Fts5ExtensionApi>())).xPhraseNext as *const _ as usize }, |
| 5005 | 136usize, |
| 5006 | concat!( |
| 5007 | "Offset of field: ", |
| 5008 | stringify!(Fts5ExtensionApi), |
| 5009 | "::", |
| 5010 | stringify!(xPhraseNext) |
| 5011 | ) |
| 5012 | ); |
| 5013 | assert_eq!( |
| 5014 | unsafe { |
| 5015 | &(*(::std::ptr::null::<Fts5ExtensionApi>())).xPhraseFirstColumn as *const _ as usize |
| 5016 | }, |
| 5017 | 144usize, |
| 5018 | concat!( |
| 5019 | "Offset of field: ", |
| 5020 | stringify!(Fts5ExtensionApi), |
| 5021 | "::", |
| 5022 | stringify!(xPhraseFirstColumn) |
| 5023 | ) |
| 5024 | ); |
| 5025 | assert_eq!( |
| 5026 | unsafe { |
| 5027 | &(*(::std::ptr::null::<Fts5ExtensionApi>())).xPhraseNextColumn as *const _ as usize |
| 5028 | }, |
| 5029 | 152usize, |
| 5030 | concat!( |
| 5031 | "Offset of field: ", |
| 5032 | stringify!(Fts5ExtensionApi), |
| 5033 | "::", |
| 5034 | stringify!(xPhraseNextColumn) |
| 5035 | ) |
| 5036 | ); |
| 5037 | } |
| 5038 | #[repr(C)] |
| 5039 | #[derive(Debug, Copy, Clone)] |
| 5040 | pub struct Fts5Tokenizer { |
| 5041 | _unused: [u8; 0], |
| 5042 | } |
| 5043 | #[repr(C)] |
| 5044 | #[derive(Debug, Copy, Clone)] |
| 5045 | pub struct fts5_tokenizer { |
| 5046 | pub xCreate: ::std::option::Option< |
| 5047 | unsafe extern "C" fn( |
| 5048 | arg1: *mut ::std::os::raw::c_void, |
| 5049 | azArg: *mut *const ::std::os::raw::c_char, |
| 5050 | nArg: ::std::os::raw::c_int, |
| 5051 | ppOut: *mut *mut Fts5Tokenizer, |
| 5052 | ) -> ::std::os::raw::c_int, |
| 5053 | >, |
| 5054 | pub xDelete: ::std::option::Option<unsafe extern "C" fn(arg1: *mut Fts5Tokenizer)>, |
| 5055 | pub xTokenize: ::std::option::Option< |
| 5056 | unsafe extern "C" fn( |
| 5057 | arg1: *mut Fts5Tokenizer, |
| 5058 | pCtx: *mut ::std::os::raw::c_void, |
| 5059 | flags: ::std::os::raw::c_int, |
| 5060 | pText: *const ::std::os::raw::c_char, |
| 5061 | nText: ::std::os::raw::c_int, |
| 5062 | xToken: ::std::option::Option< |
| 5063 | unsafe extern "C" fn( |
| 5064 | pCtx: *mut ::std::os::raw::c_void, |
| 5065 | tflags: ::std::os::raw::c_int, |
| 5066 | pToken: *const ::std::os::raw::c_char, |
| 5067 | nToken: ::std::os::raw::c_int, |
| 5068 | iStart: ::std::os::raw::c_int, |
| 5069 | iEnd: ::std::os::raw::c_int, |
| 5070 | ) -> ::std::os::raw::c_int, |
| 5071 | >, |
| 5072 | ) -> ::std::os::raw::c_int, |
| 5073 | >, |
| 5074 | } |
| 5075 | #[test] |
| 5076 | fn bindgen_test_layout_fts5_tokenizer() { |
| 5077 | assert_eq!( |
| 5078 | ::std::mem::size_of::<fts5_tokenizer>(), |
| 5079 | 24usize, |
| 5080 | concat!("Size of: ", stringify!(fts5_tokenizer)) |
| 5081 | ); |
| 5082 | assert_eq!( |
| 5083 | ::std::mem::align_of::<fts5_tokenizer>(), |
| 5084 | 8usize, |
| 5085 | concat!("Alignment of ", stringify!(fts5_tokenizer)) |
| 5086 | ); |
| 5087 | assert_eq!( |
| 5088 | unsafe { &(*(::std::ptr::null::<fts5_tokenizer>())).xCreate as *const _ as usize }, |
| 5089 | 0usize, |
| 5090 | concat!( |
| 5091 | "Offset of field: ", |
| 5092 | stringify!(fts5_tokenizer), |
| 5093 | "::", |
| 5094 | stringify!(xCreate) |
| 5095 | ) |
| 5096 | ); |
| 5097 | assert_eq!( |
| 5098 | unsafe { &(*(::std::ptr::null::<fts5_tokenizer>())).xDelete as *const _ as usize }, |
| 5099 | 8usize, |
| 5100 | concat!( |
| 5101 | "Offset of field: ", |
| 5102 | stringify!(fts5_tokenizer), |
| 5103 | "::", |
| 5104 | stringify!(xDelete) |
| 5105 | ) |
| 5106 | ); |
| 5107 | assert_eq!( |
| 5108 | unsafe { &(*(::std::ptr::null::<fts5_tokenizer>())).xTokenize as *const _ as usize }, |
| 5109 | 16usize, |
| 5110 | concat!( |
| 5111 | "Offset of field: ", |
| 5112 | stringify!(fts5_tokenizer), |
| 5113 | "::", |
| 5114 | stringify!(xTokenize) |
| 5115 | ) |
| 5116 | ); |
| 5117 | } |
| 5118 | #[repr(C)] |
| 5119 | #[derive(Debug, Copy, Clone)] |
| 5120 | pub struct fts5_api { |
| 5121 | pub iVersion: ::std::os::raw::c_int, |
| 5122 | pub xCreateTokenizer: ::std::option::Option< |
| 5123 | unsafe extern "C" fn( |
| 5124 | pApi: *mut fts5_api, |
| 5125 | zName: *const ::std::os::raw::c_char, |
| 5126 | pContext: *mut ::std::os::raw::c_void, |
| 5127 | pTokenizer: *mut fts5_tokenizer, |
| 5128 | xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 5129 | ) -> ::std::os::raw::c_int, |
| 5130 | >, |
| 5131 | pub xFindTokenizer: ::std::option::Option< |
| 5132 | unsafe extern "C" fn( |
| 5133 | pApi: *mut fts5_api, |
| 5134 | zName: *const ::std::os::raw::c_char, |
| 5135 | ppContext: *mut *mut ::std::os::raw::c_void, |
| 5136 | pTokenizer: *mut fts5_tokenizer, |
| 5137 | ) -> ::std::os::raw::c_int, |
| 5138 | >, |
| 5139 | pub xCreateFunction: ::std::option::Option< |
| 5140 | unsafe extern "C" fn( |
| 5141 | pApi: *mut fts5_api, |
| 5142 | zName: *const ::std::os::raw::c_char, |
| 5143 | pContext: *mut ::std::os::raw::c_void, |
| 5144 | xFunction: fts5_extension_function, |
| 5145 | xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 5146 | ) -> ::std::os::raw::c_int, |
| 5147 | >, |
| 5148 | } |
| 5149 | #[test] |
| 5150 | fn bindgen_test_layout_fts5_api() { |
| 5151 | assert_eq!( |
| 5152 | ::std::mem::size_of::<fts5_api>(), |
| 5153 | 32usize, |
| 5154 | concat!("Size of: ", stringify!(fts5_api)) |
| 5155 | ); |
| 5156 | assert_eq!( |
| 5157 | ::std::mem::align_of::<fts5_api>(), |
| 5158 | 8usize, |
| 5159 | concat!("Alignment of ", stringify!(fts5_api)) |
| 5160 | ); |
| 5161 | assert_eq!( |
| 5162 | unsafe { &(*(::std::ptr::null::<fts5_api>())).iVersion as *const _ as usize }, |
| 5163 | 0usize, |
| 5164 | concat!( |
| 5165 | "Offset of field: ", |
| 5166 | stringify!(fts5_api), |
| 5167 | "::", |
| 5168 | stringify!(iVersion) |
| 5169 | ) |
| 5170 | ); |
| 5171 | assert_eq!( |
| 5172 | unsafe { &(*(::std::ptr::null::<fts5_api>())).xCreateTokenizer as *const _ as usize }, |
| 5173 | 8usize, |
| 5174 | concat!( |
| 5175 | "Offset of field: ", |
| 5176 | stringify!(fts5_api), |
| 5177 | "::", |
| 5178 | stringify!(xCreateTokenizer) |
| 5179 | ) |
| 5180 | ); |
| 5181 | assert_eq!( |
| 5182 | unsafe { &(*(::std::ptr::null::<fts5_api>())).xFindTokenizer as *const _ as usize }, |
| 5183 | 16usize, |
| 5184 | concat!( |
| 5185 | "Offset of field: ", |
| 5186 | stringify!(fts5_api), |
| 5187 | "::", |
| 5188 | stringify!(xFindTokenizer) |
| 5189 | ) |
| 5190 | ); |
| 5191 | assert_eq!( |
| 5192 | unsafe { &(*(::std::ptr::null::<fts5_api>())).xCreateFunction as *const _ as usize }, |
| 5193 | 24usize, |
| 5194 | concat!( |
| 5195 | "Offset of field: ", |
| 5196 | stringify!(fts5_api), |
| 5197 | "::", |
| 5198 | stringify!(xCreateFunction) |
| 5199 | ) |
| 5200 | ); |
| 5201 | } |
| 5202 | #[repr(C)] |
| 5203 | #[derive(Debug, Copy, Clone)] |
| 5204 | pub struct __va_list { |
| 5205 | pub __stack: *mut ::std::os::raw::c_void, |
| 5206 | pub __gr_top: *mut ::std::os::raw::c_void, |
| 5207 | pub __vr_top: *mut ::std::os::raw::c_void, |
| 5208 | pub __gr_offs: ::std::os::raw::c_int, |
| 5209 | pub __vr_offs: ::std::os::raw::c_int, |
| 5210 | } |
| 5211 | #[test] |
| 5212 | fn bindgen_test_layout___va_list() { |
| 5213 | assert_eq!( |
| 5214 | ::std::mem::size_of::<__va_list>(), |
| 5215 | 32usize, |
| 5216 | concat!("Size of: ", stringify!(__va_list)) |
| 5217 | ); |
| 5218 | assert_eq!( |
| 5219 | ::std::mem::align_of::<__va_list>(), |
| 5220 | 8usize, |
| 5221 | concat!("Alignment of ", stringify!(__va_list)) |
| 5222 | ); |
| 5223 | assert_eq!( |
| 5224 | unsafe { &(*(::std::ptr::null::<__va_list>())).__stack as *const _ as usize }, |
| 5225 | 0usize, |
| 5226 | concat!( |
| 5227 | "Offset of field: ", |
| 5228 | stringify!(__va_list), |
| 5229 | "::", |
| 5230 | stringify!(__stack) |
| 5231 | ) |
| 5232 | ); |
| 5233 | assert_eq!( |
| 5234 | unsafe { &(*(::std::ptr::null::<__va_list>())).__gr_top as *const _ as usize }, |
| 5235 | 8usize, |
| 5236 | concat!( |
| 5237 | "Offset of field: ", |
| 5238 | stringify!(__va_list), |
| 5239 | "::", |
| 5240 | stringify!(__gr_top) |
| 5241 | ) |
| 5242 | ); |
| 5243 | assert_eq!( |
| 5244 | unsafe { &(*(::std::ptr::null::<__va_list>())).__vr_top as *const _ as usize }, |
| 5245 | 16usize, |
| 5246 | concat!( |
| 5247 | "Offset of field: ", |
| 5248 | stringify!(__va_list), |
| 5249 | "::", |
| 5250 | stringify!(__vr_top) |
| 5251 | ) |
| 5252 | ); |
| 5253 | assert_eq!( |
| 5254 | unsafe { &(*(::std::ptr::null::<__va_list>())).__gr_offs as *const _ as usize }, |
| 5255 | 24usize, |
| 5256 | concat!( |
| 5257 | "Offset of field: ", |
| 5258 | stringify!(__va_list), |
| 5259 | "::", |
| 5260 | stringify!(__gr_offs) |
| 5261 | ) |
| 5262 | ); |
| 5263 | assert_eq!( |
| 5264 | unsafe { &(*(::std::ptr::null::<__va_list>())).__vr_offs as *const _ as usize }, |
| 5265 | 28usize, |
| 5266 | concat!( |
| 5267 | "Offset of field: ", |
| 5268 | stringify!(__va_list), |
| 5269 | "::", |
| 5270 | stringify!(__vr_offs) |
| 5271 | ) |
| 5272 | ); |
| 5273 | } |