1 /* automatically generated by rust-bindgen */
2
3 pub const __GNUC_VA_LIST: i32 = 1;
4 pub const SQLITE_VERSION: &'static [u8; 7usize] = b"3.6.23\x00";
5 pub const SQLITE_VERSION_NUMBER: i32 = 3006023;
6 pub const SQLITE_SOURCE_ID: &'static [u8; 61usize] =
7 b"2010-03-09 19:31:43 4ae453ea7be69018d8c16eb8dabe05617397dc4d\x00";
8 pub const SQLITE_OK: i32 = 0;
9 pub const SQLITE_ERROR: i32 = 1;
10 pub const SQLITE_INTERNAL: i32 = 2;
11 pub const SQLITE_PERM: i32 = 3;
12 pub const SQLITE_ABORT: i32 = 4;
13 pub const SQLITE_BUSY: i32 = 5;
14 pub const SQLITE_LOCKED: i32 = 6;
15 pub const SQLITE_NOMEM: i32 = 7;
16 pub const SQLITE_READONLY: i32 = 8;
17 pub const SQLITE_INTERRUPT: i32 = 9;
18 pub const SQLITE_IOERR: i32 = 10;
19 pub const SQLITE_CORRUPT: i32 = 11;
20 pub const SQLITE_NOTFOUND: i32 = 12;
21 pub const SQLITE_FULL: i32 = 13;
22 pub const SQLITE_CANTOPEN: i32 = 14;
23 pub const SQLITE_PROTOCOL: i32 = 15;
24 pub const SQLITE_EMPTY: i32 = 16;
25 pub const SQLITE_SCHEMA: i32 = 17;
26 pub const SQLITE_TOOBIG: i32 = 18;
27 pub const SQLITE_CONSTRAINT: i32 = 19;
28 pub const SQLITE_MISMATCH: i32 = 20;
29 pub const SQLITE_MISUSE: i32 = 21;
30 pub const SQLITE_NOLFS: i32 = 22;
31 pub const SQLITE_AUTH: i32 = 23;
32 pub const SQLITE_FORMAT: i32 = 24;
33 pub const SQLITE_RANGE: i32 = 25;
34 pub const SQLITE_NOTADB: i32 = 26;
35 pub const SQLITE_ROW: i32 = 100;
36 pub const SQLITE_DONE: i32 = 101;
37 pub const SQLITE_IOERR_READ: i32 = 266;
38 pub const SQLITE_IOERR_SHORT_READ: i32 = 522;
39 pub const SQLITE_IOERR_WRITE: i32 = 778;
40 pub const SQLITE_IOERR_FSYNC: i32 = 1034;
41 pub const SQLITE_IOERR_DIR_FSYNC: i32 = 1290;
42 pub const SQLITE_IOERR_TRUNCATE: i32 = 1546;
43 pub const SQLITE_IOERR_FSTAT: i32 = 1802;
44 pub const SQLITE_IOERR_UNLOCK: i32 = 2058;
45 pub const SQLITE_IOERR_RDLOCK: i32 = 2314;
46 pub const SQLITE_IOERR_DELETE: i32 = 2570;
47 pub const SQLITE_IOERR_BLOCKED: i32 = 2826;
48 pub const SQLITE_IOERR_NOMEM: i32 = 3082;
49 pub const SQLITE_IOERR_ACCESS: i32 = 3338;
50 pub const SQLITE_IOERR_CHECKRESERVEDLOCK: i32 = 3594;
51 pub const SQLITE_IOERR_LOCK: i32 = 3850;
52 pub const SQLITE_IOERR_CLOSE: i32 = 4106;
53 pub const SQLITE_IOERR_DIR_CLOSE: i32 = 4362;
54 pub const SQLITE_LOCKED_SHAREDCACHE: i32 = 262;
55 pub const SQLITE_OPEN_READONLY: i32 = 1;
56 pub const SQLITE_OPEN_READWRITE: i32 = 2;
57 pub const SQLITE_OPEN_CREATE: i32 = 4;
58 pub const SQLITE_OPEN_DELETEONCLOSE: i32 = 8;
59 pub const SQLITE_OPEN_EXCLUSIVE: i32 = 16;
60 pub const SQLITE_OPEN_AUTOPROXY: i32 = 32;
61 pub const SQLITE_OPEN_MAIN_DB: i32 = 256;
62 pub const SQLITE_OPEN_TEMP_DB: i32 = 512;
63 pub const SQLITE_OPEN_TRANSIENT_DB: i32 = 1024;
64 pub const SQLITE_OPEN_MAIN_JOURNAL: i32 = 2048;
65 pub const SQLITE_OPEN_TEMP_JOURNAL: i32 = 4096;
66 pub const SQLITE_OPEN_SUBJOURNAL: i32 = 8192;
67 pub const SQLITE_OPEN_MASTER_JOURNAL: i32 = 16384;
68 pub const SQLITE_OPEN_NOMUTEX: i32 = 32768;
69 pub const SQLITE_OPEN_FULLMUTEX: i32 = 65536;
70 pub const SQLITE_OPEN_SHAREDCACHE: i32 = 131072;
71 pub const SQLITE_OPEN_PRIVATECACHE: i32 = 262144;
72 pub const SQLITE_IOCAP_ATOMIC: i32 = 1;
73 pub const SQLITE_IOCAP_ATOMIC512: i32 = 2;
74 pub const SQLITE_IOCAP_ATOMIC1K: i32 = 4;
75 pub const SQLITE_IOCAP_ATOMIC2K: i32 = 8;
76 pub const SQLITE_IOCAP_ATOMIC4K: i32 = 16;
77 pub const SQLITE_IOCAP_ATOMIC8K: i32 = 32;
78 pub const SQLITE_IOCAP_ATOMIC16K: i32 = 64;
79 pub const SQLITE_IOCAP_ATOMIC32K: i32 = 128;
80 pub const SQLITE_IOCAP_ATOMIC64K: i32 = 256;
81 pub const SQLITE_IOCAP_SAFE_APPEND: i32 = 512;
82 pub const SQLITE_IOCAP_SEQUENTIAL: i32 = 1024;
83 pub const SQLITE_LOCK_NONE: i32 = 0;
84 pub const SQLITE_LOCK_SHARED: i32 = 1;
85 pub const SQLITE_LOCK_RESERVED: i32 = 2;
86 pub const SQLITE_LOCK_PENDING: i32 = 3;
87 pub const SQLITE_LOCK_EXCLUSIVE: i32 = 4;
88 pub const SQLITE_SYNC_NORMAL: i32 = 2;
89 pub const SQLITE_SYNC_FULL: i32 = 3;
90 pub const SQLITE_SYNC_DATAONLY: i32 = 16;
91 pub const SQLITE_FCNTL_LOCKSTATE: i32 = 1;
92 pub const SQLITE_GET_LOCKPROXYFILE: i32 = 2;
93 pub const SQLITE_SET_LOCKPROXYFILE: i32 = 3;
94 pub const SQLITE_LAST_ERRNO: i32 = 4;
95 pub const SQLITE_ACCESS_EXISTS: i32 = 0;
96 pub const SQLITE_ACCESS_READWRITE: i32 = 1;
97 pub const SQLITE_ACCESS_READ: i32 = 2;
98 pub const SQLITE_CONFIG_SINGLETHREAD: i32 = 1;
99 pub const SQLITE_CONFIG_MULTITHREAD: i32 = 2;
100 pub const SQLITE_CONFIG_SERIALIZED: i32 = 3;
101 pub const SQLITE_CONFIG_MALLOC: i32 = 4;
102 pub const SQLITE_CONFIG_GETMALLOC: i32 = 5;
103 pub const SQLITE_CONFIG_SCRATCH: i32 = 6;
104 pub const SQLITE_CONFIG_PAGECACHE: i32 = 7;
105 pub const SQLITE_CONFIG_HEAP: i32 = 8;
106 pub const SQLITE_CONFIG_MEMSTATUS: i32 = 9;
107 pub const SQLITE_CONFIG_MUTEX: i32 = 10;
108 pub const SQLITE_CONFIG_GETMUTEX: i32 = 11;
109 pub const SQLITE_CONFIG_LOOKASIDE: i32 = 13;
110 pub const SQLITE_CONFIG_PCACHE: i32 = 14;
111 pub const SQLITE_CONFIG_GETPCACHE: i32 = 15;
112 pub const SQLITE_CONFIG_LOG: i32 = 16;
113 pub const SQLITE_DBCONFIG_LOOKASIDE: i32 = 1001;
114 pub const SQLITE_DENY: i32 = 1;
115 pub const SQLITE_IGNORE: i32 = 2;
116 pub const SQLITE_CREATE_INDEX: i32 = 1;
117 pub const SQLITE_CREATE_TABLE: i32 = 2;
118 pub const SQLITE_CREATE_TEMP_INDEX: i32 = 3;
119 pub const SQLITE_CREATE_TEMP_TABLE: i32 = 4;
120 pub const SQLITE_CREATE_TEMP_TRIGGER: i32 = 5;
121 pub const SQLITE_CREATE_TEMP_VIEW: i32 = 6;
122 pub const SQLITE_CREATE_TRIGGER: i32 = 7;
123 pub const SQLITE_CREATE_VIEW: i32 = 8;
124 pub const SQLITE_DELETE: i32 = 9;
125 pub const SQLITE_DROP_INDEX: i32 = 10;
126 pub const SQLITE_DROP_TABLE: i32 = 11;
127 pub const SQLITE_DROP_TEMP_INDEX: i32 = 12;
128 pub const SQLITE_DROP_TEMP_TABLE: i32 = 13;
129 pub const SQLITE_DROP_TEMP_TRIGGER: i32 = 14;
130 pub const SQLITE_DROP_TEMP_VIEW: i32 = 15;
131 pub const SQLITE_DROP_TRIGGER: i32 = 16;
132 pub const SQLITE_DROP_VIEW: i32 = 17;
133 pub const SQLITE_INSERT: i32 = 18;
134 pub const SQLITE_PRAGMA: i32 = 19;
135 pub const SQLITE_READ: i32 = 20;
136 pub const SQLITE_SELECT: i32 = 21;
137 pub const SQLITE_TRANSACTION: i32 = 22;
138 pub const SQLITE_UPDATE: i32 = 23;
139 pub const SQLITE_ATTACH: i32 = 24;
140 pub const SQLITE_DETACH: i32 = 25;
141 pub const SQLITE_ALTER_TABLE: i32 = 26;
142 pub const SQLITE_REINDEX: i32 = 27;
143 pub const SQLITE_ANALYZE: i32 = 28;
144 pub const SQLITE_CREATE_VTABLE: i32 = 29;
145 pub const SQLITE_DROP_VTABLE: i32 = 30;
146 pub const SQLITE_FUNCTION: i32 = 31;
147 pub const SQLITE_SAVEPOINT: i32 = 32;
148 pub const SQLITE_COPY: i32 = 0;
149 pub const SQLITE_LIMIT_LENGTH: i32 = 0;
150 pub const SQLITE_LIMIT_SQL_LENGTH: i32 = 1;
151 pub const SQLITE_LIMIT_COLUMN: i32 = 2;
152 pub const SQLITE_LIMIT_EXPR_DEPTH: i32 = 3;
153 pub const SQLITE_LIMIT_COMPOUND_SELECT: i32 = 4;
154 pub const SQLITE_LIMIT_VDBE_OP: i32 = 5;
155 pub const SQLITE_LIMIT_FUNCTION_ARG: i32 = 6;
156 pub const SQLITE_LIMIT_ATTACHED: i32 = 7;
157 pub const SQLITE_LIMIT_LIKE_PATTERN_LENGTH: i32 = 8;
158 pub const SQLITE_LIMIT_VARIABLE_NUMBER: i32 = 9;
159 pub const SQLITE_LIMIT_TRIGGER_DEPTH: i32 = 10;
160 pub const SQLITE_INTEGER: i32 = 1;
161 pub const SQLITE_FLOAT: i32 = 2;
162 pub const SQLITE_BLOB: i32 = 4;
163 pub const SQLITE_NULL: i32 = 5;
164 pub const SQLITE_TEXT: i32 = 3;
165 pub const SQLITE3_TEXT: i32 = 3;
166 pub const SQLITE_UTF8: i32 = 1;
167 pub const SQLITE_UTF16LE: i32 = 2;
168 pub const SQLITE_UTF16BE: i32 = 3;
169 pub const SQLITE_UTF16: i32 = 4;
170 pub const SQLITE_ANY: i32 = 5;
171 pub const SQLITE_UTF16_ALIGNED: i32 = 8;
172 pub const SQLITE_INDEX_CONSTRAINT_EQ: i32 = 2;
173 pub const SQLITE_INDEX_CONSTRAINT_GT: i32 = 4;
174 pub const SQLITE_INDEX_CONSTRAINT_LE: i32 = 8;
175 pub const SQLITE_INDEX_CONSTRAINT_LT: i32 = 16;
176 pub const SQLITE_INDEX_CONSTRAINT_GE: i32 = 32;
177 pub const SQLITE_INDEX_CONSTRAINT_MATCH: i32 = 64;
178 pub const SQLITE_MUTEX_FAST: i32 = 0;
179 pub const SQLITE_MUTEX_RECURSIVE: i32 = 1;
180 pub const SQLITE_MUTEX_STATIC_MASTER: i32 = 2;
181 pub const SQLITE_MUTEX_STATIC_MEM: i32 = 3;
182 pub const SQLITE_MUTEX_STATIC_MEM2: i32 = 4;
183 pub const SQLITE_MUTEX_STATIC_OPEN: i32 = 4;
184 pub const SQLITE_MUTEX_STATIC_PRNG: i32 = 5;
185 pub const SQLITE_MUTEX_STATIC_LRU: i32 = 6;
186 pub const SQLITE_MUTEX_STATIC_LRU2: i32 = 7;
187 pub const SQLITE_TESTCTRL_FIRST: i32 = 5;
188 pub const SQLITE_TESTCTRL_PRNG_SAVE: i32 = 5;
189 pub const SQLITE_TESTCTRL_PRNG_RESTORE: i32 = 6;
190 pub const SQLITE_TESTCTRL_PRNG_RESET: i32 = 7;
191 pub const SQLITE_TESTCTRL_BITVEC_TEST: i32 = 8;
192 pub const SQLITE_TESTCTRL_FAULT_INSTALL: i32 = 9;
193 pub const SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS: i32 = 10;
194 pub const SQLITE_TESTCTRL_PENDING_BYTE: i32 = 11;
195 pub const SQLITE_TESTCTRL_ASSERT: i32 = 12;
196 pub const SQLITE_TESTCTRL_ALWAYS: i32 = 13;
197 pub const SQLITE_TESTCTRL_RESERVE: i32 = 14;
198 pub const SQLITE_TESTCTRL_OPTIMIZATIONS: i32 = 15;
199 pub const SQLITE_TESTCTRL_ISKEYWORD: i32 = 16;
200 pub const SQLITE_TESTCTRL_LAST: i32 = 16;
201 pub const SQLITE_STATUS_MEMORY_USED: i32 = 0;
202 pub const SQLITE_STATUS_PAGECACHE_USED: i32 = 1;
203 pub const SQLITE_STATUS_PAGECACHE_OVERFLOW: i32 = 2;
204 pub const SQLITE_STATUS_SCRATCH_USED: i32 = 3;
205 pub const SQLITE_STATUS_SCRATCH_OVERFLOW: i32 = 4;
206 pub const SQLITE_STATUS_MALLOC_SIZE: i32 = 5;
207 pub const SQLITE_STATUS_PARSER_STACK: i32 = 6;
208 pub const SQLITE_STATUS_PAGECACHE_SIZE: i32 = 7;
209 pub const SQLITE_STATUS_SCRATCH_SIZE: i32 = 8;
210 pub const SQLITE_DBSTATUS_LOOKASIDE_USED: i32 = 0;
211 pub const SQLITE_STMTSTATUS_FULLSCAN_STEP: i32 = 1;
212 pub const SQLITE_STMTSTATUS_SORT: i32 = 2;
213 pub type va_list = __builtin_va_list;
214 pub type __gnuc_va_list = __builtin_va_list;
215 extern "C" {
216 #[link_name = "sqlite3_version"]
217 pub static mut sqlite3_version: [::std::os::raw::c_char; 0usize];
218 }
219 extern "C" {
sqlite3_libversion() -> *const ::std::os::raw::c_char220 pub fn sqlite3_libversion() -> *const ::std::os::raw::c_char;
221 }
222 extern "C" {
sqlite3_sourceid() -> *const ::std::os::raw::c_char223 pub fn sqlite3_sourceid() -> *const ::std::os::raw::c_char;
224 }
225 extern "C" {
sqlite3_libversion_number() -> ::std::os::raw::c_int226 pub fn sqlite3_libversion_number() -> ::std::os::raw::c_int;
227 }
228 extern "C" {
sqlite3_compileoption_used(zOptName: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int229 pub fn sqlite3_compileoption_used(zOptName: *const ::std::os::raw::c_char)
230 -> ::std::os::raw::c_int;
231 }
232 extern "C" {
sqlite3_compileoption_get(N: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char233 pub fn sqlite3_compileoption_get(N: ::std::os::raw::c_int)
234 -> *const ::std::os::raw::c_char;
235 }
236 extern "C" {
sqlite3_threadsafe() -> ::std::os::raw::c_int237 pub fn sqlite3_threadsafe() -> ::std::os::raw::c_int;
238 }
239 #[repr(C)]
240 #[derive(Debug, Copy, Clone)]
241 pub struct sqlite3([u8; 0]);
242 pub type sqlite_int64 = ::std::os::raw::c_longlong;
243 pub type sqlite_uint64 = ::std::os::raw::c_ulonglong;
244 pub type sqlite3_int64 = sqlite_int64;
245 pub type sqlite3_uint64 = sqlite_uint64;
246 extern "C" {
sqlite3_close(arg1: *mut sqlite3) -> ::std::os::raw::c_int247 pub fn sqlite3_close(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
248 }
249 pub type sqlite3_callback =
250 ::std::option::Option<unsafe extern "C" fn(arg1:
251 *mut ::std::os::raw::c_void,
252 arg2: ::std::os::raw::c_int,
253 arg3:
254 *mut *mut ::std::os::raw::c_char,
255 arg4:
256 *mut *mut ::std::os::raw::c_char)
257 -> ::std::os::raw::c_int>;
258 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_int259 pub fn sqlite3_exec(arg1: *mut sqlite3,
260 sql: *const ::std::os::raw::c_char,
261 callback:
262 ::std::option::Option<unsafe extern "C" fn(arg1:
263 *mut ::std::os::raw::c_void,
264 arg2:
265 ::std::os::raw::c_int,
266 arg3:
267 *mut *mut ::std::os::raw::c_char,
268 arg4:
269 *mut *mut ::std::os::raw::c_char)
270 ->
271 ::std::os::raw::c_int>,
272 arg2: *mut ::std::os::raw::c_void,
273 errmsg: *mut *mut ::std::os::raw::c_char)
274 -> ::std::os::raw::c_int;
275 }
276 #[repr(C)]
277 #[derive(Debug, Copy)]
278 pub struct sqlite3_file {
279 pub pMethods: *const sqlite3_file_sqlite3_io_methods,
280 }
281 #[repr(C)]
282 #[derive(Debug, Copy)]
283 pub struct sqlite3_file_sqlite3_io_methods {
284 pub iVersion: ::std::os::raw::c_int,
285 pub xClose: ::std::option::Option<unsafe extern "C" fn(arg1:
286 *mut sqlite3_file)
287 -> ::std::os::raw::c_int>,
288 pub xRead: ::std::option::Option<unsafe extern "C" fn(arg1:
289 *mut sqlite3_file,
290 arg2:
291 *mut ::std::os::raw::c_void,
292 iAmt:
293 ::std::os::raw::c_int,
294 iOfst:
295 sqlite3_int64)
296 -> ::std::os::raw::c_int>,
297 pub xWrite: ::std::option::Option<unsafe extern "C" fn(arg1:
298 *mut sqlite3_file,
299 arg2:
300 *const ::std::os::raw::c_void,
301 iAmt:
302 ::std::os::raw::c_int,
303 iOfst:
304 sqlite3_int64)
305 -> ::std::os::raw::c_int>,
306 pub xTruncate: ::std::option::Option<unsafe extern "C" fn(arg1:
307 *mut sqlite3_file,
308 size:
309 sqlite3_int64)
310 -> ::std::os::raw::c_int>,
311 pub xSync: ::std::option::Option<unsafe extern "C" fn(arg1:
312 *mut sqlite3_file,
313 flags:
314 ::std::os::raw::c_int)
315 -> ::std::os::raw::c_int>,
316 pub xFileSize: ::std::option::Option<unsafe extern "C" fn(arg1:
317 *mut sqlite3_file,
318 pSize:
319 *mut sqlite3_int64)
320 -> ::std::os::raw::c_int>,
321 pub xLock: ::std::option::Option<unsafe extern "C" fn(arg1:
322 *mut sqlite3_file,
323 arg2:
324 ::std::os::raw::c_int)
325 -> ::std::os::raw::c_int>,
326 pub xUnlock: ::std::option::Option<unsafe extern "C" fn(arg1:
327 *mut sqlite3_file,
328 arg2:
329 ::std::os::raw::c_int)
330 -> ::std::os::raw::c_int>,
331 pub xCheckReservedLock: ::std::option::Option<unsafe extern "C" fn(arg1:
332 *mut sqlite3_file,
333 pResOut:
334 *mut ::std::os::raw::c_int)
335 ->
336 ::std::os::raw::c_int>,
337 pub xFileControl: ::std::option::Option<unsafe extern "C" fn(arg1:
338 *mut sqlite3_file,
339 op:
340 ::std::os::raw::c_int,
341 pArg:
342 *mut ::std::os::raw::c_void)
343 -> ::std::os::raw::c_int>,
344 pub xSectorSize: ::std::option::Option<unsafe extern "C" fn(arg1:
345 *mut sqlite3_file)
346 -> ::std::os::raw::c_int>,
347 pub xDeviceCharacteristics: ::std::option::Option<unsafe extern "C" fn(arg1:
348 *mut sqlite3_file)
349 ->
350 ::std::os::raw::c_int>,
351 }
352 #[test]
bindgen_test_layout_sqlite3_file_sqlite3_io_methods()353 fn bindgen_test_layout_sqlite3_file_sqlite3_io_methods() {
354 assert_eq!(::std::mem::size_of::<sqlite3_file_sqlite3_io_methods>() ,
355 104usize);
356 assert_eq!(::std::mem::align_of::<sqlite3_file_sqlite3_io_methods>() ,
357 8usize);
358 }
359 impl Clone for sqlite3_file_sqlite3_io_methods {
clone(&self) -> Self360 fn clone(&self) -> Self { *self }
361 }
362 #[test]
bindgen_test_layout_sqlite3_file()363 fn bindgen_test_layout_sqlite3_file() {
364 assert_eq!(::std::mem::size_of::<sqlite3_file>() , 8usize);
365 assert_eq!(::std::mem::align_of::<sqlite3_file>() , 8usize);
366 }
367 impl Clone for sqlite3_file {
clone(&self) -> Self368 fn clone(&self) -> Self { *self }
369 }
370 pub type sqlite3_io_methods = sqlite3_file_sqlite3_io_methods;
371 #[repr(C)]
372 #[derive(Debug, Copy, Clone)]
373 pub struct sqlite3_mutex([u8; 0]);
374 #[repr(C)]
375 #[derive(Debug, Copy)]
376 pub struct sqlite3_vfs {
377 pub iVersion: ::std::os::raw::c_int,
378 pub szOsFile: ::std::os::raw::c_int,
379 pub mxPathname: ::std::os::raw::c_int,
380 pub pNext: *mut sqlite3_vfs,
381 pub zName: *const ::std::os::raw::c_char,
382 pub pAppData: *mut ::std::os::raw::c_void,
383 pub xOpen: ::std::option::Option<unsafe extern "C" fn(arg1:
384 *mut sqlite3_vfs,
385 zName:
386 *const ::std::os::raw::c_char,
387 arg2:
388 *mut sqlite3_file,
389 flags:
390 ::std::os::raw::c_int,
391 pOutFlags:
392 *mut ::std::os::raw::c_int)
393 -> ::std::os::raw::c_int>,
394 pub xDelete: ::std::option::Option<unsafe extern "C" fn(arg1:
395 *mut sqlite3_vfs,
396 zName:
397 *const ::std::os::raw::c_char,
398 syncDir:
399 ::std::os::raw::c_int)
400 -> ::std::os::raw::c_int>,
401 pub xAccess: ::std::option::Option<unsafe extern "C" fn(arg1:
402 *mut sqlite3_vfs,
403 zName:
404 *const ::std::os::raw::c_char,
405 flags:
406 ::std::os::raw::c_int,
407 pResOut:
408 *mut ::std::os::raw::c_int)
409 -> ::std::os::raw::c_int>,
410 pub xFullPathname: ::std::option::Option<unsafe extern "C" fn(arg1:
411 *mut sqlite3_vfs,
412 zName:
413 *const ::std::os::raw::c_char,
414 nOut:
415 ::std::os::raw::c_int,
416 zOut:
417 *mut ::std::os::raw::c_char)
418 -> ::std::os::raw::c_int>,
419 pub xDlOpen: ::std::option::Option<unsafe extern "C" fn(arg1:
420 *mut sqlite3_vfs,
421 zFilename:
422 *const ::std::os::raw::c_char)
423 -> *mut ::std::os::raw::c_void>,
424 pub xDlError: ::std::option::Option<unsafe extern "C" fn(arg1:
425 *mut sqlite3_vfs,
426 nByte:
427 ::std::os::raw::c_int,
428 zErrMsg:
429 *mut ::std::os::raw::c_char)>,
430 pub xDlSym: ::std::option::Option<unsafe extern "C" fn(arg1:
431 *mut sqlite3_vfs,
432 arg2:
433 *mut ::std::os::raw::c_void,
434 zSymbol:
435 *const ::std::os::raw::c_char)
436 ->
437 ::std::option::Option<unsafe extern "C" fn()>>,
438 pub xDlClose: ::std::option::Option<unsafe extern "C" fn(arg1:
439 *mut sqlite3_vfs,
440 arg2:
441 *mut ::std::os::raw::c_void)>,
442 pub xRandomness: ::std::option::Option<unsafe extern "C" fn(arg1:
443 *mut sqlite3_vfs,
444 nByte:
445 ::std::os::raw::c_int,
446 zOut:
447 *mut ::std::os::raw::c_char)
448 -> ::std::os::raw::c_int>,
449 pub xSleep: ::std::option::Option<unsafe extern "C" fn(arg1:
450 *mut sqlite3_vfs,
451 microseconds:
452 ::std::os::raw::c_int)
453 -> ::std::os::raw::c_int>,
454 pub xCurrentTime: ::std::option::Option<unsafe extern "C" fn(arg1:
455 *mut sqlite3_vfs,
456 arg2:
457 *mut f64)
458 -> ::std::os::raw::c_int>,
459 pub xGetLastError: ::std::option::Option<unsafe extern "C" fn(arg1:
460 *mut sqlite3_vfs,
461 arg2:
462 ::std::os::raw::c_int,
463 arg3:
464 *mut ::std::os::raw::c_char)
465 -> ::std::os::raw::c_int>,
466 }
467 #[test]
bindgen_test_layout_sqlite3_vfs()468 fn bindgen_test_layout_sqlite3_vfs() {
469 assert_eq!(::std::mem::size_of::<sqlite3_vfs>() , 136usize);
470 assert_eq!(::std::mem::align_of::<sqlite3_vfs>() , 8usize);
471 }
472 impl Clone for sqlite3_vfs {
clone(&self) -> Self473 fn clone(&self) -> Self { *self }
474 }
475 extern "C" {
sqlite3_initialize() -> ::std::os::raw::c_int476 pub fn sqlite3_initialize() -> ::std::os::raw::c_int;
477 }
478 extern "C" {
sqlite3_shutdown() -> ::std::os::raw::c_int479 pub fn sqlite3_shutdown() -> ::std::os::raw::c_int;
480 }
481 extern "C" {
sqlite3_os_init() -> ::std::os::raw::c_int482 pub fn sqlite3_os_init() -> ::std::os::raw::c_int;
483 }
484 extern "C" {
sqlite3_os_end() -> ::std::os::raw::c_int485 pub fn sqlite3_os_end() -> ::std::os::raw::c_int;
486 }
487 extern "C" {
sqlite3_config(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int488 pub fn sqlite3_config(arg1: ::std::os::raw::c_int, ...)
489 -> ::std::os::raw::c_int;
490 }
491 extern "C" {
sqlite3_db_config(arg1: *mut sqlite3, op: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int492 pub fn sqlite3_db_config(arg1: *mut sqlite3,
493 op: ::std::os::raw::c_int, ...)
494 -> ::std::os::raw::c_int;
495 }
496 #[repr(C)]
497 #[derive(Debug, Copy)]
498 pub struct sqlite3_mem_methods {
499 pub xMalloc: ::std::option::Option<unsafe extern "C" fn(arg1:
500 ::std::os::raw::c_int)
501 -> *mut ::std::os::raw::c_void>,
502 pub xFree: ::std::option::Option<unsafe extern "C" fn(arg1:
503 *mut ::std::os::raw::c_void)>,
504 pub xRealloc: ::std::option::Option<unsafe extern "C" fn(arg1:
505 *mut ::std::os::raw::c_void,
506 arg2:
507 ::std::os::raw::c_int)
508 -> *mut ::std::os::raw::c_void>,
509 pub xSize: ::std::option::Option<unsafe extern "C" fn(arg1:
510 *mut ::std::os::raw::c_void)
511 -> ::std::os::raw::c_int>,
512 pub xRoundup: ::std::option::Option<unsafe extern "C" fn(arg1:
513 ::std::os::raw::c_int)
514 -> ::std::os::raw::c_int>,
515 pub xInit: ::std::option::Option<unsafe extern "C" fn(arg1:
516 *mut ::std::os::raw::c_void)
517 -> ::std::os::raw::c_int>,
518 pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1:
519 *mut ::std::os::raw::c_void)>,
520 pub pAppData: *mut ::std::os::raw::c_void,
521 }
522 #[test]
bindgen_test_layout_sqlite3_mem_methods()523 fn bindgen_test_layout_sqlite3_mem_methods() {
524 assert_eq!(::std::mem::size_of::<sqlite3_mem_methods>() , 64usize);
525 assert_eq!(::std::mem::align_of::<sqlite3_mem_methods>() , 8usize);
526 }
527 impl Clone for sqlite3_mem_methods {
clone(&self) -> Self528 fn clone(&self) -> Self { *self }
529 }
530 extern "C" {
sqlite3_extended_result_codes(arg1: *mut sqlite3, onoff: ::std::os::raw::c_int) -> ::std::os::raw::c_int531 pub fn sqlite3_extended_result_codes(arg1: *mut sqlite3,
532 onoff: ::std::os::raw::c_int)
533 -> ::std::os::raw::c_int;
534 }
535 extern "C" {
sqlite3_last_insert_rowid(arg1: *mut sqlite3) -> sqlite3_int64536 pub fn sqlite3_last_insert_rowid(arg1: *mut sqlite3) -> sqlite3_int64;
537 }
538 extern "C" {
sqlite3_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int539 pub fn sqlite3_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
540 }
541 extern "C" {
sqlite3_total_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int542 pub fn sqlite3_total_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
543 }
544 extern "C" {
sqlite3_interrupt(arg1: *mut sqlite3)545 pub fn sqlite3_interrupt(arg1: *mut sqlite3);
546 }
547 extern "C" {
sqlite3_complete(sql: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int548 pub fn sqlite3_complete(sql: *const ::std::os::raw::c_char)
549 -> ::std::os::raw::c_int;
550 }
551 extern "C" {
sqlite3_complete16(sql: *const ::std::os::raw::c_void) -> ::std::os::raw::c_int552 pub fn sqlite3_complete16(sql: *const ::std::os::raw::c_void)
553 -> ::std::os::raw::c_int;
554 }
555 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_int556 pub fn sqlite3_busy_handler(arg1: *mut sqlite3,
557 arg2:
558 ::std::option::Option<unsafe extern "C" fn(arg1:
559 *mut ::std::os::raw::c_void,
560 arg2:
561 ::std::os::raw::c_int)
562 ->
563 ::std::os::raw::c_int>,
564 arg3: *mut ::std::os::raw::c_void)
565 -> ::std::os::raw::c_int;
566 }
567 extern "C" {
sqlite3_busy_timeout(arg1: *mut sqlite3, ms: ::std::os::raw::c_int) -> ::std::os::raw::c_int568 pub fn sqlite3_busy_timeout(arg1: *mut sqlite3, ms: ::std::os::raw::c_int)
569 -> ::std::os::raw::c_int;
570 }
571 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_int572 pub fn sqlite3_get_table(db: *mut sqlite3,
573 zSql: *const ::std::os::raw::c_char,
574 pazResult: *mut *mut *mut ::std::os::raw::c_char,
575 pnRow: *mut ::std::os::raw::c_int,
576 pnColumn: *mut ::std::os::raw::c_int,
577 pzErrmsg: *mut *mut ::std::os::raw::c_char)
578 -> ::std::os::raw::c_int;
579 }
580 extern "C" {
sqlite3_free_table(result: *mut *mut ::std::os::raw::c_char)581 pub fn sqlite3_free_table(result: *mut *mut ::std::os::raw::c_char);
582 }
583 extern "C" {
sqlite3_mprintf(arg1: *const ::std::os::raw::c_char, ...) -> *mut ::std::os::raw::c_char584 pub fn sqlite3_mprintf(arg1: *const ::std::os::raw::c_char, ...)
585 -> *mut ::std::os::raw::c_char;
586 }
587 extern "C" {
sqlite3_vmprintf(arg1: *const ::std::os::raw::c_char, arg2: *mut __va_list_tag) -> *mut ::std::os::raw::c_char588 pub fn sqlite3_vmprintf(arg1: *const ::std::os::raw::c_char,
589 arg2: *mut __va_list_tag)
590 -> *mut ::std::os::raw::c_char;
591 }
592 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_char593 pub fn sqlite3_snprintf(arg1: ::std::os::raw::c_int,
594 arg2: *mut ::std::os::raw::c_char,
595 arg3: *const ::std::os::raw::c_char, ...)
596 -> *mut ::std::os::raw::c_char;
597 }
598 extern "C" {
sqlite3_malloc(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void599 pub fn sqlite3_malloc(arg1: ::std::os::raw::c_int)
600 -> *mut ::std::os::raw::c_void;
601 }
602 extern "C" {
sqlite3_realloc(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void603 pub fn sqlite3_realloc(arg1: *mut ::std::os::raw::c_void,
604 arg2: ::std::os::raw::c_int)
605 -> *mut ::std::os::raw::c_void;
606 }
607 extern "C" {
sqlite3_free(arg1: *mut ::std::os::raw::c_void)608 pub fn sqlite3_free(arg1: *mut ::std::os::raw::c_void);
609 }
610 extern "C" {
sqlite3_memory_used() -> sqlite3_int64611 pub fn sqlite3_memory_used() -> sqlite3_int64;
612 }
613 extern "C" {
sqlite3_memory_highwater(resetFlag: ::std::os::raw::c_int) -> sqlite3_int64614 pub fn sqlite3_memory_highwater(resetFlag: ::std::os::raw::c_int)
615 -> sqlite3_int64;
616 }
617 extern "C" {
sqlite3_randomness(N: ::std::os::raw::c_int, P: *mut ::std::os::raw::c_void)618 pub fn sqlite3_randomness(N: ::std::os::raw::c_int,
619 P: *mut ::std::os::raw::c_void);
620 }
621 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_int622 pub fn sqlite3_set_authorizer(arg1: *mut sqlite3,
623 xAuth:
624 ::std::option::Option<unsafe extern "C" fn(arg1:
625 *mut ::std::os::raw::c_void,
626 arg2:
627 ::std::os::raw::c_int,
628 arg3:
629 *const ::std::os::raw::c_char,
630 arg4:
631 *const ::std::os::raw::c_char,
632 arg5:
633 *const ::std::os::raw::c_char,
634 arg6:
635 *const ::std::os::raw::c_char)
636 ->
637 ::std::os::raw::c_int>,
638 pUserData: *mut ::std::os::raw::c_void)
639 -> ::std::os::raw::c_int;
640 }
641 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_void642 pub fn sqlite3_trace(arg1: *mut sqlite3,
643 xTrace:
644 ::std::option::Option<unsafe extern "C" fn(arg1:
645 *mut ::std::os::raw::c_void,
646 arg2:
647 *const ::std::os::raw::c_char)>,
648 arg2: *mut ::std::os::raw::c_void)
649 -> *mut ::std::os::raw::c_void;
650 }
651 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_void652 pub fn sqlite3_profile(arg1: *mut sqlite3,
653 xProfile:
654 ::std::option::Option<unsafe extern "C" fn(arg1:
655 *mut ::std::os::raw::c_void,
656 arg2:
657 *const ::std::os::raw::c_char,
658 arg3:
659 sqlite3_uint64)>,
660 arg2: *mut ::std::os::raw::c_void)
661 -> *mut ::std::os::raw::c_void;
662 }
663 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)664 pub fn sqlite3_progress_handler(arg1: *mut sqlite3,
665 arg2: ::std::os::raw::c_int,
666 arg3:
667 ::std::option::Option<unsafe extern "C" fn(arg1:
668 *mut ::std::os::raw::c_void)
669 ->
670 ::std::os::raw::c_int>,
671 arg4: *mut ::std::os::raw::c_void);
672 }
673 extern "C" {
sqlite3_open(filename: *const ::std::os::raw::c_char, ppDb: *mut *mut sqlite3) -> ::std::os::raw::c_int674 pub fn sqlite3_open(filename: *const ::std::os::raw::c_char,
675 ppDb: *mut *mut sqlite3) -> ::std::os::raw::c_int;
676 }
677 extern "C" {
sqlite3_open16(filename: *const ::std::os::raw::c_void, ppDb: *mut *mut sqlite3) -> ::std::os::raw::c_int678 pub fn sqlite3_open16(filename: *const ::std::os::raw::c_void,
679 ppDb: *mut *mut sqlite3) -> ::std::os::raw::c_int;
680 }
681 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_int682 pub fn sqlite3_open_v2(filename: *const ::std::os::raw::c_char,
683 ppDb: *mut *mut sqlite3,
684 flags: ::std::os::raw::c_int,
685 zVfs: *const ::std::os::raw::c_char)
686 -> ::std::os::raw::c_int;
687 }
688 extern "C" {
sqlite3_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int689 pub fn sqlite3_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int;
690 }
691 extern "C" {
sqlite3_extended_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int692 pub fn sqlite3_extended_errcode(db: *mut sqlite3)
693 -> ::std::os::raw::c_int;
694 }
695 extern "C" {
sqlite3_errmsg(arg1: *mut sqlite3) -> *const ::std::os::raw::c_char696 pub fn sqlite3_errmsg(arg1: *mut sqlite3)
697 -> *const ::std::os::raw::c_char;
698 }
699 extern "C" {
sqlite3_errmsg16(arg1: *mut sqlite3) -> *const ::std::os::raw::c_void700 pub fn sqlite3_errmsg16(arg1: *mut sqlite3)
701 -> *const ::std::os::raw::c_void;
702 }
703 #[repr(C)]
704 #[derive(Debug, Copy, Clone)]
705 pub struct sqlite3_stmt([u8; 0]);
706 extern "C" {
sqlite3_limit(arg1: *mut sqlite3, id: ::std::os::raw::c_int, newVal: ::std::os::raw::c_int) -> ::std::os::raw::c_int707 pub fn sqlite3_limit(arg1: *mut sqlite3, id: ::std::os::raw::c_int,
708 newVal: ::std::os::raw::c_int)
709 -> ::std::os::raw::c_int;
710 }
711 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_int712 pub fn sqlite3_prepare(db: *mut sqlite3,
713 zSql: *const ::std::os::raw::c_char,
714 nByte: ::std::os::raw::c_int,
715 ppStmt: *mut *mut sqlite3_stmt,
716 pzTail: *mut *const ::std::os::raw::c_char)
717 -> ::std::os::raw::c_int;
718 }
719 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_int720 pub fn sqlite3_prepare_v2(db: *mut sqlite3,
721 zSql: *const ::std::os::raw::c_char,
722 nByte: ::std::os::raw::c_int,
723 ppStmt: *mut *mut sqlite3_stmt,
724 pzTail: *mut *const ::std::os::raw::c_char)
725 -> ::std::os::raw::c_int;
726 }
727 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_int728 pub fn sqlite3_prepare16(db: *mut sqlite3,
729 zSql: *const ::std::os::raw::c_void,
730 nByte: ::std::os::raw::c_int,
731 ppStmt: *mut *mut sqlite3_stmt,
732 pzTail: *mut *const ::std::os::raw::c_void)
733 -> ::std::os::raw::c_int;
734 }
735 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_int736 pub fn sqlite3_prepare16_v2(db: *mut sqlite3,
737 zSql: *const ::std::os::raw::c_void,
738 nByte: ::std::os::raw::c_int,
739 ppStmt: *mut *mut sqlite3_stmt,
740 pzTail: *mut *const ::std::os::raw::c_void)
741 -> ::std::os::raw::c_int;
742 }
743 extern "C" {
sqlite3_sql(pStmt: *mut sqlite3_stmt) -> *const ::std::os::raw::c_char744 pub fn sqlite3_sql(pStmt: *mut sqlite3_stmt)
745 -> *const ::std::os::raw::c_char;
746 }
747 #[repr(C)]
748 #[derive(Debug, Copy, Clone)]
749 pub struct Mem([u8; 0]);
750 pub type sqlite3_value = Mem;
751 #[repr(C)]
752 #[derive(Debug, Copy, Clone)]
753 pub struct sqlite3_context([u8; 0]);
754 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_int755 pub fn sqlite3_bind_blob(arg1: *mut sqlite3_stmt,
756 arg2: ::std::os::raw::c_int,
757 arg3: *const ::std::os::raw::c_void,
758 n: ::std::os::raw::c_int,
759 arg4:
760 ::std::option::Option<unsafe extern "C" fn(arg1:
761 *mut ::std::os::raw::c_void)>)
762 -> ::std::os::raw::c_int;
763 }
764 extern "C" {
sqlite3_bind_double(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: f64) -> ::std::os::raw::c_int765 pub fn sqlite3_bind_double(arg1: *mut sqlite3_stmt,
766 arg2: ::std::os::raw::c_int, arg3: f64)
767 -> ::std::os::raw::c_int;
768 }
769 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_int770 pub fn sqlite3_bind_int(arg1: *mut sqlite3_stmt,
771 arg2: ::std::os::raw::c_int,
772 arg3: ::std::os::raw::c_int)
773 -> ::std::os::raw::c_int;
774 }
775 extern "C" {
sqlite3_bind_int64(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: sqlite3_int64) -> ::std::os::raw::c_int776 pub fn sqlite3_bind_int64(arg1: *mut sqlite3_stmt,
777 arg2: ::std::os::raw::c_int,
778 arg3: sqlite3_int64) -> ::std::os::raw::c_int;
779 }
780 extern "C" {
sqlite3_bind_null(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int781 pub fn sqlite3_bind_null(arg1: *mut sqlite3_stmt,
782 arg2: ::std::os::raw::c_int)
783 -> ::std::os::raw::c_int;
784 }
785 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_int786 pub fn sqlite3_bind_text(arg1: *mut sqlite3_stmt,
787 arg2: ::std::os::raw::c_int,
788 arg3: *const ::std::os::raw::c_char,
789 n: ::std::os::raw::c_int,
790 arg4:
791 ::std::option::Option<unsafe extern "C" fn(arg1:
792 *mut ::std::os::raw::c_void)>)
793 -> ::std::os::raw::c_int;
794 }
795 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_int796 pub fn sqlite3_bind_text16(arg1: *mut sqlite3_stmt,
797 arg2: ::std::os::raw::c_int,
798 arg3: *const ::std::os::raw::c_void,
799 arg4: ::std::os::raw::c_int,
800 arg5:
801 ::std::option::Option<unsafe extern "C" fn(arg1:
802 *mut ::std::os::raw::c_void)>)
803 -> ::std::os::raw::c_int;
804 }
805 extern "C" {
sqlite3_bind_value(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: *const sqlite3_value) -> ::std::os::raw::c_int806 pub fn sqlite3_bind_value(arg1: *mut sqlite3_stmt,
807 arg2: ::std::os::raw::c_int,
808 arg3: *const sqlite3_value)
809 -> ::std::os::raw::c_int;
810 }
811 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_int812 pub fn sqlite3_bind_zeroblob(arg1: *mut sqlite3_stmt,
813 arg2: ::std::os::raw::c_int,
814 n: ::std::os::raw::c_int)
815 -> ::std::os::raw::c_int;
816 }
817 extern "C" {
sqlite3_bind_parameter_count(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int818 pub fn sqlite3_bind_parameter_count(arg1: *mut sqlite3_stmt)
819 -> ::std::os::raw::c_int;
820 }
821 extern "C" {
sqlite3_bind_parameter_name(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char822 pub fn sqlite3_bind_parameter_name(arg1: *mut sqlite3_stmt,
823 arg2: ::std::os::raw::c_int)
824 -> *const ::std::os::raw::c_char;
825 }
826 extern "C" {
sqlite3_bind_parameter_index(arg1: *mut sqlite3_stmt, zName: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int827 pub fn sqlite3_bind_parameter_index(arg1: *mut sqlite3_stmt,
828 zName: *const ::std::os::raw::c_char)
829 -> ::std::os::raw::c_int;
830 }
831 extern "C" {
sqlite3_clear_bindings(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int832 pub fn sqlite3_clear_bindings(arg1: *mut sqlite3_stmt)
833 -> ::std::os::raw::c_int;
834 }
835 extern "C" {
sqlite3_column_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int836 pub fn sqlite3_column_count(pStmt: *mut sqlite3_stmt)
837 -> ::std::os::raw::c_int;
838 }
839 extern "C" {
sqlite3_column_name(arg1: *mut sqlite3_stmt, N: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char840 pub fn sqlite3_column_name(arg1: *mut sqlite3_stmt,
841 N: ::std::os::raw::c_int)
842 -> *const ::std::os::raw::c_char;
843 }
844 extern "C" {
sqlite3_column_name16(arg1: *mut sqlite3_stmt, N: ::std::os::raw::c_int) -> *const ::std::os::raw::c_void845 pub fn sqlite3_column_name16(arg1: *mut sqlite3_stmt,
846 N: ::std::os::raw::c_int)
847 -> *const ::std::os::raw::c_void;
848 }
849 extern "C" {
sqlite3_column_database_name(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char850 pub fn sqlite3_column_database_name(arg1: *mut sqlite3_stmt,
851 arg2: ::std::os::raw::c_int)
852 -> *const ::std::os::raw::c_char;
853 }
854 extern "C" {
sqlite3_column_database_name16(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_void855 pub fn sqlite3_column_database_name16(arg1: *mut sqlite3_stmt,
856 arg2: ::std::os::raw::c_int)
857 -> *const ::std::os::raw::c_void;
858 }
859 extern "C" {
sqlite3_column_table_name(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char860 pub fn sqlite3_column_table_name(arg1: *mut sqlite3_stmt,
861 arg2: ::std::os::raw::c_int)
862 -> *const ::std::os::raw::c_char;
863 }
864 extern "C" {
sqlite3_column_table_name16(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_void865 pub fn sqlite3_column_table_name16(arg1: *mut sqlite3_stmt,
866 arg2: ::std::os::raw::c_int)
867 -> *const ::std::os::raw::c_void;
868 }
869 extern "C" {
sqlite3_column_origin_name(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char870 pub fn sqlite3_column_origin_name(arg1: *mut sqlite3_stmt,
871 arg2: ::std::os::raw::c_int)
872 -> *const ::std::os::raw::c_char;
873 }
874 extern "C" {
sqlite3_column_origin_name16(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_void875 pub fn sqlite3_column_origin_name16(arg1: *mut sqlite3_stmt,
876 arg2: ::std::os::raw::c_int)
877 -> *const ::std::os::raw::c_void;
878 }
879 extern "C" {
sqlite3_column_decltype(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char880 pub fn sqlite3_column_decltype(arg1: *mut sqlite3_stmt,
881 arg2: ::std::os::raw::c_int)
882 -> *const ::std::os::raw::c_char;
883 }
884 extern "C" {
sqlite3_column_decltype16(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int) -> *const ::std::os::raw::c_void885 pub fn sqlite3_column_decltype16(arg1: *mut sqlite3_stmt,
886 arg2: ::std::os::raw::c_int)
887 -> *const ::std::os::raw::c_void;
888 }
889 extern "C" {
sqlite3_step(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int890 pub fn sqlite3_step(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
891 }
892 extern "C" {
sqlite3_data_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int893 pub fn sqlite3_data_count(pStmt: *mut sqlite3_stmt)
894 -> ::std::os::raw::c_int;
895 }
896 extern "C" {
sqlite3_column_blob(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> *const ::std::os::raw::c_void897 pub fn sqlite3_column_blob(arg1: *mut sqlite3_stmt,
898 iCol: ::std::os::raw::c_int)
899 -> *const ::std::os::raw::c_void;
900 }
901 extern "C" {
sqlite3_column_bytes(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> ::std::os::raw::c_int902 pub fn sqlite3_column_bytes(arg1: *mut sqlite3_stmt,
903 iCol: ::std::os::raw::c_int)
904 -> ::std::os::raw::c_int;
905 }
906 extern "C" {
sqlite3_column_bytes16(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> ::std::os::raw::c_int907 pub fn sqlite3_column_bytes16(arg1: *mut sqlite3_stmt,
908 iCol: ::std::os::raw::c_int)
909 -> ::std::os::raw::c_int;
910 }
911 extern "C" {
sqlite3_column_double(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> f64912 pub fn sqlite3_column_double(arg1: *mut sqlite3_stmt,
913 iCol: ::std::os::raw::c_int) -> f64;
914 }
915 extern "C" {
sqlite3_column_int(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> ::std::os::raw::c_int916 pub fn sqlite3_column_int(arg1: *mut sqlite3_stmt,
917 iCol: ::std::os::raw::c_int)
918 -> ::std::os::raw::c_int;
919 }
920 extern "C" {
sqlite3_column_int64(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> sqlite3_int64921 pub fn sqlite3_column_int64(arg1: *mut sqlite3_stmt,
922 iCol: ::std::os::raw::c_int) -> sqlite3_int64;
923 }
924 extern "C" {
sqlite3_column_text(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> *const ::std::os::raw::c_uchar925 pub fn sqlite3_column_text(arg1: *mut sqlite3_stmt,
926 iCol: ::std::os::raw::c_int)
927 -> *const ::std::os::raw::c_uchar;
928 }
929 extern "C" {
sqlite3_column_text16(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> *const ::std::os::raw::c_void930 pub fn sqlite3_column_text16(arg1: *mut sqlite3_stmt,
931 iCol: ::std::os::raw::c_int)
932 -> *const ::std::os::raw::c_void;
933 }
934 extern "C" {
sqlite3_column_type(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> ::std::os::raw::c_int935 pub fn sqlite3_column_type(arg1: *mut sqlite3_stmt,
936 iCol: ::std::os::raw::c_int)
937 -> ::std::os::raw::c_int;
938 }
939 extern "C" {
sqlite3_column_value(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> *mut sqlite3_value940 pub fn sqlite3_column_value(arg1: *mut sqlite3_stmt,
941 iCol: ::std::os::raw::c_int)
942 -> *mut sqlite3_value;
943 }
944 extern "C" {
sqlite3_finalize(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int945 pub fn sqlite3_finalize(pStmt: *mut sqlite3_stmt)
946 -> ::std::os::raw::c_int;
947 }
948 extern "C" {
sqlite3_reset(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int949 pub fn sqlite3_reset(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
950 }
951 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_int952 pub fn sqlite3_create_function(db: *mut sqlite3,
953 zFunctionName:
954 *const ::std::os::raw::c_char,
955 nArg: ::std::os::raw::c_int,
956 eTextRep: ::std::os::raw::c_int,
957 pApp: *mut ::std::os::raw::c_void,
958 xFunc:
959 ::std::option::Option<unsafe extern "C" fn(arg1:
960 *mut sqlite3_context,
961 arg2:
962 ::std::os::raw::c_int,
963 arg3:
964 *mut *mut sqlite3_value)>,
965 xStep:
966 ::std::option::Option<unsafe extern "C" fn(arg1:
967 *mut sqlite3_context,
968 arg2:
969 ::std::os::raw::c_int,
970 arg3:
971 *mut *mut sqlite3_value)>,
972 xFinal:
973 ::std::option::Option<unsafe extern "C" fn(arg1:
974 *mut sqlite3_context)>)
975 -> ::std::os::raw::c_int;
976 }
977 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_int978 pub fn sqlite3_create_function16(db: *mut sqlite3,
979 zFunctionName:
980 *const ::std::os::raw::c_void,
981 nArg: ::std::os::raw::c_int,
982 eTextRep: ::std::os::raw::c_int,
983 pApp: *mut ::std::os::raw::c_void,
984 xFunc:
985 ::std::option::Option<unsafe extern "C" fn(arg1:
986 *mut sqlite3_context,
987 arg2:
988 ::std::os::raw::c_int,
989 arg3:
990 *mut *mut sqlite3_value)>,
991 xStep:
992 ::std::option::Option<unsafe extern "C" fn(arg1:
993 *mut sqlite3_context,
994 arg2:
995 ::std::os::raw::c_int,
996 arg3:
997 *mut *mut sqlite3_value)>,
998 xFinal:
999 ::std::option::Option<unsafe extern "C" fn(arg1:
1000 *mut sqlite3_context)>)
1001 -> ::std::os::raw::c_int;
1002 }
1003 extern "C" {
sqlite3_aggregate_count(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int1004 pub fn sqlite3_aggregate_count(arg1: *mut sqlite3_context)
1005 -> ::std::os::raw::c_int;
1006 }
1007 extern "C" {
sqlite3_expired(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int1008 pub fn sqlite3_expired(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
1009 }
1010 extern "C" {
sqlite3_transfer_bindings(arg1: *mut sqlite3_stmt, arg2: *mut sqlite3_stmt) -> ::std::os::raw::c_int1011 pub fn sqlite3_transfer_bindings(arg1: *mut sqlite3_stmt,
1012 arg2: *mut sqlite3_stmt)
1013 -> ::std::os::raw::c_int;
1014 }
1015 extern "C" {
sqlite3_global_recover() -> ::std::os::raw::c_int1016 pub fn sqlite3_global_recover() -> ::std::os::raw::c_int;
1017 }
1018 extern "C" {
sqlite3_thread_cleanup()1019 pub fn sqlite3_thread_cleanup();
1020 }
1021 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_int1022 pub fn sqlite3_memory_alarm(arg1:
1023 ::std::option::Option<unsafe extern "C" fn(arg1:
1024 *mut ::std::os::raw::c_void,
1025 arg2:
1026 sqlite3_int64,
1027 arg3:
1028 ::std::os::raw::c_int)>,
1029 arg2: *mut ::std::os::raw::c_void,
1030 arg3: sqlite3_int64) -> ::std::os::raw::c_int;
1031 }
1032 extern "C" {
sqlite3_value_blob(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void1033 pub fn sqlite3_value_blob(arg1: *mut sqlite3_value)
1034 -> *const ::std::os::raw::c_void;
1035 }
1036 extern "C" {
sqlite3_value_bytes(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1037 pub fn sqlite3_value_bytes(arg1: *mut sqlite3_value)
1038 -> ::std::os::raw::c_int;
1039 }
1040 extern "C" {
sqlite3_value_bytes16(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1041 pub fn sqlite3_value_bytes16(arg1: *mut sqlite3_value)
1042 -> ::std::os::raw::c_int;
1043 }
1044 extern "C" {
sqlite3_value_double(arg1: *mut sqlite3_value) -> f641045 pub fn sqlite3_value_double(arg1: *mut sqlite3_value) -> f64;
1046 }
1047 extern "C" {
sqlite3_value_int(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1048 pub fn sqlite3_value_int(arg1: *mut sqlite3_value)
1049 -> ::std::os::raw::c_int;
1050 }
1051 extern "C" {
sqlite3_value_int64(arg1: *mut sqlite3_value) -> sqlite3_int641052 pub fn sqlite3_value_int64(arg1: *mut sqlite3_value) -> sqlite3_int64;
1053 }
1054 extern "C" {
sqlite3_value_text(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_uchar1055 pub fn sqlite3_value_text(arg1: *mut sqlite3_value)
1056 -> *const ::std::os::raw::c_uchar;
1057 }
1058 extern "C" {
sqlite3_value_text16(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void1059 pub fn sqlite3_value_text16(arg1: *mut sqlite3_value)
1060 -> *const ::std::os::raw::c_void;
1061 }
1062 extern "C" {
sqlite3_value_text16le(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void1063 pub fn sqlite3_value_text16le(arg1: *mut sqlite3_value)
1064 -> *const ::std::os::raw::c_void;
1065 }
1066 extern "C" {
sqlite3_value_text16be(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void1067 pub fn sqlite3_value_text16be(arg1: *mut sqlite3_value)
1068 -> *const ::std::os::raw::c_void;
1069 }
1070 extern "C" {
sqlite3_value_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1071 pub fn sqlite3_value_type(arg1: *mut sqlite3_value)
1072 -> ::std::os::raw::c_int;
1073 }
1074 extern "C" {
sqlite3_value_numeric_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1075 pub fn sqlite3_value_numeric_type(arg1: *mut sqlite3_value)
1076 -> ::std::os::raw::c_int;
1077 }
1078 extern "C" {
sqlite3_aggregate_context(arg1: *mut sqlite3_context, nBytes: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void1079 pub fn sqlite3_aggregate_context(arg1: *mut sqlite3_context,
1080 nBytes: ::std::os::raw::c_int)
1081 -> *mut ::std::os::raw::c_void;
1082 }
1083 extern "C" {
sqlite3_user_data(arg1: *mut sqlite3_context) -> *mut ::std::os::raw::c_void1084 pub fn sqlite3_user_data(arg1: *mut sqlite3_context)
1085 -> *mut ::std::os::raw::c_void;
1086 }
1087 extern "C" {
sqlite3_context_db_handle(arg1: *mut sqlite3_context) -> *mut sqlite31088 pub fn sqlite3_context_db_handle(arg1: *mut sqlite3_context)
1089 -> *mut sqlite3;
1090 }
1091 extern "C" {
sqlite3_get_auxdata(arg1: *mut sqlite3_context, N: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void1092 pub fn sqlite3_get_auxdata(arg1: *mut sqlite3_context,
1093 N: ::std::os::raw::c_int)
1094 -> *mut ::std::os::raw::c_void;
1095 }
1096 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)>)1097 pub fn sqlite3_set_auxdata(arg1: *mut sqlite3_context,
1098 N: ::std::os::raw::c_int,
1099 arg2: *mut ::std::os::raw::c_void,
1100 arg3:
1101 ::std::option::Option<unsafe extern "C" fn(arg1:
1102 *mut ::std::os::raw::c_void)>);
1103 }
1104 pub type sqlite3_destructor_type =
1105 ::std::option::Option<unsafe extern "C" fn(arg1:
1106 *mut ::std::os::raw::c_void)>;
1107 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)>)1108 pub fn sqlite3_result_blob(arg1: *mut sqlite3_context,
1109 arg2: *const ::std::os::raw::c_void,
1110 arg3: ::std::os::raw::c_int,
1111 arg4:
1112 ::std::option::Option<unsafe extern "C" fn(arg1:
1113 *mut ::std::os::raw::c_void)>);
1114 }
1115 extern "C" {
sqlite3_result_double(arg1: *mut sqlite3_context, arg2: f64)1116 pub fn sqlite3_result_double(arg1: *mut sqlite3_context, arg2: f64);
1117 }
1118 extern "C" {
sqlite3_result_error(arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_char, arg3: ::std::os::raw::c_int)1119 pub fn sqlite3_result_error(arg1: *mut sqlite3_context,
1120 arg2: *const ::std::os::raw::c_char,
1121 arg3: ::std::os::raw::c_int);
1122 }
1123 extern "C" {
sqlite3_result_error16(arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_void, arg3: ::std::os::raw::c_int)1124 pub fn sqlite3_result_error16(arg1: *mut sqlite3_context,
1125 arg2: *const ::std::os::raw::c_void,
1126 arg3: ::std::os::raw::c_int);
1127 }
1128 extern "C" {
sqlite3_result_error_toobig(arg1: *mut sqlite3_context)1129 pub fn sqlite3_result_error_toobig(arg1: *mut sqlite3_context);
1130 }
1131 extern "C" {
sqlite3_result_error_nomem(arg1: *mut sqlite3_context)1132 pub fn sqlite3_result_error_nomem(arg1: *mut sqlite3_context);
1133 }
1134 extern "C" {
sqlite3_result_error_code(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int)1135 pub fn sqlite3_result_error_code(arg1: *mut sqlite3_context,
1136 arg2: ::std::os::raw::c_int);
1137 }
1138 extern "C" {
sqlite3_result_int(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int)1139 pub fn sqlite3_result_int(arg1: *mut sqlite3_context,
1140 arg2: ::std::os::raw::c_int);
1141 }
1142 extern "C" {
sqlite3_result_int64(arg1: *mut sqlite3_context, arg2: sqlite3_int64)1143 pub fn sqlite3_result_int64(arg1: *mut sqlite3_context,
1144 arg2: sqlite3_int64);
1145 }
1146 extern "C" {
sqlite3_result_null(arg1: *mut sqlite3_context)1147 pub fn sqlite3_result_null(arg1: *mut sqlite3_context);
1148 }
1149 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)>)1150 pub fn sqlite3_result_text(arg1: *mut sqlite3_context,
1151 arg2: *const ::std::os::raw::c_char,
1152 arg3: ::std::os::raw::c_int,
1153 arg4:
1154 ::std::option::Option<unsafe extern "C" fn(arg1:
1155 *mut ::std::os::raw::c_void)>);
1156 }
1157 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)>)1158 pub fn sqlite3_result_text16(arg1: *mut sqlite3_context,
1159 arg2: *const ::std::os::raw::c_void,
1160 arg3: ::std::os::raw::c_int,
1161 arg4:
1162 ::std::option::Option<unsafe extern "C" fn(arg1:
1163 *mut ::std::os::raw::c_void)>);
1164 }
1165 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)>)1166 pub fn sqlite3_result_text16le(arg1: *mut sqlite3_context,
1167 arg2: *const ::std::os::raw::c_void,
1168 arg3: ::std::os::raw::c_int,
1169 arg4:
1170 ::std::option::Option<unsafe extern "C" fn(arg1:
1171 *mut ::std::os::raw::c_void)>);
1172 }
1173 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)>)1174 pub fn sqlite3_result_text16be(arg1: *mut sqlite3_context,
1175 arg2: *const ::std::os::raw::c_void,
1176 arg3: ::std::os::raw::c_int,
1177 arg4:
1178 ::std::option::Option<unsafe extern "C" fn(arg1:
1179 *mut ::std::os::raw::c_void)>);
1180 }
1181 extern "C" {
sqlite3_result_value(arg1: *mut sqlite3_context, arg2: *mut sqlite3_value)1182 pub fn sqlite3_result_value(arg1: *mut sqlite3_context,
1183 arg2: *mut sqlite3_value);
1184 }
1185 extern "C" {
sqlite3_result_zeroblob(arg1: *mut sqlite3_context, n: ::std::os::raw::c_int)1186 pub fn sqlite3_result_zeroblob(arg1: *mut sqlite3_context,
1187 n: ::std::os::raw::c_int);
1188 }
1189 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_int1190 pub fn sqlite3_create_collation(arg1: *mut sqlite3,
1191 zName: *const ::std::os::raw::c_char,
1192 eTextRep: ::std::os::raw::c_int,
1193 arg2: *mut ::std::os::raw::c_void,
1194 xCompare:
1195 ::std::option::Option<unsafe extern "C" fn(arg1:
1196 *mut ::std::os::raw::c_void,
1197 arg2:
1198 ::std::os::raw::c_int,
1199 arg3:
1200 *const ::std::os::raw::c_void,
1201 arg4:
1202 ::std::os::raw::c_int,
1203 arg5:
1204 *const ::std::os::raw::c_void)
1205 ->
1206 ::std::os::raw::c_int>)
1207 -> ::std::os::raw::c_int;
1208 }
1209 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_int1210 pub fn sqlite3_create_collation_v2(arg1: *mut sqlite3,
1211 zName: *const ::std::os::raw::c_char,
1212 eTextRep: ::std::os::raw::c_int,
1213 arg2: *mut ::std::os::raw::c_void,
1214 xCompare:
1215 ::std::option::Option<unsafe extern "C" fn(arg1:
1216 *mut ::std::os::raw::c_void,
1217 arg2:
1218 ::std::os::raw::c_int,
1219 arg3:
1220 *const ::std::os::raw::c_void,
1221 arg4:
1222 ::std::os::raw::c_int,
1223 arg5:
1224 *const ::std::os::raw::c_void)
1225 ->
1226 ::std::os::raw::c_int>,
1227 xDestroy:
1228 ::std::option::Option<unsafe extern "C" fn(arg1:
1229 *mut ::std::os::raw::c_void)>)
1230 -> ::std::os::raw::c_int;
1231 }
1232 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_int1233 pub fn sqlite3_create_collation16(arg1: *mut sqlite3,
1234 zName: *const ::std::os::raw::c_void,
1235 eTextRep: ::std::os::raw::c_int,
1236 arg2: *mut ::std::os::raw::c_void,
1237 xCompare:
1238 ::std::option::Option<unsafe extern "C" fn(arg1:
1239 *mut ::std::os::raw::c_void,
1240 arg2:
1241 ::std::os::raw::c_int,
1242 arg3:
1243 *const ::std::os::raw::c_void,
1244 arg4:
1245 ::std::os::raw::c_int,
1246 arg5:
1247 *const ::std::os::raw::c_void)
1248 ->
1249 ::std::os::raw::c_int>)
1250 -> ::std::os::raw::c_int;
1251 }
1252 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_int1253 pub fn sqlite3_collation_needed(arg1: *mut sqlite3,
1254 arg2: *mut ::std::os::raw::c_void,
1255 arg3:
1256 ::std::option::Option<unsafe extern "C" fn(arg1:
1257 *mut ::std::os::raw::c_void,
1258 arg2:
1259 *mut sqlite3,
1260 eTextRep:
1261 ::std::os::raw::c_int,
1262 arg3:
1263 *const ::std::os::raw::c_char)>)
1264 -> ::std::os::raw::c_int;
1265 }
1266 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_int1267 pub fn sqlite3_collation_needed16(arg1: *mut sqlite3,
1268 arg2: *mut ::std::os::raw::c_void,
1269 arg3:
1270 ::std::option::Option<unsafe extern "C" fn(arg1:
1271 *mut ::std::os::raw::c_void,
1272 arg2:
1273 *mut sqlite3,
1274 eTextRep:
1275 ::std::os::raw::c_int,
1276 arg3:
1277 *const ::std::os::raw::c_void)>)
1278 -> ::std::os::raw::c_int;
1279 }
1280 extern "C" {
sqlite3_sleep(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int1281 pub fn sqlite3_sleep(arg1: ::std::os::raw::c_int)
1282 -> ::std::os::raw::c_int;
1283 }
1284 extern "C" {
1285 #[link_name = "sqlite3_temp_directory"]
1286 pub static mut sqlite3_temp_directory: *mut ::std::os::raw::c_char;
1287 }
1288 extern "C" {
sqlite3_get_autocommit(arg1: *mut sqlite3) -> ::std::os::raw::c_int1289 pub fn sqlite3_get_autocommit(arg1: *mut sqlite3)
1290 -> ::std::os::raw::c_int;
1291 }
1292 extern "C" {
sqlite3_db_handle(arg1: *mut sqlite3_stmt) -> *mut sqlite31293 pub fn sqlite3_db_handle(arg1: *mut sqlite3_stmt) -> *mut sqlite3;
1294 }
1295 extern "C" {
sqlite3_next_stmt(pDb: *mut sqlite3, pStmt: *mut sqlite3_stmt) -> *mut sqlite3_stmt1296 pub fn sqlite3_next_stmt(pDb: *mut sqlite3, pStmt: *mut sqlite3_stmt)
1297 -> *mut sqlite3_stmt;
1298 }
1299 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_void1300 pub fn sqlite3_commit_hook(arg1: *mut sqlite3,
1301 arg2:
1302 ::std::option::Option<unsafe extern "C" fn(arg1:
1303 *mut ::std::os::raw::c_void)
1304 ->
1305 ::std::os::raw::c_int>,
1306 arg3: *mut ::std::os::raw::c_void)
1307 -> *mut ::std::os::raw::c_void;
1308 }
1309 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_void1310 pub fn sqlite3_rollback_hook(arg1: *mut sqlite3,
1311 arg2:
1312 ::std::option::Option<unsafe extern "C" fn(arg1:
1313 *mut ::std::os::raw::c_void)>,
1314 arg3: *mut ::std::os::raw::c_void)
1315 -> *mut ::std::os::raw::c_void;
1316 }
1317 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_void1318 pub fn sqlite3_update_hook(arg1: *mut sqlite3,
1319 arg2:
1320 ::std::option::Option<unsafe extern "C" fn(arg1:
1321 *mut ::std::os::raw::c_void,
1322 arg2:
1323 ::std::os::raw::c_int,
1324 arg3:
1325 *const ::std::os::raw::c_char,
1326 arg4:
1327 *const ::std::os::raw::c_char,
1328 arg5:
1329 sqlite3_int64)>,
1330 arg3: *mut ::std::os::raw::c_void)
1331 -> *mut ::std::os::raw::c_void;
1332 }
1333 extern "C" {
sqlite3_enable_shared_cache(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int1334 pub fn sqlite3_enable_shared_cache(arg1: ::std::os::raw::c_int)
1335 -> ::std::os::raw::c_int;
1336 }
1337 extern "C" {
sqlite3_release_memory(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int1338 pub fn sqlite3_release_memory(arg1: ::std::os::raw::c_int)
1339 -> ::std::os::raw::c_int;
1340 }
1341 extern "C" {
sqlite3_soft_heap_limit(arg1: ::std::os::raw::c_int)1342 pub fn sqlite3_soft_heap_limit(arg1: ::std::os::raw::c_int);
1343 }
1344 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_int1345 pub fn sqlite3_table_column_metadata(db: *mut sqlite3,
1346 zDbName:
1347 *const ::std::os::raw::c_char,
1348 zTableName:
1349 *const ::std::os::raw::c_char,
1350 zColumnName:
1351 *const ::std::os::raw::c_char,
1352 pzDataType:
1353 *mut *const ::std::os::raw::c_char,
1354 pzCollSeq:
1355 *mut *const ::std::os::raw::c_char,
1356 pNotNull: *mut ::std::os::raw::c_int,
1357 pPrimaryKey:
1358 *mut ::std::os::raw::c_int,
1359 pAutoinc: *mut ::std::os::raw::c_int)
1360 -> ::std::os::raw::c_int;
1361 }
1362 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_int1363 pub fn sqlite3_load_extension(db: *mut sqlite3,
1364 zFile: *const ::std::os::raw::c_char,
1365 zProc: *const ::std::os::raw::c_char,
1366 pzErrMsg: *mut *mut ::std::os::raw::c_char)
1367 -> ::std::os::raw::c_int;
1368 }
1369 extern "C" {
sqlite3_enable_load_extension(db: *mut sqlite3, onoff: ::std::os::raw::c_int) -> ::std::os::raw::c_int1370 pub fn sqlite3_enable_load_extension(db: *mut sqlite3,
1371 onoff: ::std::os::raw::c_int)
1372 -> ::std::os::raw::c_int;
1373 }
1374 extern "C" {
sqlite3_auto_extension(xEntryPoint: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int1375 pub fn sqlite3_auto_extension(xEntryPoint:
1376 ::std::option::Option<unsafe extern "C" fn()>)
1377 -> ::std::os::raw::c_int;
1378 }
1379 extern "C" {
sqlite3_reset_auto_extension()1380 pub fn sqlite3_reset_auto_extension();
1381 }
1382 #[repr(C)]
1383 #[derive(Debug, Copy)]
1384 pub struct sqlite3_vtab {
1385 pub pModule: *const sqlite3_module,
1386 pub nRef: ::std::os::raw::c_int,
1387 pub zErrMsg: *mut ::std::os::raw::c_char,
1388 }
1389 #[test]
bindgen_test_layout_sqlite3_vtab()1390 fn bindgen_test_layout_sqlite3_vtab() {
1391 assert_eq!(::std::mem::size_of::<sqlite3_vtab>() , 24usize);
1392 assert_eq!(::std::mem::align_of::<sqlite3_vtab>() , 8usize);
1393 }
1394 impl Clone for sqlite3_vtab {
clone(&self) -> Self1395 fn clone(&self) -> Self { *self }
1396 }
1397 #[repr(C)]
1398 #[derive(Debug, Copy)]
1399 pub struct sqlite3_index_info {
1400 pub nConstraint: ::std::os::raw::c_int,
1401 pub aConstraint: *mut sqlite3_index_info_sqlite3_index_constraint,
1402 pub nOrderBy: ::std::os::raw::c_int,
1403 pub aOrderBy: *mut sqlite3_index_info_sqlite3_index_orderby,
1404 pub aConstraintUsage: *mut sqlite3_index_info_sqlite3_index_constraint_usage,
1405 pub idxNum: ::std::os::raw::c_int,
1406 pub idxStr: *mut ::std::os::raw::c_char,
1407 pub needToFreeIdxStr: ::std::os::raw::c_int,
1408 pub orderByConsumed: ::std::os::raw::c_int,
1409 pub estimatedCost: f64,
1410 }
1411 #[repr(C)]
1412 #[derive(Debug, Copy)]
1413 pub struct sqlite3_index_info_sqlite3_index_constraint {
1414 pub iColumn: ::std::os::raw::c_int,
1415 pub op: ::std::os::raw::c_uchar,
1416 pub usable: ::std::os::raw::c_uchar,
1417 pub iTermOffset: ::std::os::raw::c_int,
1418 }
1419 #[test]
bindgen_test_layout_sqlite3_index_info_sqlite3_index_constraint()1420 fn bindgen_test_layout_sqlite3_index_info_sqlite3_index_constraint() {
1421 assert_eq!(::std::mem::size_of::<sqlite3_index_info_sqlite3_index_constraint>()
1422 , 12usize);
1423 assert_eq!(::std::mem::align_of::<sqlite3_index_info_sqlite3_index_constraint>()
1424 , 4usize);
1425 }
1426 impl Clone for sqlite3_index_info_sqlite3_index_constraint {
clone(&self) -> Self1427 fn clone(&self) -> Self { *self }
1428 }
1429 #[repr(C)]
1430 #[derive(Debug, Copy)]
1431 pub struct sqlite3_index_info_sqlite3_index_orderby {
1432 pub iColumn: ::std::os::raw::c_int,
1433 pub desc: ::std::os::raw::c_uchar,
1434 }
1435 #[test]
bindgen_test_layout_sqlite3_index_info_sqlite3_index_orderby()1436 fn bindgen_test_layout_sqlite3_index_info_sqlite3_index_orderby() {
1437 assert_eq!(::std::mem::size_of::<sqlite3_index_info_sqlite3_index_orderby>()
1438 , 8usize);
1439 assert_eq!(::std::mem::align_of::<sqlite3_index_info_sqlite3_index_orderby>()
1440 , 4usize);
1441 }
1442 impl Clone for sqlite3_index_info_sqlite3_index_orderby {
clone(&self) -> Self1443 fn clone(&self) -> Self { *self }
1444 }
1445 #[repr(C)]
1446 #[derive(Debug, Copy)]
1447 pub struct sqlite3_index_info_sqlite3_index_constraint_usage {
1448 pub argvIndex: ::std::os::raw::c_int,
1449 pub omit: ::std::os::raw::c_uchar,
1450 }
1451 #[test]
bindgen_test_layout_sqlite3_index_info_sqlite3_index_constraint_usage()1452 fn bindgen_test_layout_sqlite3_index_info_sqlite3_index_constraint_usage() {
1453 assert_eq!(::std::mem::size_of::<sqlite3_index_info_sqlite3_index_constraint_usage>()
1454 , 8usize);
1455 assert_eq!(::std::mem::align_of::<sqlite3_index_info_sqlite3_index_constraint_usage>()
1456 , 4usize);
1457 }
1458 impl Clone for sqlite3_index_info_sqlite3_index_constraint_usage {
clone(&self) -> Self1459 fn clone(&self) -> Self { *self }
1460 }
1461 #[test]
bindgen_test_layout_sqlite3_index_info()1462 fn bindgen_test_layout_sqlite3_index_info() {
1463 assert_eq!(::std::mem::size_of::<sqlite3_index_info>() , 72usize);
1464 assert_eq!(::std::mem::align_of::<sqlite3_index_info>() , 8usize);
1465 }
1466 impl Clone for sqlite3_index_info {
clone(&self) -> Self1467 fn clone(&self) -> Self { *self }
1468 }
1469 #[repr(C)]
1470 #[derive(Debug, Copy)]
1471 pub struct sqlite3_vtab_cursor {
1472 pub pVtab: *mut sqlite3_vtab,
1473 }
1474 #[test]
bindgen_test_layout_sqlite3_vtab_cursor()1475 fn bindgen_test_layout_sqlite3_vtab_cursor() {
1476 assert_eq!(::std::mem::size_of::<sqlite3_vtab_cursor>() , 8usize);
1477 assert_eq!(::std::mem::align_of::<sqlite3_vtab_cursor>() , 8usize);
1478 }
1479 impl Clone for sqlite3_vtab_cursor {
clone(&self) -> Self1480 fn clone(&self) -> Self { *self }
1481 }
1482 #[repr(C)]
1483 #[derive(Debug, Copy)]
1484 pub struct sqlite3_module {
1485 pub iVersion: ::std::os::raw::c_int,
1486 pub xCreate: ::std::option::Option<unsafe extern "C" fn(arg1:
1487 *mut sqlite3,
1488 pAux:
1489 *mut ::std::os::raw::c_void,
1490 argc:
1491 ::std::os::raw::c_int,
1492 argv:
1493 *const *const ::std::os::raw::c_char,
1494 ppVTab:
1495 *mut *mut sqlite3_vtab,
1496 arg2:
1497 *mut *mut ::std::os::raw::c_char)
1498 -> ::std::os::raw::c_int>,
1499 pub xConnect: ::std::option::Option<unsafe extern "C" fn(arg1:
1500 *mut sqlite3,
1501 pAux:
1502 *mut ::std::os::raw::c_void,
1503 argc:
1504 ::std::os::raw::c_int,
1505 argv:
1506 *const *const ::std::os::raw::c_char,
1507 ppVTab:
1508 *mut *mut sqlite3_vtab,
1509 arg2:
1510 *mut *mut ::std::os::raw::c_char)
1511 -> ::std::os::raw::c_int>,
1512 pub xBestIndex: ::std::option::Option<unsafe extern "C" fn(pVTab:
1513 *mut sqlite3_vtab,
1514 arg1:
1515 *mut sqlite3_index_info)
1516 -> ::std::os::raw::c_int>,
1517 pub xDisconnect: ::std::option::Option<unsafe extern "C" fn(pVTab:
1518 *mut sqlite3_vtab)
1519 -> ::std::os::raw::c_int>,
1520 pub xDestroy: ::std::option::Option<unsafe extern "C" fn(pVTab:
1521 *mut sqlite3_vtab)
1522 -> ::std::os::raw::c_int>,
1523 pub xOpen: ::std::option::Option<unsafe extern "C" fn(pVTab:
1524 *mut sqlite3_vtab,
1525 ppCursor:
1526 *mut *mut sqlite3_vtab_cursor)
1527 -> ::std::os::raw::c_int>,
1528 pub xClose: ::std::option::Option<unsafe extern "C" fn(arg1:
1529 *mut sqlite3_vtab_cursor)
1530 -> ::std::os::raw::c_int>,
1531 pub xFilter: ::std::option::Option<unsafe extern "C" fn(arg1:
1532 *mut sqlite3_vtab_cursor,
1533 idxNum:
1534 ::std::os::raw::c_int,
1535 idxStr:
1536 *const ::std::os::raw::c_char,
1537 argc:
1538 ::std::os::raw::c_int,
1539 argv:
1540 *mut *mut sqlite3_value)
1541 -> ::std::os::raw::c_int>,
1542 pub xNext: ::std::option::Option<unsafe extern "C" fn(arg1:
1543 *mut sqlite3_vtab_cursor)
1544 -> ::std::os::raw::c_int>,
1545 pub xEof: ::std::option::Option<unsafe extern "C" fn(arg1:
1546 *mut sqlite3_vtab_cursor)
1547 -> ::std::os::raw::c_int>,
1548 pub xColumn: ::std::option::Option<unsafe extern "C" fn(arg1:
1549 *mut sqlite3_vtab_cursor,
1550 arg2:
1551 *mut sqlite3_context,
1552 arg3:
1553 ::std::os::raw::c_int)
1554 -> ::std::os::raw::c_int>,
1555 pub xRowid: ::std::option::Option<unsafe extern "C" fn(arg1:
1556 *mut sqlite3_vtab_cursor,
1557 pRowid:
1558 *mut sqlite3_int64)
1559 -> ::std::os::raw::c_int>,
1560 pub xUpdate: ::std::option::Option<unsafe extern "C" fn(arg1:
1561 *mut sqlite3_vtab,
1562 arg2:
1563 ::std::os::raw::c_int,
1564 arg3:
1565 *mut *mut sqlite3_value,
1566 arg4:
1567 *mut sqlite3_int64)
1568 -> ::std::os::raw::c_int>,
1569 pub xBegin: ::std::option::Option<unsafe extern "C" fn(pVTab:
1570 *mut sqlite3_vtab)
1571 -> ::std::os::raw::c_int>,
1572 pub xSync: ::std::option::Option<unsafe extern "C" fn(pVTab:
1573 *mut sqlite3_vtab)
1574 -> ::std::os::raw::c_int>,
1575 pub xCommit: ::std::option::Option<unsafe extern "C" fn(pVTab:
1576 *mut sqlite3_vtab)
1577 -> ::std::os::raw::c_int>,
1578 pub xRollback: ::std::option::Option<unsafe extern "C" fn(pVTab:
1579 *mut sqlite3_vtab)
1580 -> ::std::os::raw::c_int>,
1581 pub xFindFunction: ::std::option::Option<unsafe extern "C" fn(pVtab:
1582 *mut sqlite3_vtab,
1583 nArg:
1584 ::std::os::raw::c_int,
1585 zName:
1586 *const ::std::os::raw::c_char,
1587 pxFunc:
1588 *mut ::std::option::Option<unsafe extern "C" fn(arg1:
1589 *mut sqlite3_context,
1590 arg2:
1591 ::std::os::raw::c_int,
1592 arg3:
1593 *mut *mut sqlite3_value)>,
1594 ppArg:
1595 *mut *mut ::std::os::raw::c_void)
1596 -> ::std::os::raw::c_int>,
1597 pub xRename: ::std::option::Option<unsafe extern "C" fn(pVtab:
1598 *mut sqlite3_vtab,
1599 zNew:
1600 *const ::std::os::raw::c_char)
1601 -> ::std::os::raw::c_int>,
1602 }
1603 #[test]
bindgen_test_layout_sqlite3_module()1604 fn bindgen_test_layout_sqlite3_module() {
1605 assert_eq!(::std::mem::size_of::<sqlite3_module>() , 160usize);
1606 assert_eq!(::std::mem::align_of::<sqlite3_module>() , 8usize);
1607 }
1608 impl Clone for sqlite3_module {
clone(&self) -> Self1609 fn clone(&self) -> Self { *self }
1610 }
1611 extern "C" {
sqlite3_create_module(db: *mut sqlite3, zName: *const ::std::os::raw::c_char, p: *const sqlite3_module, pClientData: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int1612 pub fn sqlite3_create_module(db: *mut sqlite3,
1613 zName: *const ::std::os::raw::c_char,
1614 p: *const sqlite3_module,
1615 pClientData: *mut ::std::os::raw::c_void)
1616 -> ::std::os::raw::c_int;
1617 }
1618 extern "C" {
sqlite3_create_module_v2(db: *mut sqlite3, zName: *const ::std::os::raw::c_char, p: *const sqlite3_module, pClientData: *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_int1619 pub fn sqlite3_create_module_v2(db: *mut sqlite3,
1620 zName: *const ::std::os::raw::c_char,
1621 p: *const sqlite3_module,
1622 pClientData: *mut ::std::os::raw::c_void,
1623 xDestroy:
1624 ::std::option::Option<unsafe extern "C" fn(arg1:
1625 *mut ::std::os::raw::c_void)>)
1626 -> ::std::os::raw::c_int;
1627 }
1628 extern "C" {
sqlite3_declare_vtab(arg1: *mut sqlite3, zSQL: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int1629 pub fn sqlite3_declare_vtab(arg1: *mut sqlite3,
1630 zSQL: *const ::std::os::raw::c_char)
1631 -> ::std::os::raw::c_int;
1632 }
1633 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_int1634 pub fn sqlite3_overload_function(arg1: *mut sqlite3,
1635 zFuncName: *const ::std::os::raw::c_char,
1636 nArg: ::std::os::raw::c_int)
1637 -> ::std::os::raw::c_int;
1638 }
1639 #[repr(C)]
1640 #[derive(Debug, Copy, Clone)]
1641 pub struct sqlite3_blob([u8; 0]);
1642 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_int1643 pub fn sqlite3_blob_open(arg1: *mut sqlite3,
1644 zDb: *const ::std::os::raw::c_char,
1645 zTable: *const ::std::os::raw::c_char,
1646 zColumn: *const ::std::os::raw::c_char,
1647 iRow: sqlite3_int64,
1648 flags: ::std::os::raw::c_int,
1649 ppBlob: *mut *mut sqlite3_blob)
1650 -> ::std::os::raw::c_int;
1651 }
1652 extern "C" {
sqlite3_blob_close(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int1653 pub fn sqlite3_blob_close(arg1: *mut sqlite3_blob)
1654 -> ::std::os::raw::c_int;
1655 }
1656 extern "C" {
sqlite3_blob_bytes(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int1657 pub fn sqlite3_blob_bytes(arg1: *mut sqlite3_blob)
1658 -> ::std::os::raw::c_int;
1659 }
1660 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_int1661 pub fn sqlite3_blob_read(arg1: *mut sqlite3_blob,
1662 Z: *mut ::std::os::raw::c_void,
1663 N: ::std::os::raw::c_int,
1664 iOffset: ::std::os::raw::c_int)
1665 -> ::std::os::raw::c_int;
1666 }
1667 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_int1668 pub fn sqlite3_blob_write(arg1: *mut sqlite3_blob,
1669 z: *const ::std::os::raw::c_void,
1670 n: ::std::os::raw::c_int,
1671 iOffset: ::std::os::raw::c_int)
1672 -> ::std::os::raw::c_int;
1673 }
1674 extern "C" {
sqlite3_vfs_find(zVfsName: *const ::std::os::raw::c_char) -> *mut sqlite3_vfs1675 pub fn sqlite3_vfs_find(zVfsName: *const ::std::os::raw::c_char)
1676 -> *mut sqlite3_vfs;
1677 }
1678 extern "C" {
sqlite3_vfs_register(arg1: *mut sqlite3_vfs, makeDflt: ::std::os::raw::c_int) -> ::std::os::raw::c_int1679 pub fn sqlite3_vfs_register(arg1: *mut sqlite3_vfs,
1680 makeDflt: ::std::os::raw::c_int)
1681 -> ::std::os::raw::c_int;
1682 }
1683 extern "C" {
sqlite3_vfs_unregister(arg1: *mut sqlite3_vfs) -> ::std::os::raw::c_int1684 pub fn sqlite3_vfs_unregister(arg1: *mut sqlite3_vfs)
1685 -> ::std::os::raw::c_int;
1686 }
1687 extern "C" {
sqlite3_mutex_alloc(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex1688 pub fn sqlite3_mutex_alloc(arg1: ::std::os::raw::c_int)
1689 -> *mut sqlite3_mutex;
1690 }
1691 extern "C" {
sqlite3_mutex_free(arg1: *mut sqlite3_mutex)1692 pub fn sqlite3_mutex_free(arg1: *mut sqlite3_mutex);
1693 }
1694 extern "C" {
sqlite3_mutex_enter(arg1: *mut sqlite3_mutex)1695 pub fn sqlite3_mutex_enter(arg1: *mut sqlite3_mutex);
1696 }
1697 extern "C" {
sqlite3_mutex_try(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int1698 pub fn sqlite3_mutex_try(arg1: *mut sqlite3_mutex)
1699 -> ::std::os::raw::c_int;
1700 }
1701 extern "C" {
sqlite3_mutex_leave(arg1: *mut sqlite3_mutex)1702 pub fn sqlite3_mutex_leave(arg1: *mut sqlite3_mutex);
1703 }
1704 #[repr(C)]
1705 #[derive(Debug, Copy)]
1706 pub struct sqlite3_mutex_methods {
1707 pub xMutexInit: ::std::option::Option<unsafe extern "C" fn()
1708 -> ::std::os::raw::c_int>,
1709 pub xMutexEnd: ::std::option::Option<unsafe extern "C" fn()
1710 -> ::std::os::raw::c_int>,
1711 pub xMutexAlloc: ::std::option::Option<unsafe extern "C" fn(arg1:
1712 ::std::os::raw::c_int)
1713 -> *mut sqlite3_mutex>,
1714 pub xMutexFree: ::std::option::Option<unsafe extern "C" fn(arg1:
1715 *mut sqlite3_mutex)>,
1716 pub xMutexEnter: ::std::option::Option<unsafe extern "C" fn(arg1:
1717 *mut sqlite3_mutex)>,
1718 pub xMutexTry: ::std::option::Option<unsafe extern "C" fn(arg1:
1719 *mut sqlite3_mutex)
1720 -> ::std::os::raw::c_int>,
1721 pub xMutexLeave: ::std::option::Option<unsafe extern "C" fn(arg1:
1722 *mut sqlite3_mutex)>,
1723 pub xMutexHeld: ::std::option::Option<unsafe extern "C" fn(arg1:
1724 *mut sqlite3_mutex)
1725 -> ::std::os::raw::c_int>,
1726 pub xMutexNotheld: ::std::option::Option<unsafe extern "C" fn(arg1:
1727 *mut sqlite3_mutex)
1728 -> ::std::os::raw::c_int>,
1729 }
1730 #[test]
bindgen_test_layout_sqlite3_mutex_methods()1731 fn bindgen_test_layout_sqlite3_mutex_methods() {
1732 assert_eq!(::std::mem::size_of::<sqlite3_mutex_methods>() , 72usize);
1733 assert_eq!(::std::mem::align_of::<sqlite3_mutex_methods>() , 8usize);
1734 }
1735 impl Clone for sqlite3_mutex_methods {
clone(&self) -> Self1736 fn clone(&self) -> Self { *self }
1737 }
1738 extern "C" {
sqlite3_mutex_held(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int1739 pub fn sqlite3_mutex_held(arg1: *mut sqlite3_mutex)
1740 -> ::std::os::raw::c_int;
1741 }
1742 extern "C" {
sqlite3_mutex_notheld(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int1743 pub fn sqlite3_mutex_notheld(arg1: *mut sqlite3_mutex)
1744 -> ::std::os::raw::c_int;
1745 }
1746 extern "C" {
sqlite3_db_mutex(arg1: *mut sqlite3) -> *mut sqlite3_mutex1747 pub fn sqlite3_db_mutex(arg1: *mut sqlite3) -> *mut sqlite3_mutex;
1748 }
1749 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_int1750 pub fn sqlite3_file_control(arg1: *mut sqlite3,
1751 zDbName: *const ::std::os::raw::c_char,
1752 op: ::std::os::raw::c_int,
1753 arg2: *mut ::std::os::raw::c_void)
1754 -> ::std::os::raw::c_int;
1755 }
1756 extern "C" {
sqlite3_test_control(op: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int1757 pub fn sqlite3_test_control(op: ::std::os::raw::c_int, ...)
1758 -> ::std::os::raw::c_int;
1759 }
1760 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_int1761 pub fn sqlite3_status(op: ::std::os::raw::c_int,
1762 pCurrent: *mut ::std::os::raw::c_int,
1763 pHighwater: *mut ::std::os::raw::c_int,
1764 resetFlag: ::std::os::raw::c_int)
1765 -> ::std::os::raw::c_int;
1766 }
1767 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_int1768 pub fn sqlite3_db_status(arg1: *mut sqlite3, op: ::std::os::raw::c_int,
1769 pCur: *mut ::std::os::raw::c_int,
1770 pHiwtr: *mut ::std::os::raw::c_int,
1771 resetFlg: ::std::os::raw::c_int)
1772 -> ::std::os::raw::c_int;
1773 }
1774 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_int1775 pub fn sqlite3_stmt_status(arg1: *mut sqlite3_stmt,
1776 op: ::std::os::raw::c_int,
1777 resetFlg: ::std::os::raw::c_int)
1778 -> ::std::os::raw::c_int;
1779 }
1780 #[repr(C)]
1781 #[derive(Debug, Copy, Clone)]
1782 pub struct sqlite3_pcache([u8; 0]);
1783 #[repr(C)]
1784 #[derive(Debug, Copy)]
1785 pub struct sqlite3_pcache_methods {
1786 pub pArg: *mut ::std::os::raw::c_void,
1787 pub xInit: ::std::option::Option<unsafe extern "C" fn(arg1:
1788 *mut ::std::os::raw::c_void)
1789 -> ::std::os::raw::c_int>,
1790 pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1:
1791 *mut ::std::os::raw::c_void)>,
1792 pub xCreate: ::std::option::Option<unsafe extern "C" fn(szPage:
1793 ::std::os::raw::c_int,
1794 bPurgeable:
1795 ::std::os::raw::c_int)
1796 -> *mut sqlite3_pcache>,
1797 pub xCachesize: ::std::option::Option<unsafe extern "C" fn(arg1:
1798 *mut sqlite3_pcache,
1799 nCachesize:
1800 ::std::os::raw::c_int)>,
1801 pub xPagecount: ::std::option::Option<unsafe extern "C" fn(arg1:
1802 *mut sqlite3_pcache)
1803 -> ::std::os::raw::c_int>,
1804 pub xFetch: ::std::option::Option<unsafe extern "C" fn(arg1:
1805 *mut sqlite3_pcache,
1806 key:
1807 ::std::os::raw::c_uint,
1808 createFlag:
1809 ::std::os::raw::c_int)
1810 -> *mut ::std::os::raw::c_void>,
1811 pub xUnpin: ::std::option::Option<unsafe extern "C" fn(arg1:
1812 *mut sqlite3_pcache,
1813 arg2:
1814 *mut ::std::os::raw::c_void,
1815 discard:
1816 ::std::os::raw::c_int)>,
1817 pub xRekey: ::std::option::Option<unsafe extern "C" fn(arg1:
1818 *mut sqlite3_pcache,
1819 arg2:
1820 *mut ::std::os::raw::c_void,
1821 oldKey:
1822 ::std::os::raw::c_uint,
1823 newKey:
1824 ::std::os::raw::c_uint)>,
1825 pub xTruncate: ::std::option::Option<unsafe extern "C" fn(arg1:
1826 *mut sqlite3_pcache,
1827 iLimit:
1828 ::std::os::raw::c_uint)>,
1829 pub xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1:
1830 *mut sqlite3_pcache)>,
1831 }
1832 #[test]
bindgen_test_layout_sqlite3_pcache_methods()1833 fn bindgen_test_layout_sqlite3_pcache_methods() {
1834 assert_eq!(::std::mem::size_of::<sqlite3_pcache_methods>() , 88usize);
1835 assert_eq!(::std::mem::align_of::<sqlite3_pcache_methods>() , 8usize);
1836 }
1837 impl Clone for sqlite3_pcache_methods {
clone(&self) -> Self1838 fn clone(&self) -> Self { *self }
1839 }
1840 #[repr(C)]
1841 #[derive(Debug, Copy, Clone)]
1842 pub struct sqlite3_backup([u8; 0]);
1843 extern "C" {
sqlite3_backup_init(pDest: *mut sqlite3, zDestName: *const ::std::os::raw::c_char, pSource: *mut sqlite3, zSourceName: *const ::std::os::raw::c_char) -> *mut sqlite3_backup1844 pub fn sqlite3_backup_init(pDest: *mut sqlite3,
1845 zDestName: *const ::std::os::raw::c_char,
1846 pSource: *mut sqlite3,
1847 zSourceName: *const ::std::os::raw::c_char)
1848 -> *mut sqlite3_backup;
1849 }
1850 extern "C" {
sqlite3_backup_step(p: *mut sqlite3_backup, nPage: ::std::os::raw::c_int) -> ::std::os::raw::c_int1851 pub fn sqlite3_backup_step(p: *mut sqlite3_backup,
1852 nPage: ::std::os::raw::c_int)
1853 -> ::std::os::raw::c_int;
1854 }
1855 extern "C" {
sqlite3_backup_finish(p: *mut sqlite3_backup) -> ::std::os::raw::c_int1856 pub fn sqlite3_backup_finish(p: *mut sqlite3_backup)
1857 -> ::std::os::raw::c_int;
1858 }
1859 extern "C" {
sqlite3_backup_remaining(p: *mut sqlite3_backup) -> ::std::os::raw::c_int1860 pub fn sqlite3_backup_remaining(p: *mut sqlite3_backup)
1861 -> ::std::os::raw::c_int;
1862 }
1863 extern "C" {
sqlite3_backup_pagecount(p: *mut sqlite3_backup) -> ::std::os::raw::c_int1864 pub fn sqlite3_backup_pagecount(p: *mut sqlite3_backup)
1865 -> ::std::os::raw::c_int;
1866 }
1867 extern "C" {
sqlite3_unlock_notify(pBlocked: *mut sqlite3, xNotify: ::std::option::Option<unsafe extern "C" fn(apArg: *mut *mut ::std::os::raw::c_void, nArg: ::std::os::raw::c_int)>, pNotifyArg: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int1868 pub fn sqlite3_unlock_notify(pBlocked: *mut sqlite3,
1869 xNotify:
1870 ::std::option::Option<unsafe extern "C" fn(apArg:
1871 *mut *mut ::std::os::raw::c_void,
1872 nArg:
1873 ::std::os::raw::c_int)>,
1874 pNotifyArg: *mut ::std::os::raw::c_void)
1875 -> ::std::os::raw::c_int;
1876 }
1877 extern "C" {
sqlite3_strnicmp(arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, arg3: ::std::os::raw::c_int) -> ::std::os::raw::c_int1878 pub fn sqlite3_strnicmp(arg1: *const ::std::os::raw::c_char,
1879 arg2: *const ::std::os::raw::c_char,
1880 arg3: ::std::os::raw::c_int)
1881 -> ::std::os::raw::c_int;
1882 }
1883 extern "C" {
sqlite3_log(iErrCode: ::std::os::raw::c_int, zFormat: *const ::std::os::raw::c_char, ...)1884 pub fn sqlite3_log(iErrCode: ::std::os::raw::c_int,
1885 zFormat: *const ::std::os::raw::c_char, ...);
1886 }
1887 #[repr(C)]
1888 #[derive(Debug, Copy)]
1889 pub struct __va_list_tag {
1890 pub gp_offset: ::std::os::raw::c_uint,
1891 pub fp_offset: ::std::os::raw::c_uint,
1892 pub overflow_arg_area: *mut ::std::os::raw::c_void,
1893 pub reg_save_area: *mut ::std::os::raw::c_void,
1894 }
1895 impl Clone for __va_list_tag {
clone(&self) -> Self1896 fn clone(&self) -> Self { *self }
1897 }
1898 pub type __builtin_va_list = [__va_list_tag; 1usize];
1899
1900 pub const SQLITE_DETERMINISTIC: i32 = 2048;
1901