1 /* automatically generated by rust-bindgen */
2 
3 pub const __GNUC_VA_LIST: i32 = 1;
4 pub const SQLITE_VERSION: &'static [u8; 6usize] = b"3.6.8\x00";
5 pub const SQLITE_VERSION_NUMBER: i32 = 3006008;
6 pub const SQLITE_OK: i32 = 0;
7 pub const SQLITE_ERROR: i32 = 1;
8 pub const SQLITE_INTERNAL: i32 = 2;
9 pub const SQLITE_PERM: i32 = 3;
10 pub const SQLITE_ABORT: i32 = 4;
11 pub const SQLITE_BUSY: i32 = 5;
12 pub const SQLITE_LOCKED: i32 = 6;
13 pub const SQLITE_NOMEM: i32 = 7;
14 pub const SQLITE_READONLY: i32 = 8;
15 pub const SQLITE_INTERRUPT: i32 = 9;
16 pub const SQLITE_IOERR: i32 = 10;
17 pub const SQLITE_CORRUPT: i32 = 11;
18 pub const SQLITE_NOTFOUND: i32 = 12;
19 pub const SQLITE_FULL: i32 = 13;
20 pub const SQLITE_CANTOPEN: i32 = 14;
21 pub const SQLITE_PROTOCOL: i32 = 15;
22 pub const SQLITE_EMPTY: i32 = 16;
23 pub const SQLITE_SCHEMA: i32 = 17;
24 pub const SQLITE_TOOBIG: i32 = 18;
25 pub const SQLITE_CONSTRAINT: i32 = 19;
26 pub const SQLITE_MISMATCH: i32 = 20;
27 pub const SQLITE_MISUSE: i32 = 21;
28 pub const SQLITE_NOLFS: i32 = 22;
29 pub const SQLITE_AUTH: i32 = 23;
30 pub const SQLITE_FORMAT: i32 = 24;
31 pub const SQLITE_RANGE: i32 = 25;
32 pub const SQLITE_NOTADB: i32 = 26;
33 pub const SQLITE_ROW: i32 = 100;
34 pub const SQLITE_DONE: i32 = 101;
35 pub const SQLITE_IOERR_READ: i32 = 266;
36 pub const SQLITE_IOERR_SHORT_READ: i32 = 522;
37 pub const SQLITE_IOERR_WRITE: i32 = 778;
38 pub const SQLITE_IOERR_FSYNC: i32 = 1034;
39 pub const SQLITE_IOERR_DIR_FSYNC: i32 = 1290;
40 pub const SQLITE_IOERR_TRUNCATE: i32 = 1546;
41 pub const SQLITE_IOERR_FSTAT: i32 = 1802;
42 pub const SQLITE_IOERR_UNLOCK: i32 = 2058;
43 pub const SQLITE_IOERR_RDLOCK: i32 = 2314;
44 pub const SQLITE_IOERR_DELETE: i32 = 2570;
45 pub const SQLITE_IOERR_BLOCKED: i32 = 2826;
46 pub const SQLITE_IOERR_NOMEM: i32 = 3082;
47 pub const SQLITE_IOERR_ACCESS: i32 = 3338;
48 pub const SQLITE_IOERR_CHECKRESERVEDLOCK: i32 = 3594;
49 pub const SQLITE_IOERR_LOCK: i32 = 3850;
50 pub const SQLITE_IOERR_CLOSE: i32 = 4106;
51 pub const SQLITE_IOERR_DIR_CLOSE: i32 = 4362;
52 pub const SQLITE_OPEN_READONLY: i32 = 1;
53 pub const SQLITE_OPEN_READWRITE: i32 = 2;
54 pub const SQLITE_OPEN_CREATE: i32 = 4;
55 pub const SQLITE_OPEN_DELETEONCLOSE: i32 = 8;
56 pub const SQLITE_OPEN_EXCLUSIVE: i32 = 16;
57 pub const SQLITE_OPEN_MAIN_DB: i32 = 256;
58 pub const SQLITE_OPEN_TEMP_DB: i32 = 512;
59 pub const SQLITE_OPEN_TRANSIENT_DB: i32 = 1024;
60 pub const SQLITE_OPEN_MAIN_JOURNAL: i32 = 2048;
61 pub const SQLITE_OPEN_TEMP_JOURNAL: i32 = 4096;
62 pub const SQLITE_OPEN_SUBJOURNAL: i32 = 8192;
63 pub const SQLITE_OPEN_MASTER_JOURNAL: i32 = 16384;
64 pub const SQLITE_OPEN_NOMUTEX: i32 = 32768;
65 pub const SQLITE_OPEN_FULLMUTEX: i32 = 65536;
66 pub const SQLITE_IOCAP_ATOMIC: i32 = 1;
67 pub const SQLITE_IOCAP_ATOMIC512: i32 = 2;
68 pub const SQLITE_IOCAP_ATOMIC1K: i32 = 4;
69 pub const SQLITE_IOCAP_ATOMIC2K: i32 = 8;
70 pub const SQLITE_IOCAP_ATOMIC4K: i32 = 16;
71 pub const SQLITE_IOCAP_ATOMIC8K: i32 = 32;
72 pub const SQLITE_IOCAP_ATOMIC16K: i32 = 64;
73 pub const SQLITE_IOCAP_ATOMIC32K: i32 = 128;
74 pub const SQLITE_IOCAP_ATOMIC64K: i32 = 256;
75 pub const SQLITE_IOCAP_SAFE_APPEND: i32 = 512;
76 pub const SQLITE_IOCAP_SEQUENTIAL: i32 = 1024;
77 pub const SQLITE_LOCK_NONE: i32 = 0;
78 pub const SQLITE_LOCK_SHARED: i32 = 1;
79 pub const SQLITE_LOCK_RESERVED: i32 = 2;
80 pub const SQLITE_LOCK_PENDING: i32 = 3;
81 pub const SQLITE_LOCK_EXCLUSIVE: i32 = 4;
82 pub const SQLITE_SYNC_NORMAL: i32 = 2;
83 pub const SQLITE_SYNC_FULL: i32 = 3;
84 pub const SQLITE_SYNC_DATAONLY: i32 = 16;
85 pub const SQLITE_FCNTL_LOCKSTATE: i32 = 1;
86 pub const SQLITE_GET_LOCKPROXYFILE: i32 = 2;
87 pub const SQLITE_SET_LOCKPROXYFILE: i32 = 3;
88 pub const SQLITE_LAST_ERRNO: i32 = 4;
89 pub const SQLITE_ACCESS_EXISTS: i32 = 0;
90 pub const SQLITE_ACCESS_READWRITE: i32 = 1;
91 pub const SQLITE_ACCESS_READ: i32 = 2;
92 pub const SQLITE_CONFIG_SINGLETHREAD: i32 = 1;
93 pub const SQLITE_CONFIG_MULTITHREAD: i32 = 2;
94 pub const SQLITE_CONFIG_SERIALIZED: i32 = 3;
95 pub const SQLITE_CONFIG_MALLOC: i32 = 4;
96 pub const SQLITE_CONFIG_GETMALLOC: i32 = 5;
97 pub const SQLITE_CONFIG_SCRATCH: i32 = 6;
98 pub const SQLITE_CONFIG_PAGECACHE: i32 = 7;
99 pub const SQLITE_CONFIG_HEAP: i32 = 8;
100 pub const SQLITE_CONFIG_MEMSTATUS: i32 = 9;
101 pub const SQLITE_CONFIG_MUTEX: i32 = 10;
102 pub const SQLITE_CONFIG_GETMUTEX: i32 = 11;
103 pub const SQLITE_CONFIG_LOOKASIDE: i32 = 13;
104 pub const SQLITE_CONFIG_PCACHE: i32 = 14;
105 pub const SQLITE_CONFIG_GETPCACHE: i32 = 15;
106 pub const SQLITE_DBCONFIG_LOOKASIDE: i32 = 1001;
107 pub const SQLITE_DENY: i32 = 1;
108 pub const SQLITE_IGNORE: i32 = 2;
109 pub const SQLITE_CREATE_INDEX: i32 = 1;
110 pub const SQLITE_CREATE_TABLE: i32 = 2;
111 pub const SQLITE_CREATE_TEMP_INDEX: i32 = 3;
112 pub const SQLITE_CREATE_TEMP_TABLE: i32 = 4;
113 pub const SQLITE_CREATE_TEMP_TRIGGER: i32 = 5;
114 pub const SQLITE_CREATE_TEMP_VIEW: i32 = 6;
115 pub const SQLITE_CREATE_TRIGGER: i32 = 7;
116 pub const SQLITE_CREATE_VIEW: i32 = 8;
117 pub const SQLITE_DELETE: i32 = 9;
118 pub const SQLITE_DROP_INDEX: i32 = 10;
119 pub const SQLITE_DROP_TABLE: i32 = 11;
120 pub const SQLITE_DROP_TEMP_INDEX: i32 = 12;
121 pub const SQLITE_DROP_TEMP_TABLE: i32 = 13;
122 pub const SQLITE_DROP_TEMP_TRIGGER: i32 = 14;
123 pub const SQLITE_DROP_TEMP_VIEW: i32 = 15;
124 pub const SQLITE_DROP_TRIGGER: i32 = 16;
125 pub const SQLITE_DROP_VIEW: i32 = 17;
126 pub const SQLITE_INSERT: i32 = 18;
127 pub const SQLITE_PRAGMA: i32 = 19;
128 pub const SQLITE_READ: i32 = 20;
129 pub const SQLITE_SELECT: i32 = 21;
130 pub const SQLITE_TRANSACTION: i32 = 22;
131 pub const SQLITE_UPDATE: i32 = 23;
132 pub const SQLITE_ATTACH: i32 = 24;
133 pub const SQLITE_DETACH: i32 = 25;
134 pub const SQLITE_ALTER_TABLE: i32 = 26;
135 pub const SQLITE_REINDEX: i32 = 27;
136 pub const SQLITE_ANALYZE: i32 = 28;
137 pub const SQLITE_CREATE_VTABLE: i32 = 29;
138 pub const SQLITE_DROP_VTABLE: i32 = 30;
139 pub const SQLITE_FUNCTION: i32 = 31;
140 pub const SQLITE_SAVEPOINT: i32 = 32;
141 pub const SQLITE_COPY: i32 = 0;
142 pub const SQLITE_LIMIT_LENGTH: i32 = 0;
143 pub const SQLITE_LIMIT_SQL_LENGTH: i32 = 1;
144 pub const SQLITE_LIMIT_COLUMN: i32 = 2;
145 pub const SQLITE_LIMIT_EXPR_DEPTH: i32 = 3;
146 pub const SQLITE_LIMIT_COMPOUND_SELECT: i32 = 4;
147 pub const SQLITE_LIMIT_VDBE_OP: i32 = 5;
148 pub const SQLITE_LIMIT_FUNCTION_ARG: i32 = 6;
149 pub const SQLITE_LIMIT_ATTACHED: i32 = 7;
150 pub const SQLITE_LIMIT_LIKE_PATTERN_LENGTH: i32 = 8;
151 pub const SQLITE_LIMIT_VARIABLE_NUMBER: i32 = 9;
152 pub const SQLITE_INTEGER: i32 = 1;
153 pub const SQLITE_FLOAT: i32 = 2;
154 pub const SQLITE_BLOB: i32 = 4;
155 pub const SQLITE_NULL: i32 = 5;
156 pub const SQLITE_TEXT: i32 = 3;
157 pub const SQLITE3_TEXT: i32 = 3;
158 pub const SQLITE_UTF8: i32 = 1;
159 pub const SQLITE_UTF16LE: i32 = 2;
160 pub const SQLITE_UTF16BE: i32 = 3;
161 pub const SQLITE_UTF16: i32 = 4;
162 pub const SQLITE_ANY: i32 = 5;
163 pub const SQLITE_UTF16_ALIGNED: i32 = 8;
164 pub const SQLITE_INDEX_CONSTRAINT_EQ: i32 = 2;
165 pub const SQLITE_INDEX_CONSTRAINT_GT: i32 = 4;
166 pub const SQLITE_INDEX_CONSTRAINT_LE: i32 = 8;
167 pub const SQLITE_INDEX_CONSTRAINT_LT: i32 = 16;
168 pub const SQLITE_INDEX_CONSTRAINT_GE: i32 = 32;
169 pub const SQLITE_INDEX_CONSTRAINT_MATCH: i32 = 64;
170 pub const SQLITE_MUTEX_FAST: i32 = 0;
171 pub const SQLITE_MUTEX_RECURSIVE: i32 = 1;
172 pub const SQLITE_MUTEX_STATIC_MASTER: i32 = 2;
173 pub const SQLITE_MUTEX_STATIC_MEM: i32 = 3;
174 pub const SQLITE_MUTEX_STATIC_MEM2: i32 = 4;
175 pub const SQLITE_MUTEX_STATIC_PRNG: i32 = 5;
176 pub const SQLITE_MUTEX_STATIC_LRU: i32 = 6;
177 pub const SQLITE_MUTEX_STATIC_LRU2: i32 = 7;
178 pub const SQLITE_TESTCTRL_PRNG_SAVE: i32 = 5;
179 pub const SQLITE_TESTCTRL_PRNG_RESTORE: i32 = 6;
180 pub const SQLITE_TESTCTRL_PRNG_RESET: i32 = 7;
181 pub const SQLITE_TESTCTRL_BITVEC_TEST: i32 = 8;
182 pub const SQLITE_TESTCTRL_FAULT_INSTALL: i32 = 9;
183 pub const SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS: i32 = 10;
184 pub const SQLITE_STATUS_MEMORY_USED: i32 = 0;
185 pub const SQLITE_STATUS_PAGECACHE_USED: i32 = 1;
186 pub const SQLITE_STATUS_PAGECACHE_OVERFLOW: i32 = 2;
187 pub const SQLITE_STATUS_SCRATCH_USED: i32 = 3;
188 pub const SQLITE_STATUS_SCRATCH_OVERFLOW: i32 = 4;
189 pub const SQLITE_STATUS_MALLOC_SIZE: i32 = 5;
190 pub const SQLITE_STATUS_PARSER_STACK: i32 = 6;
191 pub const SQLITE_STATUS_PAGECACHE_SIZE: i32 = 7;
192 pub const SQLITE_STATUS_SCRATCH_SIZE: i32 = 8;
193 pub const SQLITE_DBSTATUS_LOOKASIDE_USED: i32 = 0;
194 pub const SQLITE_STMTSTATUS_FULLSCAN_STEP: i32 = 1;
195 pub const SQLITE_STMTSTATUS_SORT: i32 = 2;
196 pub type va_list = __builtin_va_list;
197 pub type __gnuc_va_list = __builtin_va_list;
198 extern "C" {
199     #[link_name = "sqlite3_version"]
200     pub static mut sqlite3_version: [::std::os::raw::c_char; 0usize];
201 }
202 extern "C" {
sqlite3_libversion() -> *const ::std::os::raw::c_char203     pub fn sqlite3_libversion() -> *const ::std::os::raw::c_char;
204 }
205 extern "C" {
sqlite3_libversion_number() -> ::std::os::raw::c_int206     pub fn sqlite3_libversion_number() -> ::std::os::raw::c_int;
207 }
208 extern "C" {
sqlite3_threadsafe() -> ::std::os::raw::c_int209     pub fn sqlite3_threadsafe() -> ::std::os::raw::c_int;
210 }
211 #[repr(C)]
212 #[derive(Debug, Copy, Clone)]
213 pub struct sqlite3([u8; 0]);
214 pub type sqlite_int64 = ::std::os::raw::c_longlong;
215 pub type sqlite_uint64 = ::std::os::raw::c_ulonglong;
216 pub type sqlite3_int64 = sqlite_int64;
217 pub type sqlite3_uint64 = sqlite_uint64;
218 extern "C" {
sqlite3_close(arg1: *mut sqlite3) -> ::std::os::raw::c_int219     pub fn sqlite3_close(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
220 }
221 pub type sqlite3_callback =
222     ::std::option::Option<unsafe extern "C" fn(arg1:
223                                                    *mut ::std::os::raw::c_void,
224                                                arg2: ::std::os::raw::c_int,
225                                                arg3:
226                                                    *mut *mut ::std::os::raw::c_char,
227                                                arg4:
228                                                    *mut *mut ::std::os::raw::c_char)
229                               -> ::std::os::raw::c_int>;
230 extern "C" {
sqlite3_exec(arg1: *mut sqlite3, sql: *const ::std::os::raw::c_char, callback: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int, arg3: *mut *mut ::std::os::raw::c_char, arg4: *mut *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int>, arg2: *mut ::std::os::raw::c_void, errmsg: *mut *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int231     pub fn sqlite3_exec(arg1: *mut sqlite3,
232                         sql: *const ::std::os::raw::c_char,
233                         callback:
234                             ::std::option::Option<unsafe extern "C" fn(arg1:
235                                                                            *mut ::std::os::raw::c_void,
236                                                                        arg2:
237                                                                            ::std::os::raw::c_int,
238                                                                        arg3:
239                                                                            *mut *mut ::std::os::raw::c_char,
240                                                                        arg4:
241                                                                            *mut *mut ::std::os::raw::c_char)
242                                                       ->
243                                                           ::std::os::raw::c_int>,
244                         arg2: *mut ::std::os::raw::c_void,
245                         errmsg: *mut *mut ::std::os::raw::c_char)
246      -> ::std::os::raw::c_int;
247 }
248 #[repr(C)]
249 #[derive(Debug, Copy)]
250 pub struct sqlite3_file {
251     pub pMethods: *const sqlite3_file_sqlite3_io_methods,
252 }
253 #[repr(C)]
254 #[derive(Debug, Copy)]
255 pub struct sqlite3_file_sqlite3_io_methods {
256     pub iVersion: ::std::os::raw::c_int,
257     pub xClose: ::std::option::Option<unsafe extern "C" fn(arg1:
258                                                                *mut sqlite3_file)
259                                           -> ::std::os::raw::c_int>,
260     pub xRead: ::std::option::Option<unsafe extern "C" fn(arg1:
261                                                               *mut sqlite3_file,
262                                                           arg2:
263                                                               *mut ::std::os::raw::c_void,
264                                                           iAmt:
265                                                               ::std::os::raw::c_int,
266                                                           iOfst:
267                                                               sqlite3_int64)
268                                          -> ::std::os::raw::c_int>,
269     pub xWrite: ::std::option::Option<unsafe extern "C" fn(arg1:
270                                                                *mut sqlite3_file,
271                                                            arg2:
272                                                                *const ::std::os::raw::c_void,
273                                                            iAmt:
274                                                                ::std::os::raw::c_int,
275                                                            iOfst:
276                                                                sqlite3_int64)
277                                           -> ::std::os::raw::c_int>,
278     pub xTruncate: ::std::option::Option<unsafe extern "C" fn(arg1:
279                                                                   *mut sqlite3_file,
280                                                               size:
281                                                                   sqlite3_int64)
282                                              -> ::std::os::raw::c_int>,
283     pub xSync: ::std::option::Option<unsafe extern "C" fn(arg1:
284                                                               *mut sqlite3_file,
285                                                           flags:
286                                                               ::std::os::raw::c_int)
287                                          -> ::std::os::raw::c_int>,
288     pub xFileSize: ::std::option::Option<unsafe extern "C" fn(arg1:
289                                                                   *mut sqlite3_file,
290                                                               pSize:
291                                                                   *mut sqlite3_int64)
292                                              -> ::std::os::raw::c_int>,
293     pub xLock: ::std::option::Option<unsafe extern "C" fn(arg1:
294                                                               *mut sqlite3_file,
295                                                           arg2:
296                                                               ::std::os::raw::c_int)
297                                          -> ::std::os::raw::c_int>,
298     pub xUnlock: ::std::option::Option<unsafe extern "C" fn(arg1:
299                                                                 *mut sqlite3_file,
300                                                             arg2:
301                                                                 ::std::os::raw::c_int)
302                                            -> ::std::os::raw::c_int>,
303     pub xCheckReservedLock: ::std::option::Option<unsafe extern "C" fn(arg1:
304                                                                            *mut sqlite3_file,
305                                                                        pResOut:
306                                                                            *mut ::std::os::raw::c_int)
307                                                       ->
308                                                           ::std::os::raw::c_int>,
309     pub xFileControl: ::std::option::Option<unsafe extern "C" fn(arg1:
310                                                                      *mut sqlite3_file,
311                                                                  op:
312                                                                      ::std::os::raw::c_int,
313                                                                  pArg:
314                                                                      *mut ::std::os::raw::c_void)
315                                                 -> ::std::os::raw::c_int>,
316     pub xSectorSize: ::std::option::Option<unsafe extern "C" fn(arg1:
317                                                                     *mut sqlite3_file)
318                                                -> ::std::os::raw::c_int>,
319     pub xDeviceCharacteristics: ::std::option::Option<unsafe extern "C" fn(arg1:
320                                                                                *mut sqlite3_file)
321                                                           ->
322                                                               ::std::os::raw::c_int>,
323 }
324 #[test]
bindgen_test_layout_sqlite3_file_sqlite3_io_methods()325 fn bindgen_test_layout_sqlite3_file_sqlite3_io_methods() {
326     assert_eq!(::std::mem::size_of::<sqlite3_file_sqlite3_io_methods>() ,
327                104usize);
328     assert_eq!(::std::mem::align_of::<sqlite3_file_sqlite3_io_methods>() ,
329                8usize);
330 }
331 impl Clone for sqlite3_file_sqlite3_io_methods {
clone(&self) -> Self332     fn clone(&self) -> Self { *self }
333 }
334 #[test]
bindgen_test_layout_sqlite3_file()335 fn bindgen_test_layout_sqlite3_file() {
336     assert_eq!(::std::mem::size_of::<sqlite3_file>() , 8usize);
337     assert_eq!(::std::mem::align_of::<sqlite3_file>() , 8usize);
338 }
339 impl Clone for sqlite3_file {
clone(&self) -> Self340     fn clone(&self) -> Self { *self }
341 }
342 pub type sqlite3_io_methods = sqlite3_file_sqlite3_io_methods;
343 #[repr(C)]
344 #[derive(Debug, Copy, Clone)]
345 pub struct sqlite3_mutex([u8; 0]);
346 #[repr(C)]
347 #[derive(Debug, Copy)]
348 pub struct sqlite3_vfs {
349     pub iVersion: ::std::os::raw::c_int,
350     pub szOsFile: ::std::os::raw::c_int,
351     pub mxPathname: ::std::os::raw::c_int,
352     pub pNext: *mut sqlite3_vfs,
353     pub zName: *const ::std::os::raw::c_char,
354     pub pAppData: *mut ::std::os::raw::c_void,
355     pub xOpen: ::std::option::Option<unsafe extern "C" fn(arg1:
356                                                               *mut sqlite3_vfs,
357                                                           zName:
358                                                               *const ::std::os::raw::c_char,
359                                                           arg2:
360                                                               *mut sqlite3_file,
361                                                           flags:
362                                                               ::std::os::raw::c_int,
363                                                           pOutFlags:
364                                                               *mut ::std::os::raw::c_int)
365                                          -> ::std::os::raw::c_int>,
366     pub xDelete: ::std::option::Option<unsafe extern "C" fn(arg1:
367                                                                 *mut sqlite3_vfs,
368                                                             zName:
369                                                                 *const ::std::os::raw::c_char,
370                                                             syncDir:
371                                                                 ::std::os::raw::c_int)
372                                            -> ::std::os::raw::c_int>,
373     pub xAccess: ::std::option::Option<unsafe extern "C" fn(arg1:
374                                                                 *mut sqlite3_vfs,
375                                                             zName:
376                                                                 *const ::std::os::raw::c_char,
377                                                             flags:
378                                                                 ::std::os::raw::c_int,
379                                                             pResOut:
380                                                                 *mut ::std::os::raw::c_int)
381                                            -> ::std::os::raw::c_int>,
382     pub xFullPathname: ::std::option::Option<unsafe extern "C" fn(arg1:
383                                                                       *mut sqlite3_vfs,
384                                                                   zName:
385                                                                       *const ::std::os::raw::c_char,
386                                                                   nOut:
387                                                                       ::std::os::raw::c_int,
388                                                                   zOut:
389                                                                       *mut ::std::os::raw::c_char)
390                                                  -> ::std::os::raw::c_int>,
391     pub xDlOpen: ::std::option::Option<unsafe extern "C" fn(arg1:
392                                                                 *mut sqlite3_vfs,
393                                                             zFilename:
394                                                                 *const ::std::os::raw::c_char)
395                                            -> *mut ::std::os::raw::c_void>,
396     pub xDlError: ::std::option::Option<unsafe extern "C" fn(arg1:
397                                                                  *mut sqlite3_vfs,
398                                                              nByte:
399                                                                  ::std::os::raw::c_int,
400                                                              zErrMsg:
401                                                                  *mut ::std::os::raw::c_char)>,
402     pub xDlSym: ::std::option::Option<unsafe extern "C" fn(arg1:
403                                                                *mut sqlite3_vfs,
404                                                            arg2:
405                                                                *mut ::std::os::raw::c_void,
406                                                            zSymbol:
407                                                                *const ::std::os::raw::c_char)
408                                           ->
409                                               ::std::option::Option<unsafe extern "C" fn()>>,
410     pub xDlClose: ::std::option::Option<unsafe extern "C" fn(arg1:
411                                                                  *mut sqlite3_vfs,
412                                                              arg2:
413                                                                  *mut ::std::os::raw::c_void)>,
414     pub xRandomness: ::std::option::Option<unsafe extern "C" fn(arg1:
415                                                                     *mut sqlite3_vfs,
416                                                                 nByte:
417                                                                     ::std::os::raw::c_int,
418                                                                 zOut:
419                                                                     *mut ::std::os::raw::c_char)
420                                                -> ::std::os::raw::c_int>,
421     pub xSleep: ::std::option::Option<unsafe extern "C" fn(arg1:
422                                                                *mut sqlite3_vfs,
423                                                            microseconds:
424                                                                ::std::os::raw::c_int)
425                                           -> ::std::os::raw::c_int>,
426     pub xCurrentTime: ::std::option::Option<unsafe extern "C" fn(arg1:
427                                                                      *mut sqlite3_vfs,
428                                                                  arg2:
429                                                                      *mut f64)
430                                                 -> ::std::os::raw::c_int>,
431     pub xGetLastError: ::std::option::Option<unsafe extern "C" fn(arg1:
432                                                                       *mut sqlite3_vfs,
433                                                                   arg2:
434                                                                       ::std::os::raw::c_int,
435                                                                   arg3:
436                                                                       *mut ::std::os::raw::c_char)
437                                                  -> ::std::os::raw::c_int>,
438 }
439 #[test]
bindgen_test_layout_sqlite3_vfs()440 fn bindgen_test_layout_sqlite3_vfs() {
441     assert_eq!(::std::mem::size_of::<sqlite3_vfs>() , 136usize);
442     assert_eq!(::std::mem::align_of::<sqlite3_vfs>() , 8usize);
443 }
444 impl Clone for sqlite3_vfs {
clone(&self) -> Self445     fn clone(&self) -> Self { *self }
446 }
447 extern "C" {
sqlite3_initialize() -> ::std::os::raw::c_int448     pub fn sqlite3_initialize() -> ::std::os::raw::c_int;
449 }
450 extern "C" {
sqlite3_shutdown() -> ::std::os::raw::c_int451     pub fn sqlite3_shutdown() -> ::std::os::raw::c_int;
452 }
453 extern "C" {
sqlite3_os_init() -> ::std::os::raw::c_int454     pub fn sqlite3_os_init() -> ::std::os::raw::c_int;
455 }
456 extern "C" {
sqlite3_os_end() -> ::std::os::raw::c_int457     pub fn sqlite3_os_end() -> ::std::os::raw::c_int;
458 }
459 extern "C" {
sqlite3_config(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int460     pub fn sqlite3_config(arg1: ::std::os::raw::c_int, ...)
461      -> ::std::os::raw::c_int;
462 }
463 extern "C" {
sqlite3_db_config(arg1: *mut sqlite3, op: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int464     pub fn sqlite3_db_config(arg1: *mut sqlite3,
465                              op: ::std::os::raw::c_int, ...)
466      -> ::std::os::raw::c_int;
467 }
468 #[repr(C)]
469 #[derive(Debug, Copy)]
470 pub struct sqlite3_mem_methods {
471     pub xMalloc: ::std::option::Option<unsafe extern "C" fn(arg1:
472                                                                 ::std::os::raw::c_int)
473                                            -> *mut ::std::os::raw::c_void>,
474     pub xFree: ::std::option::Option<unsafe extern "C" fn(arg1:
475                                                               *mut ::std::os::raw::c_void)>,
476     pub xRealloc: ::std::option::Option<unsafe extern "C" fn(arg1:
477                                                                  *mut ::std::os::raw::c_void,
478                                                              arg2:
479                                                                  ::std::os::raw::c_int)
480                                             -> *mut ::std::os::raw::c_void>,
481     pub xSize: ::std::option::Option<unsafe extern "C" fn(arg1:
482                                                               *mut ::std::os::raw::c_void)
483                                          -> ::std::os::raw::c_int>,
484     pub xRoundup: ::std::option::Option<unsafe extern "C" fn(arg1:
485                                                                  ::std::os::raw::c_int)
486                                             -> ::std::os::raw::c_int>,
487     pub xInit: ::std::option::Option<unsafe extern "C" fn(arg1:
488                                                               *mut ::std::os::raw::c_void)
489                                          -> ::std::os::raw::c_int>,
490     pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1:
491                                                                   *mut ::std::os::raw::c_void)>,
492     pub pAppData: *mut ::std::os::raw::c_void,
493 }
494 #[test]
bindgen_test_layout_sqlite3_mem_methods()495 fn bindgen_test_layout_sqlite3_mem_methods() {
496     assert_eq!(::std::mem::size_of::<sqlite3_mem_methods>() , 64usize);
497     assert_eq!(::std::mem::align_of::<sqlite3_mem_methods>() , 8usize);
498 }
499 impl Clone for sqlite3_mem_methods {
clone(&self) -> Self500     fn clone(&self) -> Self { *self }
501 }
502 extern "C" {
sqlite3_extended_result_codes(arg1: *mut sqlite3, onoff: ::std::os::raw::c_int) -> ::std::os::raw::c_int503     pub fn sqlite3_extended_result_codes(arg1: *mut sqlite3,
504                                          onoff: ::std::os::raw::c_int)
505      -> ::std::os::raw::c_int;
506 }
507 extern "C" {
sqlite3_last_insert_rowid(arg1: *mut sqlite3) -> sqlite3_int64508     pub fn sqlite3_last_insert_rowid(arg1: *mut sqlite3) -> sqlite3_int64;
509 }
510 extern "C" {
sqlite3_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int511     pub fn sqlite3_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
512 }
513 extern "C" {
sqlite3_total_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int514     pub fn sqlite3_total_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
515 }
516 extern "C" {
sqlite3_interrupt(arg1: *mut sqlite3)517     pub fn sqlite3_interrupt(arg1: *mut sqlite3);
518 }
519 extern "C" {
sqlite3_complete(sql: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int520     pub fn sqlite3_complete(sql: *const ::std::os::raw::c_char)
521      -> ::std::os::raw::c_int;
522 }
523 extern "C" {
sqlite3_complete16(sql: *const ::std::os::raw::c_void) -> ::std::os::raw::c_int524     pub fn sqlite3_complete16(sql: *const ::std::os::raw::c_void)
525      -> ::std::os::raw::c_int;
526 }
527 extern "C" {
sqlite3_busy_handler(arg1: *mut sqlite3, arg2: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int>, arg3: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int528     pub fn sqlite3_busy_handler(arg1: *mut sqlite3,
529                                 arg2:
530                                     ::std::option::Option<unsafe extern "C" fn(arg1:
531                                                                                    *mut ::std::os::raw::c_void,
532                                                                                arg2:
533                                                                                    ::std::os::raw::c_int)
534                                                               ->
535                                                                   ::std::os::raw::c_int>,
536                                 arg3: *mut ::std::os::raw::c_void)
537      -> ::std::os::raw::c_int;
538 }
539 extern "C" {
sqlite3_busy_timeout(arg1: *mut sqlite3, ms: ::std::os::raw::c_int) -> ::std::os::raw::c_int540     pub fn sqlite3_busy_timeout(arg1: *mut sqlite3, ms: ::std::os::raw::c_int)
541      -> ::std::os::raw::c_int;
542 }
543 extern "C" {
sqlite3_get_table(db: *mut sqlite3, zSql: *const ::std::os::raw::c_char, pazResult: *mut *mut *mut ::std::os::raw::c_char, pnRow: *mut ::std::os::raw::c_int, pnColumn: *mut ::std::os::raw::c_int, pzErrmsg: *mut *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int544     pub fn sqlite3_get_table(db: *mut sqlite3,
545                              zSql: *const ::std::os::raw::c_char,
546                              pazResult: *mut *mut *mut ::std::os::raw::c_char,
547                              pnRow: *mut ::std::os::raw::c_int,
548                              pnColumn: *mut ::std::os::raw::c_int,
549                              pzErrmsg: *mut *mut ::std::os::raw::c_char)
550      -> ::std::os::raw::c_int;
551 }
552 extern "C" {
sqlite3_free_table(result: *mut *mut ::std::os::raw::c_char)553     pub fn sqlite3_free_table(result: *mut *mut ::std::os::raw::c_char);
554 }
555 extern "C" {
sqlite3_mprintf(arg1: *const ::std::os::raw::c_char, ...) -> *mut ::std::os::raw::c_char556     pub fn sqlite3_mprintf(arg1: *const ::std::os::raw::c_char, ...)
557      -> *mut ::std::os::raw::c_char;
558 }
559 extern "C" {
sqlite3_vmprintf(arg1: *const ::std::os::raw::c_char, arg2: *mut __va_list_tag) -> *mut ::std::os::raw::c_char560     pub fn sqlite3_vmprintf(arg1: *const ::std::os::raw::c_char,
561                             arg2: *mut __va_list_tag)
562      -> *mut ::std::os::raw::c_char;
563 }
564 extern "C" {
sqlite3_snprintf(arg1: ::std::os::raw::c_int, arg2: *mut ::std::os::raw::c_char, arg3: *const ::std::os::raw::c_char, ...) -> *mut ::std::os::raw::c_char565     pub fn sqlite3_snprintf(arg1: ::std::os::raw::c_int,
566                             arg2: *mut ::std::os::raw::c_char,
567                             arg3: *const ::std::os::raw::c_char, ...)
568      -> *mut ::std::os::raw::c_char;
569 }
570 extern "C" {
sqlite3_malloc(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void571     pub fn sqlite3_malloc(arg1: ::std::os::raw::c_int)
572      -> *mut ::std::os::raw::c_void;
573 }
574 extern "C" {
sqlite3_realloc(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void575     pub fn sqlite3_realloc(arg1: *mut ::std::os::raw::c_void,
576                            arg2: ::std::os::raw::c_int)
577      -> *mut ::std::os::raw::c_void;
578 }
579 extern "C" {
sqlite3_free(arg1: *mut ::std::os::raw::c_void)580     pub fn sqlite3_free(arg1: *mut ::std::os::raw::c_void);
581 }
582 extern "C" {
sqlite3_memory_used() -> sqlite3_int64583     pub fn sqlite3_memory_used() -> sqlite3_int64;
584 }
585 extern "C" {
sqlite3_memory_highwater(resetFlag: ::std::os::raw::c_int) -> sqlite3_int64586     pub fn sqlite3_memory_highwater(resetFlag: ::std::os::raw::c_int)
587      -> sqlite3_int64;
588 }
589 extern "C" {
sqlite3_randomness(N: ::std::os::raw::c_int, P: *mut ::std::os::raw::c_void)590     pub fn sqlite3_randomness(N: ::std::os::raw::c_int,
591                               P: *mut ::std::os::raw::c_void);
592 }
593 extern "C" {
sqlite3_set_authorizer(arg1: *mut sqlite3, xAuth: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_char, arg4: *const ::std::os::raw::c_char, arg5: *const ::std::os::raw::c_char, arg6: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int>, pUserData: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int594     pub fn sqlite3_set_authorizer(arg1: *mut sqlite3,
595                                   xAuth:
596                                       ::std::option::Option<unsafe extern "C" fn(arg1:
597                                                                                      *mut ::std::os::raw::c_void,
598                                                                                  arg2:
599                                                                                      ::std::os::raw::c_int,
600                                                                                  arg3:
601                                                                                      *const ::std::os::raw::c_char,
602                                                                                  arg4:
603                                                                                      *const ::std::os::raw::c_char,
604                                                                                  arg5:
605                                                                                      *const ::std::os::raw::c_char,
606                                                                                  arg6:
607                                                                                      *const ::std::os::raw::c_char)
608                                                                 ->
609                                                                     ::std::os::raw::c_int>,
610                                   pUserData: *mut ::std::os::raw::c_void)
611      -> ::std::os::raw::c_int;
612 }
613 extern "C" {
sqlite3_trace(arg1: *mut sqlite3, xTrace: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: *const ::std::os::raw::c_char)>, arg2: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void614     pub fn sqlite3_trace(arg1: *mut sqlite3,
615                          xTrace:
616                              ::std::option::Option<unsafe extern "C" fn(arg1:
617                                                                             *mut ::std::os::raw::c_void,
618                                                                         arg2:
619                                                                             *const ::std::os::raw::c_char)>,
620                          arg2: *mut ::std::os::raw::c_void)
621      -> *mut ::std::os::raw::c_void;
622 }
623 extern "C" {
sqlite3_profile(arg1: *mut sqlite3, xProfile: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: *const ::std::os::raw::c_char, arg3: sqlite3_uint64)>, arg2: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void624     pub fn sqlite3_profile(arg1: *mut sqlite3,
625                            xProfile:
626                                ::std::option::Option<unsafe extern "C" fn(arg1:
627                                                                               *mut ::std::os::raw::c_void,
628                                                                           arg2:
629                                                                               *const ::std::os::raw::c_char,
630                                                                           arg3:
631                                                                               sqlite3_uint64)>,
632                            arg2: *mut ::std::os::raw::c_void)
633      -> *mut ::std::os::raw::c_void;
634 }
635 extern "C" {
sqlite3_progress_handler(arg1: *mut sqlite3, arg2: ::std::os::raw::c_int, arg3: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int>, arg4: *mut ::std::os::raw::c_void)636     pub fn sqlite3_progress_handler(arg1: *mut sqlite3,
637                                     arg2: ::std::os::raw::c_int,
638                                     arg3:
639                                         ::std::option::Option<unsafe extern "C" fn(arg1:
640                                                                                        *mut ::std::os::raw::c_void)
641                                                                   ->
642                                                                       ::std::os::raw::c_int>,
643                                     arg4: *mut ::std::os::raw::c_void);
644 }
645 extern "C" {
sqlite3_open(filename: *const ::std::os::raw::c_char, ppDb: *mut *mut sqlite3) -> ::std::os::raw::c_int646     pub fn sqlite3_open(filename: *const ::std::os::raw::c_char,
647                         ppDb: *mut *mut sqlite3) -> ::std::os::raw::c_int;
648 }
649 extern "C" {
sqlite3_open16(filename: *const ::std::os::raw::c_void, ppDb: *mut *mut sqlite3) -> ::std::os::raw::c_int650     pub fn sqlite3_open16(filename: *const ::std::os::raw::c_void,
651                           ppDb: *mut *mut sqlite3) -> ::std::os::raw::c_int;
652 }
653 extern "C" {
sqlite3_open_v2(filename: *const ::std::os::raw::c_char, ppDb: *mut *mut sqlite3, flags: ::std::os::raw::c_int, zVfs: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int654     pub fn sqlite3_open_v2(filename: *const ::std::os::raw::c_char,
655                            ppDb: *mut *mut sqlite3,
656                            flags: ::std::os::raw::c_int,
657                            zVfs: *const ::std::os::raw::c_char)
658      -> ::std::os::raw::c_int;
659 }
660 extern "C" {
sqlite3_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int661     pub fn sqlite3_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int;
662 }
663 extern "C" {
sqlite3_extended_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int664     pub fn sqlite3_extended_errcode(db: *mut sqlite3)
665      -> ::std::os::raw::c_int;
666 }
667 extern "C" {
sqlite3_errmsg(arg1: *mut sqlite3) -> *const ::std::os::raw::c_char668     pub fn sqlite3_errmsg(arg1: *mut sqlite3)
669      -> *const ::std::os::raw::c_char;
670 }
671 extern "C" {
sqlite3_errmsg16(arg1: *mut sqlite3) -> *const ::std::os::raw::c_void672     pub fn sqlite3_errmsg16(arg1: *mut sqlite3)
673      -> *const ::std::os::raw::c_void;
674 }
675 #[repr(C)]
676 #[derive(Debug, Copy, Clone)]
677 pub struct sqlite3_stmt([u8; 0]);
678 extern "C" {
sqlite3_limit(arg1: *mut sqlite3, id: ::std::os::raw::c_int, newVal: ::std::os::raw::c_int) -> ::std::os::raw::c_int679     pub fn sqlite3_limit(arg1: *mut sqlite3, id: ::std::os::raw::c_int,
680                          newVal: ::std::os::raw::c_int)
681      -> ::std::os::raw::c_int;
682 }
683 extern "C" {
sqlite3_prepare(db: *mut sqlite3, zSql: *const ::std::os::raw::c_char, nByte: ::std::os::raw::c_int, ppStmt: *mut *mut sqlite3_stmt, pzTail: *mut *const ::std::os::raw::c_char) -> ::std::os::raw::c_int684     pub fn sqlite3_prepare(db: *mut sqlite3,
685                            zSql: *const ::std::os::raw::c_char,
686                            nByte: ::std::os::raw::c_int,
687                            ppStmt: *mut *mut sqlite3_stmt,
688                            pzTail: *mut *const ::std::os::raw::c_char)
689      -> ::std::os::raw::c_int;
690 }
691 extern "C" {
sqlite3_prepare_v2(db: *mut sqlite3, zSql: *const ::std::os::raw::c_char, nByte: ::std::os::raw::c_int, ppStmt: *mut *mut sqlite3_stmt, pzTail: *mut *const ::std::os::raw::c_char) -> ::std::os::raw::c_int692     pub fn sqlite3_prepare_v2(db: *mut sqlite3,
693                               zSql: *const ::std::os::raw::c_char,
694                               nByte: ::std::os::raw::c_int,
695                               ppStmt: *mut *mut sqlite3_stmt,
696                               pzTail: *mut *const ::std::os::raw::c_char)
697      -> ::std::os::raw::c_int;
698 }
699 extern "C" {
sqlite3_prepare16(db: *mut sqlite3, zSql: *const ::std::os::raw::c_void, nByte: ::std::os::raw::c_int, ppStmt: *mut *mut sqlite3_stmt, pzTail: *mut *const ::std::os::raw::c_void) -> ::std::os::raw::c_int700     pub fn sqlite3_prepare16(db: *mut sqlite3,
701                              zSql: *const ::std::os::raw::c_void,
702                              nByte: ::std::os::raw::c_int,
703                              ppStmt: *mut *mut sqlite3_stmt,
704                              pzTail: *mut *const ::std::os::raw::c_void)
705      -> ::std::os::raw::c_int;
706 }
707 extern "C" {
sqlite3_prepare16_v2(db: *mut sqlite3, zSql: *const ::std::os::raw::c_void, nByte: ::std::os::raw::c_int, ppStmt: *mut *mut sqlite3_stmt, pzTail: *mut *const ::std::os::raw::c_void) -> ::std::os::raw::c_int708     pub fn sqlite3_prepare16_v2(db: *mut sqlite3,
709                                 zSql: *const ::std::os::raw::c_void,
710                                 nByte: ::std::os::raw::c_int,
711                                 ppStmt: *mut *mut sqlite3_stmt,
712                                 pzTail: *mut *const ::std::os::raw::c_void)
713      -> ::std::os::raw::c_int;
714 }
715 extern "C" {
sqlite3_sql(pStmt: *mut sqlite3_stmt) -> *const ::std::os::raw::c_char716     pub fn sqlite3_sql(pStmt: *mut sqlite3_stmt)
717      -> *const ::std::os::raw::c_char;
718 }
719 #[repr(C)]
720 #[derive(Debug, Copy, Clone)]
721 pub struct Mem([u8; 0]);
722 pub type sqlite3_value = Mem;
723 #[repr(C)]
724 #[derive(Debug, Copy, Clone)]
725 pub struct sqlite3_context([u8; 0]);
726 extern "C" {
sqlite3_bind_blob(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_void, n: ::std::os::raw::c_int, arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>) -> ::std::os::raw::c_int727     pub fn sqlite3_bind_blob(arg1: *mut sqlite3_stmt,
728                              arg2: ::std::os::raw::c_int,
729                              arg3: *const ::std::os::raw::c_void,
730                              n: ::std::os::raw::c_int,
731                              arg4:
732                                  ::std::option::Option<unsafe extern "C" fn(arg1:
733                                                                                 *mut ::std::os::raw::c_void)>)
734      -> ::std::os::raw::c_int;
735 }
736 extern "C" {
sqlite3_bind_double(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: f64) -> ::std::os::raw::c_int737     pub fn sqlite3_bind_double(arg1: *mut sqlite3_stmt,
738                                arg2: ::std::os::raw::c_int, arg3: f64)
739      -> ::std::os::raw::c_int;
740 }
741 extern "C" {
sqlite3_bind_int(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: ::std::os::raw::c_int) -> ::std::os::raw::c_int742     pub fn sqlite3_bind_int(arg1: *mut sqlite3_stmt,
743                             arg2: ::std::os::raw::c_int,
744                             arg3: ::std::os::raw::c_int)
745      -> ::std::os::raw::c_int;
746 }
747 extern "C" {
sqlite3_bind_int64(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: sqlite3_int64) -> ::std::os::raw::c_int748     pub fn sqlite3_bind_int64(arg1: *mut sqlite3_stmt,
749                               arg2: ::std::os::raw::c_int,
750                               arg3: sqlite3_int64) -> ::std::os::raw::c_int;
751 }
752 extern "C" {
sqlite3_bind_null(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int753     pub fn sqlite3_bind_null(arg1: *mut sqlite3_stmt,
754                              arg2: ::std::os::raw::c_int)
755      -> ::std::os::raw::c_int;
756 }
757 extern "C" {
sqlite3_bind_text(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_char, n: ::std::os::raw::c_int, arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>) -> ::std::os::raw::c_int758     pub fn sqlite3_bind_text(arg1: *mut sqlite3_stmt,
759                              arg2: ::std::os::raw::c_int,
760                              arg3: *const ::std::os::raw::c_char,
761                              n: ::std::os::raw::c_int,
762                              arg4:
763                                  ::std::option::Option<unsafe extern "C" fn(arg1:
764                                                                                 *mut ::std::os::raw::c_void)>)
765      -> ::std::os::raw::c_int;
766 }
767 extern "C" {
sqlite3_bind_text16(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_void, arg4: ::std::os::raw::c_int, arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>) -> ::std::os::raw::c_int768     pub fn sqlite3_bind_text16(arg1: *mut sqlite3_stmt,
769                                arg2: ::std::os::raw::c_int,
770                                arg3: *const ::std::os::raw::c_void,
771                                arg4: ::std::os::raw::c_int,
772                                arg5:
773                                    ::std::option::Option<unsafe extern "C" fn(arg1:
774                                                                                   *mut ::std::os::raw::c_void)>)
775      -> ::std::os::raw::c_int;
776 }
777 extern "C" {
sqlite3_bind_value(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: *const sqlite3_value) -> ::std::os::raw::c_int778     pub fn sqlite3_bind_value(arg1: *mut sqlite3_stmt,
779                               arg2: ::std::os::raw::c_int,
780                               arg3: *const sqlite3_value)
781      -> ::std::os::raw::c_int;
782 }
783 extern "C" {
sqlite3_bind_zeroblob(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int784     pub fn sqlite3_bind_zeroblob(arg1: *mut sqlite3_stmt,
785                                  arg2: ::std::os::raw::c_int,
786                                  n: ::std::os::raw::c_int)
787      -> ::std::os::raw::c_int;
788 }
789 extern "C" {
sqlite3_bind_parameter_count(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int790     pub fn sqlite3_bind_parameter_count(arg1: *mut sqlite3_stmt)
791      -> ::std::os::raw::c_int;
792 }
793 extern "C" {
sqlite3_bind_parameter_name(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char794     pub fn sqlite3_bind_parameter_name(arg1: *mut sqlite3_stmt,
795                                        arg2: ::std::os::raw::c_int)
796      -> *const ::std::os::raw::c_char;
797 }
798 extern "C" {
sqlite3_bind_parameter_index(arg1: *mut sqlite3_stmt, zName: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int799     pub fn sqlite3_bind_parameter_index(arg1: *mut sqlite3_stmt,
800                                         zName: *const ::std::os::raw::c_char)
801      -> ::std::os::raw::c_int;
802 }
803 extern "C" {
sqlite3_clear_bindings(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int804     pub fn sqlite3_clear_bindings(arg1: *mut sqlite3_stmt)
805      -> ::std::os::raw::c_int;
806 }
807 extern "C" {
sqlite3_column_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int808     pub fn sqlite3_column_count(pStmt: *mut sqlite3_stmt)
809      -> ::std::os::raw::c_int;
810 }
811 extern "C" {
sqlite3_column_name(arg1: *mut sqlite3_stmt, N: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char812     pub fn sqlite3_column_name(arg1: *mut sqlite3_stmt,
813                                N: ::std::os::raw::c_int)
814      -> *const ::std::os::raw::c_char;
815 }
816 extern "C" {
sqlite3_column_name16(arg1: *mut sqlite3_stmt, N: ::std::os::raw::c_int) -> *const ::std::os::raw::c_void817     pub fn sqlite3_column_name16(arg1: *mut sqlite3_stmt,
818                                  N: ::std::os::raw::c_int)
819      -> *const ::std::os::raw::c_void;
820 }
821 extern "C" {
sqlite3_column_database_name(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char822     pub fn sqlite3_column_database_name(arg1: *mut sqlite3_stmt,
823                                         arg2: ::std::os::raw::c_int)
824      -> *const ::std::os::raw::c_char;
825 }
826 extern "C" {
sqlite3_column_database_name16(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_void827     pub fn sqlite3_column_database_name16(arg1: *mut sqlite3_stmt,
828                                           arg2: ::std::os::raw::c_int)
829      -> *const ::std::os::raw::c_void;
830 }
831 extern "C" {
sqlite3_column_table_name(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char832     pub fn sqlite3_column_table_name(arg1: *mut sqlite3_stmt,
833                                      arg2: ::std::os::raw::c_int)
834      -> *const ::std::os::raw::c_char;
835 }
836 extern "C" {
sqlite3_column_table_name16(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_void837     pub fn sqlite3_column_table_name16(arg1: *mut sqlite3_stmt,
838                                        arg2: ::std::os::raw::c_int)
839      -> *const ::std::os::raw::c_void;
840 }
841 extern "C" {
sqlite3_column_origin_name(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char842     pub fn sqlite3_column_origin_name(arg1: *mut sqlite3_stmt,
843                                       arg2: ::std::os::raw::c_int)
844      -> *const ::std::os::raw::c_char;
845 }
846 extern "C" {
sqlite3_column_origin_name16(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_void847     pub fn sqlite3_column_origin_name16(arg1: *mut sqlite3_stmt,
848                                         arg2: ::std::os::raw::c_int)
849      -> *const ::std::os::raw::c_void;
850 }
851 extern "C" {
sqlite3_column_decltype(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char852     pub fn sqlite3_column_decltype(arg1: *mut sqlite3_stmt,
853                                    arg2: ::std::os::raw::c_int)
854      -> *const ::std::os::raw::c_char;
855 }
856 extern "C" {
sqlite3_column_decltype16(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_void857     pub fn sqlite3_column_decltype16(arg1: *mut sqlite3_stmt,
858                                      arg2: ::std::os::raw::c_int)
859      -> *const ::std::os::raw::c_void;
860 }
861 extern "C" {
sqlite3_step(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int862     pub fn sqlite3_step(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
863 }
864 extern "C" {
sqlite3_data_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int865     pub fn sqlite3_data_count(pStmt: *mut sqlite3_stmt)
866      -> ::std::os::raw::c_int;
867 }
868 extern "C" {
sqlite3_column_blob(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> *const ::std::os::raw::c_void869     pub fn sqlite3_column_blob(arg1: *mut sqlite3_stmt,
870                                iCol: ::std::os::raw::c_int)
871      -> *const ::std::os::raw::c_void;
872 }
873 extern "C" {
sqlite3_column_bytes(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> ::std::os::raw::c_int874     pub fn sqlite3_column_bytes(arg1: *mut sqlite3_stmt,
875                                 iCol: ::std::os::raw::c_int)
876      -> ::std::os::raw::c_int;
877 }
878 extern "C" {
sqlite3_column_bytes16(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> ::std::os::raw::c_int879     pub fn sqlite3_column_bytes16(arg1: *mut sqlite3_stmt,
880                                   iCol: ::std::os::raw::c_int)
881      -> ::std::os::raw::c_int;
882 }
883 extern "C" {
sqlite3_column_double(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> f64884     pub fn sqlite3_column_double(arg1: *mut sqlite3_stmt,
885                                  iCol: ::std::os::raw::c_int) -> f64;
886 }
887 extern "C" {
sqlite3_column_int(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> ::std::os::raw::c_int888     pub fn sqlite3_column_int(arg1: *mut sqlite3_stmt,
889                               iCol: ::std::os::raw::c_int)
890      -> ::std::os::raw::c_int;
891 }
892 extern "C" {
sqlite3_column_int64(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> sqlite3_int64893     pub fn sqlite3_column_int64(arg1: *mut sqlite3_stmt,
894                                 iCol: ::std::os::raw::c_int) -> sqlite3_int64;
895 }
896 extern "C" {
sqlite3_column_text(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> *const ::std::os::raw::c_uchar897     pub fn sqlite3_column_text(arg1: *mut sqlite3_stmt,
898                                iCol: ::std::os::raw::c_int)
899      -> *const ::std::os::raw::c_uchar;
900 }
901 extern "C" {
sqlite3_column_text16(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> *const ::std::os::raw::c_void902     pub fn sqlite3_column_text16(arg1: *mut sqlite3_stmt,
903                                  iCol: ::std::os::raw::c_int)
904      -> *const ::std::os::raw::c_void;
905 }
906 extern "C" {
sqlite3_column_type(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> ::std::os::raw::c_int907     pub fn sqlite3_column_type(arg1: *mut sqlite3_stmt,
908                                iCol: ::std::os::raw::c_int)
909      -> ::std::os::raw::c_int;
910 }
911 extern "C" {
sqlite3_column_value(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> *mut sqlite3_value912     pub fn sqlite3_column_value(arg1: *mut sqlite3_stmt,
913                                 iCol: ::std::os::raw::c_int)
914      -> *mut sqlite3_value;
915 }
916 extern "C" {
sqlite3_finalize(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int917     pub fn sqlite3_finalize(pStmt: *mut sqlite3_stmt)
918      -> ::std::os::raw::c_int;
919 }
920 extern "C" {
sqlite3_reset(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int921     pub fn sqlite3_reset(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
922 }
923 extern "C" {
sqlite3_create_function(db: *mut sqlite3, zFunctionName: *const ::std::os::raw::c_char, nArg: ::std::os::raw::c_int, eTextRep: ::std::os::raw::c_int, pApp: *mut ::std::os::raw::c_void, xFunc: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int, arg3: *mut *mut sqlite3_value)>, xStep: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int, arg3: *mut *mut sqlite3_value)>, xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>) -> ::std::os::raw::c_int924     pub fn sqlite3_create_function(db: *mut sqlite3,
925                                    zFunctionName:
926                                        *const ::std::os::raw::c_char,
927                                    nArg: ::std::os::raw::c_int,
928                                    eTextRep: ::std::os::raw::c_int,
929                                    pApp: *mut ::std::os::raw::c_void,
930                                    xFunc:
931                                        ::std::option::Option<unsafe extern "C" fn(arg1:
932                                                                                       *mut sqlite3_context,
933                                                                                   arg2:
934                                                                                       ::std::os::raw::c_int,
935                                                                                   arg3:
936                                                                                       *mut *mut sqlite3_value)>,
937                                    xStep:
938                                        ::std::option::Option<unsafe extern "C" fn(arg1:
939                                                                                       *mut sqlite3_context,
940                                                                                   arg2:
941                                                                                       ::std::os::raw::c_int,
942                                                                                   arg3:
943                                                                                       *mut *mut sqlite3_value)>,
944                                    xFinal:
945                                        ::std::option::Option<unsafe extern "C" fn(arg1:
946                                                                                       *mut sqlite3_context)>)
947      -> ::std::os::raw::c_int;
948 }
949 extern "C" {
sqlite3_create_function16(db: *mut sqlite3, zFunctionName: *const ::std::os::raw::c_void, nArg: ::std::os::raw::c_int, eTextRep: ::std::os::raw::c_int, pApp: *mut ::std::os::raw::c_void, xFunc: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int, arg3: *mut *mut sqlite3_value)>, xStep: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int, arg3: *mut *mut sqlite3_value)>, xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>) -> ::std::os::raw::c_int950     pub fn sqlite3_create_function16(db: *mut sqlite3,
951                                      zFunctionName:
952                                          *const ::std::os::raw::c_void,
953                                      nArg: ::std::os::raw::c_int,
954                                      eTextRep: ::std::os::raw::c_int,
955                                      pApp: *mut ::std::os::raw::c_void,
956                                      xFunc:
957                                          ::std::option::Option<unsafe extern "C" fn(arg1:
958                                                                                         *mut sqlite3_context,
959                                                                                     arg2:
960                                                                                         ::std::os::raw::c_int,
961                                                                                     arg3:
962                                                                                         *mut *mut sqlite3_value)>,
963                                      xStep:
964                                          ::std::option::Option<unsafe extern "C" fn(arg1:
965                                                                                         *mut sqlite3_context,
966                                                                                     arg2:
967                                                                                         ::std::os::raw::c_int,
968                                                                                     arg3:
969                                                                                         *mut *mut sqlite3_value)>,
970                                      xFinal:
971                                          ::std::option::Option<unsafe extern "C" fn(arg1:
972                                                                                         *mut sqlite3_context)>)
973      -> ::std::os::raw::c_int;
974 }
975 extern "C" {
sqlite3_aggregate_count(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int976     pub fn sqlite3_aggregate_count(arg1: *mut sqlite3_context)
977      -> ::std::os::raw::c_int;
978 }
979 extern "C" {
sqlite3_expired(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int980     pub fn sqlite3_expired(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
981 }
982 extern "C" {
sqlite3_transfer_bindings(arg1: *mut sqlite3_stmt, arg2: *mut sqlite3_stmt) -> ::std::os::raw::c_int983     pub fn sqlite3_transfer_bindings(arg1: *mut sqlite3_stmt,
984                                      arg2: *mut sqlite3_stmt)
985      -> ::std::os::raw::c_int;
986 }
987 extern "C" {
sqlite3_global_recover() -> ::std::os::raw::c_int988     pub fn sqlite3_global_recover() -> ::std::os::raw::c_int;
989 }
990 extern "C" {
sqlite3_thread_cleanup()991     pub fn sqlite3_thread_cleanup();
992 }
993 extern "C" {
sqlite3_memory_alarm(arg1: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: sqlite3_int64, arg3: ::std::os::raw::c_int)>, arg2: *mut ::std::os::raw::c_void, arg3: sqlite3_int64) -> ::std::os::raw::c_int994     pub fn sqlite3_memory_alarm(arg1:
995                                     ::std::option::Option<unsafe extern "C" fn(arg1:
996                                                                                    *mut ::std::os::raw::c_void,
997                                                                                arg2:
998                                                                                    sqlite3_int64,
999                                                                                arg3:
1000                                                                                    ::std::os::raw::c_int)>,
1001                                 arg2: *mut ::std::os::raw::c_void,
1002                                 arg3: sqlite3_int64) -> ::std::os::raw::c_int;
1003 }
1004 extern "C" {
sqlite3_value_blob(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void1005     pub fn sqlite3_value_blob(arg1: *mut sqlite3_value)
1006      -> *const ::std::os::raw::c_void;
1007 }
1008 extern "C" {
sqlite3_value_bytes(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1009     pub fn sqlite3_value_bytes(arg1: *mut sqlite3_value)
1010      -> ::std::os::raw::c_int;
1011 }
1012 extern "C" {
sqlite3_value_bytes16(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1013     pub fn sqlite3_value_bytes16(arg1: *mut sqlite3_value)
1014      -> ::std::os::raw::c_int;
1015 }
1016 extern "C" {
sqlite3_value_double(arg1: *mut sqlite3_value) -> f641017     pub fn sqlite3_value_double(arg1: *mut sqlite3_value) -> f64;
1018 }
1019 extern "C" {
sqlite3_value_int(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1020     pub fn sqlite3_value_int(arg1: *mut sqlite3_value)
1021      -> ::std::os::raw::c_int;
1022 }
1023 extern "C" {
sqlite3_value_int64(arg1: *mut sqlite3_value) -> sqlite3_int641024     pub fn sqlite3_value_int64(arg1: *mut sqlite3_value) -> sqlite3_int64;
1025 }
1026 extern "C" {
sqlite3_value_text(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_uchar1027     pub fn sqlite3_value_text(arg1: *mut sqlite3_value)
1028      -> *const ::std::os::raw::c_uchar;
1029 }
1030 extern "C" {
sqlite3_value_text16(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void1031     pub fn sqlite3_value_text16(arg1: *mut sqlite3_value)
1032      -> *const ::std::os::raw::c_void;
1033 }
1034 extern "C" {
sqlite3_value_text16le(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void1035     pub fn sqlite3_value_text16le(arg1: *mut sqlite3_value)
1036      -> *const ::std::os::raw::c_void;
1037 }
1038 extern "C" {
sqlite3_value_text16be(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void1039     pub fn sqlite3_value_text16be(arg1: *mut sqlite3_value)
1040      -> *const ::std::os::raw::c_void;
1041 }
1042 extern "C" {
sqlite3_value_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1043     pub fn sqlite3_value_type(arg1: *mut sqlite3_value)
1044      -> ::std::os::raw::c_int;
1045 }
1046 extern "C" {
sqlite3_value_numeric_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1047     pub fn sqlite3_value_numeric_type(arg1: *mut sqlite3_value)
1048      -> ::std::os::raw::c_int;
1049 }
1050 extern "C" {
sqlite3_aggregate_context(arg1: *mut sqlite3_context, nBytes: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void1051     pub fn sqlite3_aggregate_context(arg1: *mut sqlite3_context,
1052                                      nBytes: ::std::os::raw::c_int)
1053      -> *mut ::std::os::raw::c_void;
1054 }
1055 extern "C" {
sqlite3_user_data(arg1: *mut sqlite3_context) -> *mut ::std::os::raw::c_void1056     pub fn sqlite3_user_data(arg1: *mut sqlite3_context)
1057      -> *mut ::std::os::raw::c_void;
1058 }
1059 extern "C" {
sqlite3_context_db_handle(arg1: *mut sqlite3_context) -> *mut sqlite31060     pub fn sqlite3_context_db_handle(arg1: *mut sqlite3_context)
1061      -> *mut sqlite3;
1062 }
1063 extern "C" {
sqlite3_get_auxdata(arg1: *mut sqlite3_context, N: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void1064     pub fn sqlite3_get_auxdata(arg1: *mut sqlite3_context,
1065                                N: ::std::os::raw::c_int)
1066      -> *mut ::std::os::raw::c_void;
1067 }
1068 extern "C" {
sqlite3_set_auxdata(arg1: *mut sqlite3_context, N: ::std::os::raw::c_int, arg2: *mut ::std::os::raw::c_void, arg3: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>)1069     pub fn sqlite3_set_auxdata(arg1: *mut sqlite3_context,
1070                                N: ::std::os::raw::c_int,
1071                                arg2: *mut ::std::os::raw::c_void,
1072                                arg3:
1073                                    ::std::option::Option<unsafe extern "C" fn(arg1:
1074                                                                                   *mut ::std::os::raw::c_void)>);
1075 }
1076 pub type sqlite3_destructor_type =
1077     ::std::option::Option<unsafe extern "C" fn(arg1:
1078                                                    *mut ::std::os::raw::c_void)>;
1079 extern "C" {
sqlite3_result_blob(arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_void, arg3: ::std::os::raw::c_int, arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>)1080     pub fn sqlite3_result_blob(arg1: *mut sqlite3_context,
1081                                arg2: *const ::std::os::raw::c_void,
1082                                arg3: ::std::os::raw::c_int,
1083                                arg4:
1084                                    ::std::option::Option<unsafe extern "C" fn(arg1:
1085                                                                                   *mut ::std::os::raw::c_void)>);
1086 }
1087 extern "C" {
sqlite3_result_double(arg1: *mut sqlite3_context, arg2: f64)1088     pub fn sqlite3_result_double(arg1: *mut sqlite3_context, arg2: f64);
1089 }
1090 extern "C" {
sqlite3_result_error(arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_char, arg3: ::std::os::raw::c_int)1091     pub fn sqlite3_result_error(arg1: *mut sqlite3_context,
1092                                 arg2: *const ::std::os::raw::c_char,
1093                                 arg3: ::std::os::raw::c_int);
1094 }
1095 extern "C" {
sqlite3_result_error16(arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_void, arg3: ::std::os::raw::c_int)1096     pub fn sqlite3_result_error16(arg1: *mut sqlite3_context,
1097                                   arg2: *const ::std::os::raw::c_void,
1098                                   arg3: ::std::os::raw::c_int);
1099 }
1100 extern "C" {
sqlite3_result_error_toobig(arg1: *mut sqlite3_context)1101     pub fn sqlite3_result_error_toobig(arg1: *mut sqlite3_context);
1102 }
1103 extern "C" {
sqlite3_result_error_nomem(arg1: *mut sqlite3_context)1104     pub fn sqlite3_result_error_nomem(arg1: *mut sqlite3_context);
1105 }
1106 extern "C" {
sqlite3_result_error_code(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int)1107     pub fn sqlite3_result_error_code(arg1: *mut sqlite3_context,
1108                                      arg2: ::std::os::raw::c_int);
1109 }
1110 extern "C" {
sqlite3_result_int(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int)1111     pub fn sqlite3_result_int(arg1: *mut sqlite3_context,
1112                               arg2: ::std::os::raw::c_int);
1113 }
1114 extern "C" {
sqlite3_result_int64(arg1: *mut sqlite3_context, arg2: sqlite3_int64)1115     pub fn sqlite3_result_int64(arg1: *mut sqlite3_context,
1116                                 arg2: sqlite3_int64);
1117 }
1118 extern "C" {
sqlite3_result_null(arg1: *mut sqlite3_context)1119     pub fn sqlite3_result_null(arg1: *mut sqlite3_context);
1120 }
1121 extern "C" {
sqlite3_result_text(arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_char, arg3: ::std::os::raw::c_int, arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>)1122     pub fn sqlite3_result_text(arg1: *mut sqlite3_context,
1123                                arg2: *const ::std::os::raw::c_char,
1124                                arg3: ::std::os::raw::c_int,
1125                                arg4:
1126                                    ::std::option::Option<unsafe extern "C" fn(arg1:
1127                                                                                   *mut ::std::os::raw::c_void)>);
1128 }
1129 extern "C" {
sqlite3_result_text16(arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_void, arg3: ::std::os::raw::c_int, arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>)1130     pub fn sqlite3_result_text16(arg1: *mut sqlite3_context,
1131                                  arg2: *const ::std::os::raw::c_void,
1132                                  arg3: ::std::os::raw::c_int,
1133                                  arg4:
1134                                      ::std::option::Option<unsafe extern "C" fn(arg1:
1135                                                                                     *mut ::std::os::raw::c_void)>);
1136 }
1137 extern "C" {
sqlite3_result_text16le(arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_void, arg3: ::std::os::raw::c_int, arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>)1138     pub fn sqlite3_result_text16le(arg1: *mut sqlite3_context,
1139                                    arg2: *const ::std::os::raw::c_void,
1140                                    arg3: ::std::os::raw::c_int,
1141                                    arg4:
1142                                        ::std::option::Option<unsafe extern "C" fn(arg1:
1143                                                                                       *mut ::std::os::raw::c_void)>);
1144 }
1145 extern "C" {
sqlite3_result_text16be(arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_void, arg3: ::std::os::raw::c_int, arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>)1146     pub fn sqlite3_result_text16be(arg1: *mut sqlite3_context,
1147                                    arg2: *const ::std::os::raw::c_void,
1148                                    arg3: ::std::os::raw::c_int,
1149                                    arg4:
1150                                        ::std::option::Option<unsafe extern "C" fn(arg1:
1151                                                                                       *mut ::std::os::raw::c_void)>);
1152 }
1153 extern "C" {
sqlite3_result_value(arg1: *mut sqlite3_context, arg2: *mut sqlite3_value)1154     pub fn sqlite3_result_value(arg1: *mut sqlite3_context,
1155                                 arg2: *mut sqlite3_value);
1156 }
1157 extern "C" {
sqlite3_result_zeroblob(arg1: *mut sqlite3_context, n: ::std::os::raw::c_int)1158     pub fn sqlite3_result_zeroblob(arg1: *mut sqlite3_context,
1159                                    n: ::std::os::raw::c_int);
1160 }
1161 extern "C" {
sqlite3_create_collation(arg1: *mut sqlite3, zName: *const ::std::os::raw::c_char, eTextRep: ::std::os::raw::c_int, arg2: *mut ::std::os::raw::c_void, xCompare: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_void, arg4: ::std::os::raw::c_int, arg5: *const ::std::os::raw::c_void) -> ::std::os::raw::c_int>) -> ::std::os::raw::c_int1162     pub fn sqlite3_create_collation(arg1: *mut sqlite3,
1163                                     zName: *const ::std::os::raw::c_char,
1164                                     eTextRep: ::std::os::raw::c_int,
1165                                     arg2: *mut ::std::os::raw::c_void,
1166                                     xCompare:
1167                                         ::std::option::Option<unsafe extern "C" fn(arg1:
1168                                                                                        *mut ::std::os::raw::c_void,
1169                                                                                    arg2:
1170                                                                                        ::std::os::raw::c_int,
1171                                                                                    arg3:
1172                                                                                        *const ::std::os::raw::c_void,
1173                                                                                    arg4:
1174                                                                                        ::std::os::raw::c_int,
1175                                                                                    arg5:
1176                                                                                        *const ::std::os::raw::c_void)
1177                                                                   ->
1178                                                                       ::std::os::raw::c_int>)
1179      -> ::std::os::raw::c_int;
1180 }
1181 extern "C" {
sqlite3_create_collation_v2(arg1: *mut sqlite3, zName: *const ::std::os::raw::c_char, eTextRep: ::std::os::raw::c_int, arg2: *mut ::std::os::raw::c_void, xCompare: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_void, arg4: ::std::os::raw::c_int, arg5: *const ::std::os::raw::c_void) -> ::std::os::raw::c_int>, xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>) -> ::std::os::raw::c_int1182     pub fn sqlite3_create_collation_v2(arg1: *mut sqlite3,
1183                                        zName: *const ::std::os::raw::c_char,
1184                                        eTextRep: ::std::os::raw::c_int,
1185                                        arg2: *mut ::std::os::raw::c_void,
1186                                        xCompare:
1187                                            ::std::option::Option<unsafe extern "C" fn(arg1:
1188                                                                                           *mut ::std::os::raw::c_void,
1189                                                                                       arg2:
1190                                                                                           ::std::os::raw::c_int,
1191                                                                                       arg3:
1192                                                                                           *const ::std::os::raw::c_void,
1193                                                                                       arg4:
1194                                                                                           ::std::os::raw::c_int,
1195                                                                                       arg5:
1196                                                                                           *const ::std::os::raw::c_void)
1197                                                                      ->
1198                                                                          ::std::os::raw::c_int>,
1199                                        xDestroy:
1200                                            ::std::option::Option<unsafe extern "C" fn(arg1:
1201                                                                                           *mut ::std::os::raw::c_void)>)
1202      -> ::std::os::raw::c_int;
1203 }
1204 extern "C" {
sqlite3_create_collation16(arg1: *mut sqlite3, zName: *const ::std::os::raw::c_void, eTextRep: ::std::os::raw::c_int, arg2: *mut ::std::os::raw::c_void, xCompare: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_void, arg4: ::std::os::raw::c_int, arg5: *const ::std::os::raw::c_void) -> ::std::os::raw::c_int>) -> ::std::os::raw::c_int1205     pub fn sqlite3_create_collation16(arg1: *mut sqlite3,
1206                                       zName: *const ::std::os::raw::c_void,
1207                                       eTextRep: ::std::os::raw::c_int,
1208                                       arg2: *mut ::std::os::raw::c_void,
1209                                       xCompare:
1210                                           ::std::option::Option<unsafe extern "C" fn(arg1:
1211                                                                                          *mut ::std::os::raw::c_void,
1212                                                                                      arg2:
1213                                                                                          ::std::os::raw::c_int,
1214                                                                                      arg3:
1215                                                                                          *const ::std::os::raw::c_void,
1216                                                                                      arg4:
1217                                                                                          ::std::os::raw::c_int,
1218                                                                                      arg5:
1219                                                                                          *const ::std::os::raw::c_void)
1220                                                                     ->
1221                                                                         ::std::os::raw::c_int>)
1222      -> ::std::os::raw::c_int;
1223 }
1224 extern "C" {
sqlite3_collation_needed(arg1: *mut sqlite3, arg2: *mut ::std::os::raw::c_void, arg3: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: *mut sqlite3, eTextRep: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_char)>) -> ::std::os::raw::c_int1225     pub fn sqlite3_collation_needed(arg1: *mut sqlite3,
1226                                     arg2: *mut ::std::os::raw::c_void,
1227                                     arg3:
1228                                         ::std::option::Option<unsafe extern "C" fn(arg1:
1229                                                                                        *mut ::std::os::raw::c_void,
1230                                                                                    arg2:
1231                                                                                        *mut sqlite3,
1232                                                                                    eTextRep:
1233                                                                                        ::std::os::raw::c_int,
1234                                                                                    arg3:
1235                                                                                        *const ::std::os::raw::c_char)>)
1236      -> ::std::os::raw::c_int;
1237 }
1238 extern "C" {
sqlite3_collation_needed16(arg1: *mut sqlite3, arg2: *mut ::std::os::raw::c_void, arg3: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: *mut sqlite3, eTextRep: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_void)>) -> ::std::os::raw::c_int1239     pub fn sqlite3_collation_needed16(arg1: *mut sqlite3,
1240                                       arg2: *mut ::std::os::raw::c_void,
1241                                       arg3:
1242                                           ::std::option::Option<unsafe extern "C" fn(arg1:
1243                                                                                          *mut ::std::os::raw::c_void,
1244                                                                                      arg2:
1245                                                                                          *mut sqlite3,
1246                                                                                      eTextRep:
1247                                                                                          ::std::os::raw::c_int,
1248                                                                                      arg3:
1249                                                                                          *const ::std::os::raw::c_void)>)
1250      -> ::std::os::raw::c_int;
1251 }
1252 extern "C" {
sqlite3_key(db: *mut sqlite3, pKey: *const ::std::os::raw::c_void, nKey: ::std::os::raw::c_int) -> ::std::os::raw::c_int1253     pub fn sqlite3_key(db: *mut sqlite3, pKey: *const ::std::os::raw::c_void,
1254                        nKey: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1255 }
1256 extern "C" {
sqlite3_rekey(db: *mut sqlite3, pKey: *const ::std::os::raw::c_void, nKey: ::std::os::raw::c_int) -> ::std::os::raw::c_int1257     pub fn sqlite3_rekey(db: *mut sqlite3,
1258                          pKey: *const ::std::os::raw::c_void,
1259                          nKey: ::std::os::raw::c_int)
1260      -> ::std::os::raw::c_int;
1261 }
1262 extern "C" {
sqlite3_sleep(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int1263     pub fn sqlite3_sleep(arg1: ::std::os::raw::c_int)
1264      -> ::std::os::raw::c_int;
1265 }
1266 extern "C" {
1267     #[link_name = "sqlite3_temp_directory"]
1268     pub static mut sqlite3_temp_directory: *mut ::std::os::raw::c_char;
1269 }
1270 extern "C" {
sqlite3_get_autocommit(arg1: *mut sqlite3) -> ::std::os::raw::c_int1271     pub fn sqlite3_get_autocommit(arg1: *mut sqlite3)
1272      -> ::std::os::raw::c_int;
1273 }
1274 extern "C" {
sqlite3_db_handle(arg1: *mut sqlite3_stmt) -> *mut sqlite31275     pub fn sqlite3_db_handle(arg1: *mut sqlite3_stmt) -> *mut sqlite3;
1276 }
1277 extern "C" {
sqlite3_next_stmt(pDb: *mut sqlite3, pStmt: *mut sqlite3_stmt) -> *mut sqlite3_stmt1278     pub fn sqlite3_next_stmt(pDb: *mut sqlite3, pStmt: *mut sqlite3_stmt)
1279      -> *mut sqlite3_stmt;
1280 }
1281 extern "C" {
sqlite3_commit_hook(arg1: *mut sqlite3, arg2: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int>, arg3: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void1282     pub fn sqlite3_commit_hook(arg1: *mut sqlite3,
1283                                arg2:
1284                                    ::std::option::Option<unsafe extern "C" fn(arg1:
1285                                                                                   *mut ::std::os::raw::c_void)
1286                                                              ->
1287                                                                  ::std::os::raw::c_int>,
1288                                arg3: *mut ::std::os::raw::c_void)
1289      -> *mut ::std::os::raw::c_void;
1290 }
1291 extern "C" {
sqlite3_rollback_hook(arg1: *mut sqlite3, arg2: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, arg3: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void1292     pub fn sqlite3_rollback_hook(arg1: *mut sqlite3,
1293                                  arg2:
1294                                      ::std::option::Option<unsafe extern "C" fn(arg1:
1295                                                                                     *mut ::std::os::raw::c_void)>,
1296                                  arg3: *mut ::std::os::raw::c_void)
1297      -> *mut ::std::os::raw::c_void;
1298 }
1299 extern "C" {
sqlite3_update_hook(arg1: *mut sqlite3, arg2: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_char, arg4: *const ::std::os::raw::c_char, arg5: sqlite3_int64)>, arg3: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void1300     pub fn sqlite3_update_hook(arg1: *mut sqlite3,
1301                                arg2:
1302                                    ::std::option::Option<unsafe extern "C" fn(arg1:
1303                                                                                   *mut ::std::os::raw::c_void,
1304                                                                               arg2:
1305                                                                                   ::std::os::raw::c_int,
1306                                                                               arg3:
1307                                                                                   *const ::std::os::raw::c_char,
1308                                                                               arg4:
1309                                                                                   *const ::std::os::raw::c_char,
1310                                                                               arg5:
1311                                                                                   sqlite3_int64)>,
1312                                arg3: *mut ::std::os::raw::c_void)
1313      -> *mut ::std::os::raw::c_void;
1314 }
1315 extern "C" {
sqlite3_enable_shared_cache(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int1316     pub fn sqlite3_enable_shared_cache(arg1: ::std::os::raw::c_int)
1317      -> ::std::os::raw::c_int;
1318 }
1319 extern "C" {
sqlite3_release_memory(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int1320     pub fn sqlite3_release_memory(arg1: ::std::os::raw::c_int)
1321      -> ::std::os::raw::c_int;
1322 }
1323 extern "C" {
sqlite3_soft_heap_limit(arg1: ::std::os::raw::c_int)1324     pub fn sqlite3_soft_heap_limit(arg1: ::std::os::raw::c_int);
1325 }
1326 extern "C" {
sqlite3_table_column_metadata(db: *mut sqlite3, zDbName: *const ::std::os::raw::c_char, zTableName: *const ::std::os::raw::c_char, zColumnName: *const ::std::os::raw::c_char, pzDataType: *mut *const ::std::os::raw::c_char, pzCollSeq: *mut *const ::std::os::raw::c_char, pNotNull: *mut ::std::os::raw::c_int, pPrimaryKey: *mut ::std::os::raw::c_int, pAutoinc: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int1327     pub fn sqlite3_table_column_metadata(db: *mut sqlite3,
1328                                          zDbName:
1329                                              *const ::std::os::raw::c_char,
1330                                          zTableName:
1331                                              *const ::std::os::raw::c_char,
1332                                          zColumnName:
1333                                              *const ::std::os::raw::c_char,
1334                                          pzDataType:
1335                                              *mut *const ::std::os::raw::c_char,
1336                                          pzCollSeq:
1337                                              *mut *const ::std::os::raw::c_char,
1338                                          pNotNull: *mut ::std::os::raw::c_int,
1339                                          pPrimaryKey:
1340                                              *mut ::std::os::raw::c_int,
1341                                          pAutoinc: *mut ::std::os::raw::c_int)
1342      -> ::std::os::raw::c_int;
1343 }
1344 extern "C" {
sqlite3_load_extension(db: *mut sqlite3, zFile: *const ::std::os::raw::c_char, zProc: *const ::std::os::raw::c_char, pzErrMsg: *mut *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int1345     pub fn sqlite3_load_extension(db: *mut sqlite3,
1346                                   zFile: *const ::std::os::raw::c_char,
1347                                   zProc: *const ::std::os::raw::c_char,
1348                                   pzErrMsg: *mut *mut ::std::os::raw::c_char)
1349      -> ::std::os::raw::c_int;
1350 }
1351 extern "C" {
sqlite3_enable_load_extension(db: *mut sqlite3, onoff: ::std::os::raw::c_int) -> ::std::os::raw::c_int1352     pub fn sqlite3_enable_load_extension(db: *mut sqlite3,
1353                                          onoff: ::std::os::raw::c_int)
1354      -> ::std::os::raw::c_int;
1355 }
1356 extern "C" {
sqlite3_auto_extension(xEntryPoint: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int1357     pub fn sqlite3_auto_extension(xEntryPoint:
1358                                       ::std::option::Option<unsafe extern "C" fn()>)
1359      -> ::std::os::raw::c_int;
1360 }
1361 extern "C" {
sqlite3_reset_auto_extension()1362     pub fn sqlite3_reset_auto_extension();
1363 }
1364 #[repr(C)]
1365 #[derive(Debug, Copy)]
1366 pub struct sqlite3_vtab {
1367     pub pModule: *const sqlite3_module,
1368     pub nRef: ::std::os::raw::c_int,
1369     pub zErrMsg: *mut ::std::os::raw::c_char,
1370 }
1371 #[test]
bindgen_test_layout_sqlite3_vtab()1372 fn bindgen_test_layout_sqlite3_vtab() {
1373     assert_eq!(::std::mem::size_of::<sqlite3_vtab>() , 24usize);
1374     assert_eq!(::std::mem::align_of::<sqlite3_vtab>() , 8usize);
1375 }
1376 impl Clone for sqlite3_vtab {
clone(&self) -> Self1377     fn clone(&self) -> Self { *self }
1378 }
1379 #[repr(C)]
1380 #[derive(Debug, Copy)]
1381 pub struct sqlite3_index_info {
1382     pub nConstraint: ::std::os::raw::c_int,
1383     pub aConstraint: *mut sqlite3_index_info_sqlite3_index_constraint,
1384     pub nOrderBy: ::std::os::raw::c_int,
1385     pub aOrderBy: *mut sqlite3_index_info_sqlite3_index_orderby,
1386     pub aConstraintUsage: *mut sqlite3_index_info_sqlite3_index_constraint_usage,
1387     pub idxNum: ::std::os::raw::c_int,
1388     pub idxStr: *mut ::std::os::raw::c_char,
1389     pub needToFreeIdxStr: ::std::os::raw::c_int,
1390     pub orderByConsumed: ::std::os::raw::c_int,
1391     pub estimatedCost: f64,
1392 }
1393 #[repr(C)]
1394 #[derive(Debug, Copy)]
1395 pub struct sqlite3_index_info_sqlite3_index_constraint {
1396     pub iColumn: ::std::os::raw::c_int,
1397     pub op: ::std::os::raw::c_uchar,
1398     pub usable: ::std::os::raw::c_uchar,
1399     pub iTermOffset: ::std::os::raw::c_int,
1400 }
1401 #[test]
bindgen_test_layout_sqlite3_index_info_sqlite3_index_constraint()1402 fn bindgen_test_layout_sqlite3_index_info_sqlite3_index_constraint() {
1403     assert_eq!(::std::mem::size_of::<sqlite3_index_info_sqlite3_index_constraint>()
1404                , 12usize);
1405     assert_eq!(::std::mem::align_of::<sqlite3_index_info_sqlite3_index_constraint>()
1406                , 4usize);
1407 }
1408 impl Clone for sqlite3_index_info_sqlite3_index_constraint {
clone(&self) -> Self1409     fn clone(&self) -> Self { *self }
1410 }
1411 #[repr(C)]
1412 #[derive(Debug, Copy)]
1413 pub struct sqlite3_index_info_sqlite3_index_orderby {
1414     pub iColumn: ::std::os::raw::c_int,
1415     pub desc: ::std::os::raw::c_uchar,
1416 }
1417 #[test]
bindgen_test_layout_sqlite3_index_info_sqlite3_index_orderby()1418 fn bindgen_test_layout_sqlite3_index_info_sqlite3_index_orderby() {
1419     assert_eq!(::std::mem::size_of::<sqlite3_index_info_sqlite3_index_orderby>()
1420                , 8usize);
1421     assert_eq!(::std::mem::align_of::<sqlite3_index_info_sqlite3_index_orderby>()
1422                , 4usize);
1423 }
1424 impl Clone for sqlite3_index_info_sqlite3_index_orderby {
clone(&self) -> Self1425     fn clone(&self) -> Self { *self }
1426 }
1427 #[repr(C)]
1428 #[derive(Debug, Copy)]
1429 pub struct sqlite3_index_info_sqlite3_index_constraint_usage {
1430     pub argvIndex: ::std::os::raw::c_int,
1431     pub omit: ::std::os::raw::c_uchar,
1432 }
1433 #[test]
bindgen_test_layout_sqlite3_index_info_sqlite3_index_constraint_usage()1434 fn bindgen_test_layout_sqlite3_index_info_sqlite3_index_constraint_usage() {
1435     assert_eq!(::std::mem::size_of::<sqlite3_index_info_sqlite3_index_constraint_usage>()
1436                , 8usize);
1437     assert_eq!(::std::mem::align_of::<sqlite3_index_info_sqlite3_index_constraint_usage>()
1438                , 4usize);
1439 }
1440 impl Clone for sqlite3_index_info_sqlite3_index_constraint_usage {
clone(&self) -> Self1441     fn clone(&self) -> Self { *self }
1442 }
1443 #[test]
bindgen_test_layout_sqlite3_index_info()1444 fn bindgen_test_layout_sqlite3_index_info() {
1445     assert_eq!(::std::mem::size_of::<sqlite3_index_info>() , 72usize);
1446     assert_eq!(::std::mem::align_of::<sqlite3_index_info>() , 8usize);
1447 }
1448 impl Clone for sqlite3_index_info {
clone(&self) -> Self1449     fn clone(&self) -> Self { *self }
1450 }
1451 #[repr(C)]
1452 #[derive(Debug, Copy)]
1453 pub struct sqlite3_vtab_cursor {
1454     pub pVtab: *mut sqlite3_vtab,
1455 }
1456 #[test]
bindgen_test_layout_sqlite3_vtab_cursor()1457 fn bindgen_test_layout_sqlite3_vtab_cursor() {
1458     assert_eq!(::std::mem::size_of::<sqlite3_vtab_cursor>() , 8usize);
1459     assert_eq!(::std::mem::align_of::<sqlite3_vtab_cursor>() , 8usize);
1460 }
1461 impl Clone for sqlite3_vtab_cursor {
clone(&self) -> Self1462     fn clone(&self) -> Self { *self }
1463 }
1464 #[repr(C)]
1465 #[derive(Debug, Copy)]
1466 pub struct sqlite3_module {
1467     pub iVersion: ::std::os::raw::c_int,
1468     pub xCreate: ::std::option::Option<unsafe extern "C" fn(arg1:
1469                                                                 *mut sqlite3,
1470                                                             pAux:
1471                                                                 *mut ::std::os::raw::c_void,
1472                                                             argc:
1473                                                                 ::std::os::raw::c_int,
1474                                                             argv:
1475                                                                 *const *const ::std::os::raw::c_char,
1476                                                             ppVTab:
1477                                                                 *mut *mut sqlite3_vtab,
1478                                                             arg2:
1479                                                                 *mut *mut ::std::os::raw::c_char)
1480                                            -> ::std::os::raw::c_int>,
1481     pub xConnect: ::std::option::Option<unsafe extern "C" fn(arg1:
1482                                                                  *mut sqlite3,
1483                                                              pAux:
1484                                                                  *mut ::std::os::raw::c_void,
1485                                                              argc:
1486                                                                  ::std::os::raw::c_int,
1487                                                              argv:
1488                                                                  *const *const ::std::os::raw::c_char,
1489                                                              ppVTab:
1490                                                                  *mut *mut sqlite3_vtab,
1491                                                              arg2:
1492                                                                  *mut *mut ::std::os::raw::c_char)
1493                                             -> ::std::os::raw::c_int>,
1494     pub xBestIndex: ::std::option::Option<unsafe extern "C" fn(pVTab:
1495                                                                    *mut sqlite3_vtab,
1496                                                                arg1:
1497                                                                    *mut sqlite3_index_info)
1498                                               -> ::std::os::raw::c_int>,
1499     pub xDisconnect: ::std::option::Option<unsafe extern "C" fn(pVTab:
1500                                                                     *mut sqlite3_vtab)
1501                                                -> ::std::os::raw::c_int>,
1502     pub xDestroy: ::std::option::Option<unsafe extern "C" fn(pVTab:
1503                                                                  *mut sqlite3_vtab)
1504                                             -> ::std::os::raw::c_int>,
1505     pub xOpen: ::std::option::Option<unsafe extern "C" fn(pVTab:
1506                                                               *mut sqlite3_vtab,
1507                                                           ppCursor:
1508                                                               *mut *mut sqlite3_vtab_cursor)
1509                                          -> ::std::os::raw::c_int>,
1510     pub xClose: ::std::option::Option<unsafe extern "C" fn(arg1:
1511                                                                *mut sqlite3_vtab_cursor)
1512                                           -> ::std::os::raw::c_int>,
1513     pub xFilter: ::std::option::Option<unsafe extern "C" fn(arg1:
1514                                                                 *mut sqlite3_vtab_cursor,
1515                                                             idxNum:
1516                                                                 ::std::os::raw::c_int,
1517                                                             idxStr:
1518                                                                 *const ::std::os::raw::c_char,
1519                                                             argc:
1520                                                                 ::std::os::raw::c_int,
1521                                                             argv:
1522                                                                 *mut *mut sqlite3_value)
1523                                            -> ::std::os::raw::c_int>,
1524     pub xNext: ::std::option::Option<unsafe extern "C" fn(arg1:
1525                                                               *mut sqlite3_vtab_cursor)
1526                                          -> ::std::os::raw::c_int>,
1527     pub xEof: ::std::option::Option<unsafe extern "C" fn(arg1:
1528                                                              *mut sqlite3_vtab_cursor)
1529                                         -> ::std::os::raw::c_int>,
1530     pub xColumn: ::std::option::Option<unsafe extern "C" fn(arg1:
1531                                                                 *mut sqlite3_vtab_cursor,
1532                                                             arg2:
1533                                                                 *mut sqlite3_context,
1534                                                             arg3:
1535                                                                 ::std::os::raw::c_int)
1536                                            -> ::std::os::raw::c_int>,
1537     pub xRowid: ::std::option::Option<unsafe extern "C" fn(arg1:
1538                                                                *mut sqlite3_vtab_cursor,
1539                                                            pRowid:
1540                                                                *mut sqlite3_int64)
1541                                           -> ::std::os::raw::c_int>,
1542     pub xUpdate: ::std::option::Option<unsafe extern "C" fn(arg1:
1543                                                                 *mut sqlite3_vtab,
1544                                                             arg2:
1545                                                                 ::std::os::raw::c_int,
1546                                                             arg3:
1547                                                                 *mut *mut sqlite3_value,
1548                                                             arg4:
1549                                                                 *mut sqlite3_int64)
1550                                            -> ::std::os::raw::c_int>,
1551     pub xBegin: ::std::option::Option<unsafe extern "C" fn(pVTab:
1552                                                                *mut sqlite3_vtab)
1553                                           -> ::std::os::raw::c_int>,
1554     pub xSync: ::std::option::Option<unsafe extern "C" fn(pVTab:
1555                                                               *mut sqlite3_vtab)
1556                                          -> ::std::os::raw::c_int>,
1557     pub xCommit: ::std::option::Option<unsafe extern "C" fn(pVTab:
1558                                                                 *mut sqlite3_vtab)
1559                                            -> ::std::os::raw::c_int>,
1560     pub xRollback: ::std::option::Option<unsafe extern "C" fn(pVTab:
1561                                                                   *mut sqlite3_vtab)
1562                                              -> ::std::os::raw::c_int>,
1563     pub xFindFunction: ::std::option::Option<unsafe extern "C" fn(pVtab:
1564                                                                       *mut sqlite3_vtab,
1565                                                                   nArg:
1566                                                                       ::std::os::raw::c_int,
1567                                                                   zName:
1568                                                                       *const ::std::os::raw::c_char,
1569                                                                   pxFunc:
1570                                                                       *mut ::std::option::Option<unsafe extern "C" fn(arg1:
1571                                                                                                                           *mut sqlite3_context,
1572                                                                                                                       arg2:
1573                                                                                                                           ::std::os::raw::c_int,
1574                                                                                                                       arg3:
1575                                                                                                                           *mut *mut sqlite3_value)>,
1576                                                                   ppArg:
1577                                                                       *mut *mut ::std::os::raw::c_void)
1578                                                  -> ::std::os::raw::c_int>,
1579     pub xRename: ::std::option::Option<unsafe extern "C" fn(pVtab:
1580                                                                 *mut sqlite3_vtab,
1581                                                             zNew:
1582                                                                 *const ::std::os::raw::c_char)
1583                                            -> ::std::os::raw::c_int>,
1584 }
1585 #[test]
bindgen_test_layout_sqlite3_module()1586 fn bindgen_test_layout_sqlite3_module() {
1587     assert_eq!(::std::mem::size_of::<sqlite3_module>() , 160usize);
1588     assert_eq!(::std::mem::align_of::<sqlite3_module>() , 8usize);
1589 }
1590 impl Clone for sqlite3_module {
clone(&self) -> Self1591     fn clone(&self) -> Self { *self }
1592 }
1593 extern "C" {
sqlite3_create_module(db: *mut sqlite3, zName: *const ::std::os::raw::c_char, arg1: *const sqlite3_module, arg2: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int1594     pub fn sqlite3_create_module(db: *mut sqlite3,
1595                                  zName: *const ::std::os::raw::c_char,
1596                                  arg1: *const sqlite3_module,
1597                                  arg2: *mut ::std::os::raw::c_void)
1598      -> ::std::os::raw::c_int;
1599 }
1600 extern "C" {
sqlite3_create_module_v2(db: *mut sqlite3, zName: *const ::std::os::raw::c_char, arg1: *const sqlite3_module, arg2: *mut ::std::os::raw::c_void, xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>) -> ::std::os::raw::c_int1601     pub fn sqlite3_create_module_v2(db: *mut sqlite3,
1602                                     zName: *const ::std::os::raw::c_char,
1603                                     arg1: *const sqlite3_module,
1604                                     arg2: *mut ::std::os::raw::c_void,
1605                                     xDestroy:
1606                                         ::std::option::Option<unsafe extern "C" fn(arg1:
1607                                                                                        *mut ::std::os::raw::c_void)>)
1608      -> ::std::os::raw::c_int;
1609 }
1610 extern "C" {
sqlite3_declare_vtab(arg1: *mut sqlite3, zCreateTable: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int1611     pub fn sqlite3_declare_vtab(arg1: *mut sqlite3,
1612                                 zCreateTable: *const ::std::os::raw::c_char)
1613      -> ::std::os::raw::c_int;
1614 }
1615 extern "C" {
sqlite3_overload_function(arg1: *mut sqlite3, zFuncName: *const ::std::os::raw::c_char, nArg: ::std::os::raw::c_int) -> ::std::os::raw::c_int1616     pub fn sqlite3_overload_function(arg1: *mut sqlite3,
1617                                      zFuncName: *const ::std::os::raw::c_char,
1618                                      nArg: ::std::os::raw::c_int)
1619      -> ::std::os::raw::c_int;
1620 }
1621 #[repr(C)]
1622 #[derive(Debug, Copy, Clone)]
1623 pub struct sqlite3_blob([u8; 0]);
1624 extern "C" {
sqlite3_blob_open(arg1: *mut sqlite3, zDb: *const ::std::os::raw::c_char, zTable: *const ::std::os::raw::c_char, zColumn: *const ::std::os::raw::c_char, iRow: sqlite3_int64, flags: ::std::os::raw::c_int, ppBlob: *mut *mut sqlite3_blob) -> ::std::os::raw::c_int1625     pub fn sqlite3_blob_open(arg1: *mut sqlite3,
1626                              zDb: *const ::std::os::raw::c_char,
1627                              zTable: *const ::std::os::raw::c_char,
1628                              zColumn: *const ::std::os::raw::c_char,
1629                              iRow: sqlite3_int64,
1630                              flags: ::std::os::raw::c_int,
1631                              ppBlob: *mut *mut sqlite3_blob)
1632      -> ::std::os::raw::c_int;
1633 }
1634 extern "C" {
sqlite3_blob_close(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int1635     pub fn sqlite3_blob_close(arg1: *mut sqlite3_blob)
1636      -> ::std::os::raw::c_int;
1637 }
1638 extern "C" {
sqlite3_blob_bytes(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int1639     pub fn sqlite3_blob_bytes(arg1: *mut sqlite3_blob)
1640      -> ::std::os::raw::c_int;
1641 }
1642 extern "C" {
sqlite3_blob_read(arg1: *mut sqlite3_blob, Z: *mut ::std::os::raw::c_void, N: ::std::os::raw::c_int, iOffset: ::std::os::raw::c_int) -> ::std::os::raw::c_int1643     pub fn sqlite3_blob_read(arg1: *mut sqlite3_blob,
1644                              Z: *mut ::std::os::raw::c_void,
1645                              N: ::std::os::raw::c_int,
1646                              iOffset: ::std::os::raw::c_int)
1647      -> ::std::os::raw::c_int;
1648 }
1649 extern "C" {
sqlite3_blob_write(arg1: *mut sqlite3_blob, z: *const ::std::os::raw::c_void, n: ::std::os::raw::c_int, iOffset: ::std::os::raw::c_int) -> ::std::os::raw::c_int1650     pub fn sqlite3_blob_write(arg1: *mut sqlite3_blob,
1651                               z: *const ::std::os::raw::c_void,
1652                               n: ::std::os::raw::c_int,
1653                               iOffset: ::std::os::raw::c_int)
1654      -> ::std::os::raw::c_int;
1655 }
1656 extern "C" {
sqlite3_vfs_find(zVfsName: *const ::std::os::raw::c_char) -> *mut sqlite3_vfs1657     pub fn sqlite3_vfs_find(zVfsName: *const ::std::os::raw::c_char)
1658      -> *mut sqlite3_vfs;
1659 }
1660 extern "C" {
sqlite3_vfs_register(arg1: *mut sqlite3_vfs, makeDflt: ::std::os::raw::c_int) -> ::std::os::raw::c_int1661     pub fn sqlite3_vfs_register(arg1: *mut sqlite3_vfs,
1662                                 makeDflt: ::std::os::raw::c_int)
1663      -> ::std::os::raw::c_int;
1664 }
1665 extern "C" {
sqlite3_vfs_unregister(arg1: *mut sqlite3_vfs) -> ::std::os::raw::c_int1666     pub fn sqlite3_vfs_unregister(arg1: *mut sqlite3_vfs)
1667      -> ::std::os::raw::c_int;
1668 }
1669 extern "C" {
sqlite3_mutex_alloc(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex1670     pub fn sqlite3_mutex_alloc(arg1: ::std::os::raw::c_int)
1671      -> *mut sqlite3_mutex;
1672 }
1673 extern "C" {
sqlite3_mutex_free(arg1: *mut sqlite3_mutex)1674     pub fn sqlite3_mutex_free(arg1: *mut sqlite3_mutex);
1675 }
1676 extern "C" {
sqlite3_mutex_enter(arg1: *mut sqlite3_mutex)1677     pub fn sqlite3_mutex_enter(arg1: *mut sqlite3_mutex);
1678 }
1679 extern "C" {
sqlite3_mutex_try(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int1680     pub fn sqlite3_mutex_try(arg1: *mut sqlite3_mutex)
1681      -> ::std::os::raw::c_int;
1682 }
1683 extern "C" {
sqlite3_mutex_leave(arg1: *mut sqlite3_mutex)1684     pub fn sqlite3_mutex_leave(arg1: *mut sqlite3_mutex);
1685 }
1686 #[repr(C)]
1687 #[derive(Debug, Copy)]
1688 pub struct sqlite3_mutex_methods {
1689     pub xMutexInit: ::std::option::Option<unsafe extern "C" fn()
1690                                               -> ::std::os::raw::c_int>,
1691     pub xMutexEnd: ::std::option::Option<unsafe extern "C" fn()
1692                                              -> ::std::os::raw::c_int>,
1693     pub xMutexAlloc: ::std::option::Option<unsafe extern "C" fn(arg1:
1694                                                                     ::std::os::raw::c_int)
1695                                                -> *mut sqlite3_mutex>,
1696     pub xMutexFree: ::std::option::Option<unsafe extern "C" fn(arg1:
1697                                                                    *mut sqlite3_mutex)>,
1698     pub xMutexEnter: ::std::option::Option<unsafe extern "C" fn(arg1:
1699                                                                     *mut sqlite3_mutex)>,
1700     pub xMutexTry: ::std::option::Option<unsafe extern "C" fn(arg1:
1701                                                                   *mut sqlite3_mutex)
1702                                              -> ::std::os::raw::c_int>,
1703     pub xMutexLeave: ::std::option::Option<unsafe extern "C" fn(arg1:
1704                                                                     *mut sqlite3_mutex)>,
1705     pub xMutexHeld: ::std::option::Option<unsafe extern "C" fn(arg1:
1706                                                                    *mut sqlite3_mutex)
1707                                               -> ::std::os::raw::c_int>,
1708     pub xMutexNotheld: ::std::option::Option<unsafe extern "C" fn(arg1:
1709                                                                       *mut sqlite3_mutex)
1710                                                  -> ::std::os::raw::c_int>,
1711 }
1712 #[test]
bindgen_test_layout_sqlite3_mutex_methods()1713 fn bindgen_test_layout_sqlite3_mutex_methods() {
1714     assert_eq!(::std::mem::size_of::<sqlite3_mutex_methods>() , 72usize);
1715     assert_eq!(::std::mem::align_of::<sqlite3_mutex_methods>() , 8usize);
1716 }
1717 impl Clone for sqlite3_mutex_methods {
clone(&self) -> Self1718     fn clone(&self) -> Self { *self }
1719 }
1720 extern "C" {
sqlite3_mutex_held(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int1721     pub fn sqlite3_mutex_held(arg1: *mut sqlite3_mutex)
1722      -> ::std::os::raw::c_int;
1723 }
1724 extern "C" {
sqlite3_mutex_notheld(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int1725     pub fn sqlite3_mutex_notheld(arg1: *mut sqlite3_mutex)
1726      -> ::std::os::raw::c_int;
1727 }
1728 extern "C" {
sqlite3_db_mutex(arg1: *mut sqlite3) -> *mut sqlite3_mutex1729     pub fn sqlite3_db_mutex(arg1: *mut sqlite3) -> *mut sqlite3_mutex;
1730 }
1731 extern "C" {
sqlite3_file_control(arg1: *mut sqlite3, zDbName: *const ::std::os::raw::c_char, op: ::std::os::raw::c_int, arg2: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int1732     pub fn sqlite3_file_control(arg1: *mut sqlite3,
1733                                 zDbName: *const ::std::os::raw::c_char,
1734                                 op: ::std::os::raw::c_int,
1735                                 arg2: *mut ::std::os::raw::c_void)
1736      -> ::std::os::raw::c_int;
1737 }
1738 extern "C" {
sqlite3_test_control(op: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int1739     pub fn sqlite3_test_control(op: ::std::os::raw::c_int, ...)
1740      -> ::std::os::raw::c_int;
1741 }
1742 extern "C" {
sqlite3_status(op: ::std::os::raw::c_int, pCurrent: *mut ::std::os::raw::c_int, pHighwater: *mut ::std::os::raw::c_int, resetFlag: ::std::os::raw::c_int) -> ::std::os::raw::c_int1743     pub fn sqlite3_status(op: ::std::os::raw::c_int,
1744                           pCurrent: *mut ::std::os::raw::c_int,
1745                           pHighwater: *mut ::std::os::raw::c_int,
1746                           resetFlag: ::std::os::raw::c_int)
1747      -> ::std::os::raw::c_int;
1748 }
1749 extern "C" {
sqlite3_db_status(arg1: *mut sqlite3, op: ::std::os::raw::c_int, pCur: *mut ::std::os::raw::c_int, pHiwtr: *mut ::std::os::raw::c_int, resetFlg: ::std::os::raw::c_int) -> ::std::os::raw::c_int1750     pub fn sqlite3_db_status(arg1: *mut sqlite3, op: ::std::os::raw::c_int,
1751                              pCur: *mut ::std::os::raw::c_int,
1752                              pHiwtr: *mut ::std::os::raw::c_int,
1753                              resetFlg: ::std::os::raw::c_int)
1754      -> ::std::os::raw::c_int;
1755 }
1756 extern "C" {
sqlite3_stmt_status(arg1: *mut sqlite3_stmt, op: ::std::os::raw::c_int, resetFlg: ::std::os::raw::c_int) -> ::std::os::raw::c_int1757     pub fn sqlite3_stmt_status(arg1: *mut sqlite3_stmt,
1758                                op: ::std::os::raw::c_int,
1759                                resetFlg: ::std::os::raw::c_int)
1760      -> ::std::os::raw::c_int;
1761 }
1762 #[repr(C)]
1763 #[derive(Debug, Copy, Clone)]
1764 pub struct sqlite3_pcache([u8; 0]);
1765 #[repr(C)]
1766 #[derive(Debug, Copy)]
1767 pub struct sqlite3_pcache_methods {
1768     pub pArg: *mut ::std::os::raw::c_void,
1769     pub xInit: ::std::option::Option<unsafe extern "C" fn(arg1:
1770                                                               *mut ::std::os::raw::c_void)
1771                                          -> ::std::os::raw::c_int>,
1772     pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1:
1773                                                                   *mut ::std::os::raw::c_void)>,
1774     pub xCreate: ::std::option::Option<unsafe extern "C" fn(szPage:
1775                                                                 ::std::os::raw::c_int,
1776                                                             bPurgeable:
1777                                                                 ::std::os::raw::c_int)
1778                                            -> *mut sqlite3_pcache>,
1779     pub xCachesize: ::std::option::Option<unsafe extern "C" fn(arg1:
1780                                                                    *mut sqlite3_pcache,
1781                                                                nCachesize:
1782                                                                    ::std::os::raw::c_int)>,
1783     pub xPagecount: ::std::option::Option<unsafe extern "C" fn(arg1:
1784                                                                    *mut sqlite3_pcache)
1785                                               -> ::std::os::raw::c_int>,
1786     pub xFetch: ::std::option::Option<unsafe extern "C" fn(arg1:
1787                                                                *mut sqlite3_pcache,
1788                                                            key:
1789                                                                ::std::os::raw::c_uint,
1790                                                            createFlag:
1791                                                                ::std::os::raw::c_int)
1792                                           -> *mut ::std::os::raw::c_void>,
1793     pub xUnpin: ::std::option::Option<unsafe extern "C" fn(arg1:
1794                                                                *mut sqlite3_pcache,
1795                                                            arg2:
1796                                                                *mut ::std::os::raw::c_void,
1797                                                            discard:
1798                                                                ::std::os::raw::c_int)>,
1799     pub xRekey: ::std::option::Option<unsafe extern "C" fn(arg1:
1800                                                                *mut sqlite3_pcache,
1801                                                            arg2:
1802                                                                *mut ::std::os::raw::c_void,
1803                                                            oldKey:
1804                                                                ::std::os::raw::c_uint,
1805                                                            newKey:
1806                                                                ::std::os::raw::c_uint)>,
1807     pub xTruncate: ::std::option::Option<unsafe extern "C" fn(arg1:
1808                                                                   *mut sqlite3_pcache,
1809                                                               iLimit:
1810                                                                   ::std::os::raw::c_uint)>,
1811     pub xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1:
1812                                                                  *mut sqlite3_pcache)>,
1813 }
1814 #[test]
bindgen_test_layout_sqlite3_pcache_methods()1815 fn bindgen_test_layout_sqlite3_pcache_methods() {
1816     assert_eq!(::std::mem::size_of::<sqlite3_pcache_methods>() , 88usize);
1817     assert_eq!(::std::mem::align_of::<sqlite3_pcache_methods>() , 8usize);
1818 }
1819 impl Clone for sqlite3_pcache_methods {
clone(&self) -> Self1820     fn clone(&self) -> Self { *self }
1821 }
1822 #[repr(C)]
1823 #[derive(Debug, Copy)]
1824 pub struct __va_list_tag {
1825     pub gp_offset: ::std::os::raw::c_uint,
1826     pub fp_offset: ::std::os::raw::c_uint,
1827     pub overflow_arg_area: *mut ::std::os::raw::c_void,
1828     pub reg_save_area: *mut ::std::os::raw::c_void,
1829 }
1830 impl Clone for __va_list_tag {
clone(&self) -> Self1831     fn clone(&self) -> Self { *self }
1832 }
1833 pub type __builtin_va_list = [__va_list_tag; 1usize];
1834 
1835 pub const SQLITE_DETERMINISTIC: i32 = 2048;
1836