extremedb_sys/
core.rs

1// core.rs
2//
3// This file is a part of the eXtremeDB source code
4// Copyright (c) 2020 McObject LLC
5// All Rights Reserved
6
7pub type size_t = usize;
8pub type mco_iquad = i64;
9pub type mco_uquad = u64;
10pub type mco_uint1 = u8;
11pub type mco_uint2 = u16;
12pub type mco_uint4 = u32;
13pub type mco_uint8 = mco_uquad;
14pub type mco_int1 = i8;
15pub type mco_int2 = i16;
16pub type mco_int4 = i32;
17pub type mco_int8 = mco_iquad;
18pub type mco_bool = ::std::os::raw::c_int;
19pub type mco_datetime = mco_uquad;
20pub type uint1 = mco_uint1;
21pub type uint2 = mco_uint2;
22pub type uint4 = mco_uint4;
23pub type uint8 = mco_uint8;
24pub type int1 = mco_int1;
25pub type int2 = mco_int2;
26pub type int4 = mco_int4;
27pub type mco_offs32_t = uint4;
28pub type mco_offs32_sig_t = int4;
29pub type mco_counter32_t = uint4;
30pub type mco_size_t = usize;
31pub type mco_offs_t = usize;
32pub type mco_hash_counter_t = usize;
33
34pub mod MCO_RET_E_ {
35    pub type Type = u32;
36    pub const MCO_S_OK: Type = 0;
37    pub const MCO_S_BUSY: Type = 1;
38    pub const MCO_S_OVERFLOW: Type = 2;
39    pub const MCO_S_UNDERFLOW: Type = 3;
40    pub const MCO_S_NOTFOUND: Type = 10;
41    pub const MCO_S_CURSOR_END: Type = 11;
42    pub const MCO_S_CURSOR_EMPTY: Type = 12;
43    pub const MCO_S_DUPLICATE: Type = 13;
44    pub const MCO_S_EVENT_RELEASED: Type = 14;
45    pub const MCO_S_DEAD_CONNECTION: Type = 15;
46    pub const MCO_S_NULL_VALUE: Type = 16;
47    pub const MCO_S_TL_INVDATA: Type = 17;
48    pub const MCO_S_TL_NOT_INITIALIZED: Type = 18;
49    pub const MCO_S_DEFERRED_DELETE: Type = 19;
50    pub const MCO_S_REST_CONN_ACCEPTED: Type = 20;
51    pub const MCO_S_REST_CONN_FINISHED: Type = 21;
52    pub const MCO_S_REST_TIMEOUT: Type = 22;
53    pub const MCO_E_CORE: Type = 50;
54    pub const MCO_E_INVALID_HANDLE: Type = 51;
55    pub const MCO_E_NOMEM: Type = 52;
56    pub const MCO_E_ACCESS: Type = 53;
57    pub const MCO_E_TRANSACT: Type = 54;
58    pub const MCO_E_INDEXLIMIT: Type = 55;
59    pub const MCO_E_EMPTYVECTOREL: Type = 56;
60    pub const MCO_E_UNSUPPORTED: Type = 57;
61    pub const MCO_E_EMPTYOPTIONAL: Type = 58;
62    pub const MCO_E_EMPTYBLOB: Type = 59;
63    pub const MCO_E_CURSOR_INVALID: Type = 60;
64    pub const MCO_E_ILLEGAL_TYPE: Type = 61;
65    pub const MCO_E_ILLEGAL_PARAM: Type = 62;
66    pub const MCO_E_CURSOR_MISMATCH: Type = 63;
67    pub const MCO_E_DELETED: Type = 64;
68    pub const MCO_E_LONG_TRANSACTION: Type = 65;
69    pub const MCO_E_INSTANCE_DUPLICATE: Type = 66;
70    pub const MCO_E_UPGRADE_FAILED: Type = 67;
71    pub const MCO_E_NOINSTANCE: Type = 68;
72    pub const MCO_E_OPENED_SESSIONS: Type = 69;
73    pub const MCO_E_PAGESIZE: Type = 70;
74    pub const MCO_E_WRITE_STREAM: Type = 71;
75    pub const MCO_E_READ_STREAM: Type = 72;
76    pub const MCO_E_LOAD_DICT: Type = 73;
77    pub const MCO_E_LOAD_DATA: Type = 74;
78    pub const MCO_E_VERS_MISMATCH: Type = 75;
79    pub const MCO_E_VOLUNTARY_NOT_EXIST: Type = 76;
80    pub const MCO_E_EXCLUSIVE_MODE: Type = 77;
81    pub const MCO_E_MAXEXTENDS: Type = 78;
82    pub const MCO_E_HIST_OBJECT: Type = 79;
83    pub const MCO_E_SHM_ERROR: Type = 80;
84    pub const MCO_E_NOTINIT: Type = 81;
85    pub const MCO_E_SESLIMIT: Type = 82;
86    pub const MCO_E_INSTANCES_LIMIT: Type = 83;
87    pub const MCO_E_MAXTRANSSIZE_LOCKED: Type = 84;
88    pub const MCO_E_DEPRECATED: Type = 85;
89    pub const MCO_E_NOUSERDEF_FUNCS: Type = 86;
90    pub const MCO_E_CONFLICT: Type = 87;
91    pub const MCO_E_INMEM_ONLY_RUNTIME: Type = 88;
92    pub const MCO_E_ISOLATION_LEVEL_NOT_SUPPORTED: Type = 89;
93    pub const MCO_E_REGISTRY_UNABLE_CREATE_CONNECT: Type = 90;
94    pub const MCO_E_REGISTRY_UNABLE_CONNECT: Type = 91;
95    pub const MCO_E_REGISTRY_INVALID_SYNC: Type = 92;
96    pub const MCO_E_MDEV_RUNTIME_START: Type = 93;
97    pub const MCO_E_SYNC_RUNTIME_START: Type = 94;
98    pub const MCO_E_ALIGN_ERROR: Type = 95;
99    pub const MCO_E_PINNED_VERSION_LIMIT: Type = 96;
100    pub const MCO_E_VERSION_NOT_PINNED: Type = 97;
101    pub const MCO_E_CURSOR_CLOSED: Type = 98;
102    pub const MCO_E_CONVERSION: Type = 99;
103    pub const MCO_E_DISK: Type = 100;
104    pub const MCO_E_DISK_OPEN: Type = 101;
105    pub const MCO_E_DISK_ALREADY_OPENED: Type = 102;
106    pub const MCO_E_DISK_NOT_OPENED: Type = 103;
107    pub const MCO_E_DISK_INVALID_PARAM: Type = 104;
108    pub const MCO_E_DISK_PAGE_ACCESS: Type = 105;
109    pub const MCO_E_DISK_OPERATION_NOT_ALLOWED: Type = 106;
110    pub const MCO_E_DISK_ALREADY_CONNECTED: Type = 107;
111    pub const MCO_E_DISK_KEY_TOO_LONG: Type = 108;
112    pub const MCO_E_DISK_TOO_MANY_INDICES: Type = 109;
113    pub const MCO_E_DISK_TOO_MANY_CLASSES: Type = 110;
114    pub const MCO_E_DISK_SPACE_EXHAUSTED: Type = 111;
115    pub const MCO_E_DISK_INCOMPATIBLE_LOG_TYPE: Type = 112;
116    pub const MCO_E_DISK_BAD_PAGE_SIZE: Type = 113;
117    pub const MCO_E_DISK_SYNC: Type = 114;
118    pub const MCO_E_DISK_PAGE_POOL_EXHAUSTED: Type = 115;
119    pub const MCO_E_DISK_CLOSE: Type = 116;
120    pub const MCO_E_DISK_TRUNCATE: Type = 117;
121    pub const MCO_E_DISK_SEEK: Type = 118;
122    pub const MCO_E_DISK_WRITE: Type = 119;
123    pub const MCO_E_DISK_READ: Type = 120;
124    pub const MCO_E_DISK_FLUSH: Type = 121;
125    pub const MCO_E_DISK_TOO_HIGH_TREE: Type = 122;
126    pub const MCO_E_DISK_VERSION_MISMATCH: Type = 123;
127    pub const MCO_E_DISK_CONFLICT: Type = 124;
128    pub const MCO_E_DISK_SCHEMA_CHANGED: Type = 125;
129    pub const MCO_E_DISK_CRC_MISMATCH: Type = 126;
130    pub const MCO_E_DISK_TM_MISMATCH: Type = 127;
131    pub const MCO_E_DISK_DICT_LIMITS_MISMATCH: Type = 128;
132    pub const MCO_E_DISK_BTREE_ALLOC: Type = 129;
133    pub const MCO_E_DISK_CRC_CHECK_MODE_MATCH: Type = 130;
134
135    #[cfg(mco_api_ver_ge = "13")]
136    pub const MCO_E_DISK_FATAL_ERROR: Type = 131;
137    #[cfg(mco_api_ver_ge = "13")]
138    pub const MCO_E_DISK_ALLOC_MISMATCH: Type = 132;
139
140    pub const MCO_E_XML: Type = 200;
141    pub const MCO_E_XML_INVINT: Type = 201;
142    pub const MCO_E_XML_INVFLT: Type = 202;
143    pub const MCO_E_XML_INTOVF: Type = 203;
144    pub const MCO_E_XML_INVBASE: Type = 204;
145    pub const MCO_E_XML_BUFSMALL: Type = 205;
146    pub const MCO_E_XML_VECTUNSUP: Type = 206;
147    pub const MCO_E_XML_INVPOLICY: Type = 207;
148    pub const MCO_E_XML_INVCLASS: Type = 208;
149    pub const MCO_E_XML_NO_OID: Type = 209;
150    pub const MCO_E_XML_INVOID: Type = 210;
151    pub const MCO_E_XML_INVFLDNAME: Type = 211;
152    pub const MCO_E_XML_FLDNOTFOUND: Type = 212;
153    pub const MCO_E_XML_INVENDTAG: Type = 213;
154    pub const MCO_E_XML_UPDID: Type = 214;
155    pub const MCO_E_XML_INVASCII: Type = 215;
156    pub const MCO_E_XML_INCOMPL: Type = 216;
157    pub const MCO_E_XML_ARRSMALL: Type = 217;
158    pub const MCO_E_XML_INVARREL: Type = 218;
159    pub const MCO_E_XML_EXTRAXML: Type = 219;
160    pub const MCO_E_XML_NOTWF: Type = 220;
161    pub const MCO_E_XML_UNICODE: Type = 221;
162    pub const MCO_E_XML_NOINDEX: Type = 222;
163    pub const MCO_E_NW: Type = 300;
164    pub const MCO_E_NW_FATAL: Type = 301;
165    pub const MCO_E_NW_NOTSUPP: Type = 302;
166    pub const MCO_E_NW_CLOSE_CHANNEL: Type = 303;
167    pub const MCO_E_NW_BUSY: Type = 304;
168    pub const MCO_E_NW_ACCEPT: Type = 305;
169    pub const MCO_E_NW_TIMEOUT: Type = 306;
170    pub const MCO_E_NW_INVADDR: Type = 307;
171    pub const MCO_E_NW_NOMEM: Type = 308;
172    pub const MCO_E_NW_CONNECT: Type = 309;
173    pub const MCO_E_NW_SENDERR: Type = 310;
174    pub const MCO_E_NW_RECVERR: Type = 311;
175    pub const MCO_E_NW_CLOSED: Type = 312;
176    pub const MCO_E_NW_HANDSHAKE: Type = 313;
177    pub const MCO_E_NW_CLOSE_SOCKET: Type = 314;
178    pub const MCO_E_NW_CREATEPIPE: Type = 315;
179    pub const MCO_E_NW_SOCKET: Type = 316;
180    pub const MCO_E_NW_SOCKOPT: Type = 317;
181    pub const MCO_E_NW_BIND: Type = 318;
182    pub const MCO_E_NW_SOCKIOCTL: Type = 319;
183    pub const MCO_E_NW_MAGIC: Type = 320;
184    pub const MCO_E_NW_INVMSGPARAM: Type = 321;
185    pub const MCO_E_NW_WRONGSEQ: Type = 322;
186    pub const MCO_E_NWMCAST_CLOSE_SOCKET: Type = 323;
187    pub const MCO_E_NWMCAST_SOCKET: Type = 324;
188    pub const MCO_E_NWMCAST_SOCKOPT: Type = 325;
189    pub const MCO_E_NWMCAST_RECV: Type = 326;
190    pub const MCO_E_NWMCAST_BIND: Type = 327;
191    pub const MCO_E_NWMCAST_NBIO: Type = 328;
192    pub const MCO_E_NW_KILLED_BY_REPLICA: Type = 329;
193    pub const MCO_E_NW_WOULDBLOCK: Type = 330;
194    pub const MCO_E_NW_SELECT: Type = 331;
195    pub const MCO_E_NW_INVALID_PARAMETER: Type = 332;
196    pub const MCO_E_HA: Type = 400;
197    pub const MCO_E_HA_PROTOCOLERR: Type = 401;
198    pub const MCO_E_HA_TIMEOUT: Type = 402;
199    pub const MCO_E_HA_IOERROR: Type = 403;
200    pub const MCO_E_HA_MAXREPLICAS: Type = 404;
201    pub const MCO_E_HA_INIT: Type = 405;
202    pub const MCO_E_HA_RECEIVE: Type = 406;
203    pub const MCO_E_HA_NO_AUTO_OID: Type = 407;
204    pub const MCO_E_HA_NOT_INITIALIZED: Type = 408;
205    pub const MCO_E_HA_INVALID_MESSAGE: Type = 409;
206    pub const MCO_E_HA_INVALID_PARAMETER: Type = 410;
207    pub const MCO_E_HA_INVCHANNEL: Type = 411;
208    pub const MCO_E_HA_INCOMPATIBLE_MODES: Type = 412;
209    pub const MCO_E_HA_CLOSE_TEMP: Type = 413;
210    pub const MCO_E_HA_MULTICAST_NOT_SUPP: Type = 414;
211    pub const MCO_E_HA_HOTSYNCH_NOT_SUPP: Type = 415;
212    pub const MCO_E_HA_ASYNCH_NOT_SUPP: Type = 416;
213    pub const MCO_E_HA_NO_MEM: Type = 417;
214    pub const MCO_E_HA_BAD_DESCRIPTOR: Type = 418;
215    pub const MCO_E_HA_CANCEL: Type = 419;
216    pub const MCO_E_HA_WRONG_DB_MAGIC: Type = 420;
217    pub const MCO_E_HA_COMMIT: Type = 421;
218    pub const MCO_E_HA_MANYREPLICAS: Type = 422;
219    pub const MCO_E_NOT_MASTER: Type = 423;
220    pub const MCO_E_HA_STOPPED: Type = 424;
221    pub const MCO_E_HA_NOWRITETXN: Type = 425;
222    pub const MCO_E_HA_PM_BUFFER: Type = 426;
223    pub const MCO_E_HA_NOT_REPLICA: Type = 427;
224    pub const MCO_E_HA_BAD_DICT: Type = 428;
225    pub const MCO_E_HA_BINEV_NOT_SUPP: Type = 429;
226    pub const MCO_E_HA_CHANNEL_NOT_REGISTERED: Type = 430;
227    pub const MCO_E_HA_DDL_NOT_SUPPORTED: Type = 431;
228    pub const MCO_E_HA_NO_QUORUM: Type = 432;
229    pub const MCO_S_HA_REPLICA_DETACH: Type = 433;
230    pub const MCO_E_UDA: Type = 500;
231    pub const MCO_E_UDA_TOOMANY_ENTRIES: Type = 501;
232    pub const MCO_E_UDA_NAME_TOO_LONG: Type = 502;
233    pub const MCO_E_UDA_DUPLICATE: Type = 503;
234    pub const MCO_E_UDA_DICT_NOTFOUND: Type = 504;
235    pub const MCO_E_UDA_STRUCT_NOTFOUND: Type = 505;
236    pub const MCO_E_UDA_FIELD_NOTFOUND: Type = 506;
237    pub const MCO_E_UDA_INDEX_NOTFOUND: Type = 507;
238    pub const MCO_E_UDA_IFIELD_NOTFOUND: Type = 508;
239    pub const MCO_E_UDA_COLLATION_NOTFOUND: Type = 509;
240    pub const MCO_E_UDA_STRUCT_NOT_CLASS: Type = 510;
241    pub const MCO_E_UDA_WRONG_KEY_NUM: Type = 511;
242    pub const MCO_E_UDA_WRONG_KEY_TYPE: Type = 512;
243    pub const MCO_E_UDA_WRONG_OPCODE: Type = 513;
244    pub const MCO_E_UDA_SCALAR: Type = 514;
245    pub const MCO_E_UDA_NOT_DYNAMIC: Type = 515;
246    pub const MCO_E_UDA_WRONG_VALUE_TYPE: Type = 516;
247    pub const MCO_E_UDA_READONLY: Type = 517;
248    pub const MCO_E_UDA_WRONG_CLASS_CODE: Type = 518;
249    pub const MCO_E_UDA_DICT_NOT_DIRECT: Type = 519;
250    pub const MCO_E_UDA_INDEX_NOT_USERDEF: Type = 520;
251    pub const MCO_E_UDA_EVENT_NOTFOUND: Type = 521;
252    pub const MCO_E_TL: Type = 600;
253    pub const MCO_E_TL_INVAL: Type = 601;
254    pub const MCO_E_TL_ALREADY_STARTED: Type = 602;
255    pub const MCO_E_TL_NOT_STARTED: Type = 603;
256    pub const MCO_E_TL_LOG_NOT_OPENED: Type = 604;
257    pub const MCO_E_TL_INVFORMAT: Type = 605;
258    pub const MCO_E_TL_NOT_INITIALIZED: Type = 606;
259    pub const MCO_E_TL_IO_ERROR: Type = 607;
260    pub const MCO_E_TL_NOT_ITERABLE: Type = 608;
261    pub const MCO_E_TL_TRANS_STARTED: Type = 609;
262    pub const MCO_E_TL_PIPE_USED: Type = 610;
263    pub const MCO_E_TL_PIPE_LOST: Type = 611;
264    pub const MCO_E_TL_PIPE_TERM: Type = 612;
265    pub const MCO_E_TL_NO_AUTO_OID: Type = 613;
266    pub const MCO_E_TL_NOT_APPLICABLE: Type = 614;
267    pub const MCO_E_TL_NO_DYNAMIC_PIPE: Type = 615;
268    pub const MCO_E_TL_SYNC: Type = 616;
269    pub const MCO_E_TL_PLAY_STOPPED: Type = 617;
270    pub const MCO_E_TL_PLAY_NOT_STARTED: Type = 618;
271    pub const MCO_E_SEQ_OUT_OF_ORDER: Type = 700;
272    pub const MCO_E_SEQ_BOUNDED: Type = 701;
273    pub const MCO_E_SEQ_LENGTH_MISMATCH: Type = 702;
274    pub const MCO_E_SEQ_NULL_VALUE: Type = 703;
275    pub const MCO_E_DDL_NOMEM: Type = 800;
276    pub const MCO_E_DDL_UNDEFINED_STRUCT: Type = 801;
277    pub const MCO_E_DDL_INVALID_TYPE: Type = 802;
278    pub const MCO_E_DDL_FIELD_NOT_FOUND: Type = 803;
279    pub const MCO_E_DDL_INTERNAL_ERROR: Type = 804;
280    pub const MCO_E_DDL_MCOCOMP_INCOMPATIBILITY: Type = 805;
281    pub const MCO_E_DDL_TOO_MANY_CLASSES: Type = 806;
282    pub const MCO_E_DDL_TOO_MANY_INDEXES: Type = 807;
283    pub const MCO_E_DDL_TOO_MANY_EVENTS: Type = 808;
284    pub const MCO_E_CLUSTER: Type = 900;
285    pub const MCO_E_CLUSTER_NOT_INITIALIZED: Type = 901;
286    pub const MCO_E_CLUSTER_INVALID_PARAMETER: Type = 902;
287    pub const MCO_E_CLUSTER_STOPPED: Type = 903;
288    pub const MCO_E_CLUSTER_PROTOCOLERR: Type = 904;
289    pub const MCO_E_CLUSTER_NOQUORUM: Type = 905;
290    pub const MCO_E_CLUSTER_BUSY: Type = 906;
291    pub const MCO_E_CLUSTER_INCOMPATIBLE_MODE: Type = 907;
292    pub const MCO_E_CLUSTER_SYNC: Type = 908;
293    pub const MCO_E_CLUSTER_INCOMPATIBLE_ARCH: Type = 909;
294    pub const MCO_E_CLUSTER_DUPLICATE_NODEID: Type = 910;
295    pub const MCO_E_CLUSTER_DDL_NOT_SUPPORTED: Type = 911;
296    pub const MCO_E_SAL_RUNTIME_START: Type = 912;
297    pub const MCO_E_EVAL: Type = 999;
298    pub const MCO_E_PERFMON: Type = 1000;
299    pub const MCO_E_PERFMON_NOT_INITIALIZED: Type = 1001;
300    pub const MCO_E_PERFMON_ALREADY_INITIALIZED: Type = 1002;
301    pub const MCO_E_PERFMON_DB_NOT_DETACHED: Type = 1003;
302    pub const MCO_E_PERFMON_DB_NOT_ATTACHED: Type = 1004;
303    pub const MCO_E_SCHEMA_ERROR: Type = 1005;
304    pub const MCO_E_NO_DIRECT_ACCESS: Type = 1006;
305    pub const MCO_E_ENCRYPTION_NOT_SUPPORTED: Type = 1007;
306    pub const MCO_E_NO_CIPHER_KEY: Type = 1008;
307    pub const MCO_E_TOO_HIGH_TREE: Type = 1009;
308    pub const MCO_E_KEY_TOO_LONG: Type = 1010;
309    pub const MCO_E_PATRICIA_TOO_DEEP: Type = 1011;
310    pub const MCO_E_BTREE_CONFLICT: Type = 1012;
311    pub const MCO_E_TMGR_MISMATCH: Type = 1013;
312    pub const MCO_E_SCHEMA_CHANGED: Type = 1014;
313    pub const MCO_E_LICENSE_INVALID: Type = 1015;
314    pub const MCO_E_BACKUP: Type = 1016;
315    pub const MCO_E_BACKUP_PROTOCOL: Type = 1017;
316    pub const MCO_E_BACKUP_NOMEM: Type = 1018;
317    pub const MCO_E_BACKUP_INVALID_PARAM: Type = 1019;
318    pub const MCO_E_BACKUP_INVALID_FILE: Type = 1020;
319    pub const MCO_E_BACKUP_SNAPSHOT_ONLY: Type = 1021;
320    pub const MCO_E_INTERRUPTED: Type = 1022;
321    pub const MCO_E_TRANS_NOT_CLOSED: Type = 1023;
322    pub const MCO_E_TRANS_NOT_ACTIVE: Type = 1024;
323    pub const MCO_E_DATETIME_PRECISION_MISMATCH: Type = 1025;
324
325    #[cfg(mco_api_ver_ge = "13")]
326    pub const MCO_E_WRONG_CIPHER_KEY: Type = 1026;
327
328    pub const MCO_E_VERIFICATION: Type = 1100;
329    pub const MCO_E_IOT: Type = 1200;
330    pub const MCO_E_IOT_NOT_INITIALIZED: Type = 1201;
331    pub const MCO_E_IOT_INVALID_HANDLE: Type = 1202;
332    pub const MCO_E_IOT_WRONG_AGENT_ID: Type = 1203;
333    pub const MCO_E_IOT_AGENT_NOT_FOUND: Type = 1204;
334    pub const MCO_E_IOT_PROTOCOLERR: Type = 1205;
335    pub const MCO_E_IOT_TS_GAP: Type = 1206;
336    pub const MCO_E_IOT_TS_OUTOFDATE: Type = 1207;
337    pub const MCO_S_IOT_NO_NEW_DATA: Type = 1208;
338    pub const MCO_E_IOT_TOO_MANY_CONTEXTS: Type = 1209;
339    pub const MCO_E_IOT_DUPLICATE_CALLBACK: Type = 1210;
340    pub const MCO_E_IOT_CALLBACK_NOT_FOUND: Type = 1211;
341    pub const MCO_E_IOT_INCOMPATIBLE_MODE: Type = 1212;
342    pub const MCO_E_IOT_INCOMPATIBLE_LEVEL: Type = 1213;
343    pub const MCO_E_IOT_STOPPED: Type = 1214;
344    pub const MCO_E_IOT_TIMEOUT: Type = 1215;
345    pub const MCO_E_IOT_DDL_NOT_SUPPORTED: Type = 1216;
346    pub const MCO_E_REST: Type = 1300;
347    pub const MCO_E_REST_SYSTEM: Type = 1301;
348    pub const MCO_E_REST_DB: Type = 1302;
349    pub const MCO_E_REST_PARAM: Type = 1303;
350    pub const MCO_E_REST_HTTP: Type = 1304;
351    pub const MCO_E_REST_NOT_FOUND: Type = 1305;
352    pub const MCO_E_REST_JSON: Type = 1306;
353    pub const MCO_E_REST_INUSE: Type = 1307;
354    pub const MCO_E_REST_EOF: Type = 1308;
355    pub const MCO_E_REST_ADDRNOTAVAIL: Type = 1309;
356    pub const MCO_E_JSER_NOINDEX: Type = 1400;
357    pub const MCO_ERR_DB: Type = 100000;
358    pub const MCO_ERR_DICT: Type = 110000;
359    pub const MCO_ERR_CURSOR: Type = 120000;
360    pub const MCO_ERR_PMBUF: Type = 130000;
361    pub const MCO_ERR_COMMON: Type = 140000;
362    pub const MCO_ERR_HEAP: Type = 150000;
363    pub const MCO_ERR_OBJ: Type = 160000;
364    pub const MCO_ERR_BLOB: Type = 170000;
365    pub const MCO_ERR_FREC: Type = 180000;
366    pub const MCO_ERR_VOLUNTARY: Type = 190000;
367    pub const MCO_ERR_LOADSAVE: Type = 200000;
368    pub const MCO_ERR_PGMEM: Type = 210000;
369    pub const MCO_ERR_EV_SYN: Type = 220000;
370    pub const MCO_ERR_EV_ASYN: Type = 230000;
371    pub const MCO_ERR_EV_W: Type = 240000;
372    pub const MCO_ERR_XML_W: Type = 250000;
373    pub const MCO_ERR_XML_SC: Type = 260000;
374    pub const MCO_ERR_BTREE: Type = 270000;
375    pub const MCO_ERR_HASH: Type = 280000;
376    pub const MCO_ERR_RECOV: Type = 290000;
377    pub const MCO_ERR_FCOPY: Type = 300000;
378    pub const MCO_ERR_INST: Type = 330000;
379    pub const MCO_ERR_TRN: Type = 340000;
380    pub const MCO_ERR_TMGR: Type = 370000;
381    pub const MCO_ERR_SYNC: Type = 400000;
382    pub const MCO_ERR_ORDER: Type = 450000;
383    pub const MCO_ERR_SEM: Type = 460000;
384    pub const MCO_ERR_SHM: Type = 470000;
385    pub const MCO_ERR_SER: Type = 500000;
386    pub const MCO_ERR_HA: Type = 510000;
387    pub const MCO_ERR_DB_NOMEM: Type = 520000;
388    pub const MCO_ERR_OBJECT_HANDLE: Type = 530000;
389    pub const MCO_ERR_UNSUPPORTED_FLOAT: Type = 540000;
390    pub const MCO_ERR_UNSUPPORTED_DOUBLE: Type = 550000;
391    pub const MCO_ERR_DB_NOMEM_HASH: Type = 560000;
392    pub const MCO_ERR_DB_NOMEM_HEAP: Type = 570000;
393    pub const MCO_ERR_DB_NOMEM_TRANS: Type = 580000;
394    pub const MCO_ERR_DB_NAMELONG: Type = 590000;
395    pub const MCO_ERR_DB_VERS_MISMATCH: Type = 600000;
396    pub const MCO_ERR_RUNTIME: Type = 610000;
397    pub const MCO_ERR_INMEM_ONLY_RUNTIME: Type = 620000;
398    pub const MCO_ERR_DISK: Type = 700000;
399    pub const MCO_ERR_DISK_WRITE: Type = 710000;
400    pub const MCO_ERR_DISK_READ: Type = 720000;
401    pub const MCO_ERR_DISK_FLUSH: Type = 730000;
402    pub const MCO_ERR_DISK_CLOSE: Type = 740000;
403    pub const MCO_ERR_DISK_TRUNCATE: Type = 750000;
404    pub const MCO_ERR_DISK_SEEK: Type = 760000;
405    pub const MCO_ERR_DISK_OPEN: Type = 770000;
406    pub const MCO_ERR_DISK_ALREADY_OPENED: Type = 780000;
407    pub const MCO_ERR_DISK_NOT_OPENED: Type = 790000;
408    pub const MCO_ERR_DISK_INVALID_PARAM: Type = 800000;
409    pub const MCO_ERR_DISK_PAGE_ACCESS: Type = 810000;
410    pub const MCO_ERR_DISK_INTERNAL_ERROR: Type = 820000;
411    pub const MCO_ERR_DISK_OPERATION_NOT_ALLOWED: Type = 830000;
412    pub const MCO_ERR_DISK_ALREADY_CONNECTED: Type = 840000;
413    pub const MCO_ERR_DISK_TOO_MANY_INDICES: Type = 850000;
414    pub const MCO_ERR_DISK_TOO_MANY_CLASSES: Type = 860000;
415    pub const MCO_ERR_DISK_SPACE_EXHAUSTED: Type = 870000;
416    pub const MCO_ERR_DISK_PAGE_POOL_EXHAUSTED: Type = 880000;
417    pub const MCO_ERR_DISK_INCOMPATIBLE_LOG_TYPE: Type = 890000;
418    pub const MCO_ERR_DISK_BAD_PAGE_SIZE: Type = 900000;
419    pub const MCO_ERR_DISK_SYNC: Type = 910000;
420    pub const MCO_ERR_DISK_CRC: Type = 920000;
421    pub const MCO_ERR_DISK_FORMAT_MISMATCH: Type = 930000;
422    pub const MCO_ERR_CHECKPIN: Type = 940000;
423    pub const MCO_ERR_CONN: Type = 950000;
424    pub const MCO_ERR_REGISTRY: Type = 960000;
425    pub const MCO_ERR_INDEX: Type = 970000;
426    pub const MCO_ERR_VTMEM: Type = 980000;
427    pub const MCO_ERR_VTDSK: Type = 990000;
428    pub const MCO_ERR_RTREE: Type = 1000000;
429    pub const MCO_ERR_UDA: Type = 1010000;
430    pub const MCO_ERR_PTREE: Type = 1020000;
431    pub const MCO_ERR_TL: Type = 1030000;
432    pub const MCO_ERR_CLUSTER: Type = 1040000;
433    pub const MCO_ERR_CLNWTCP: Type = 1050000;
434    pub const MCO_ERR_SEQ: Type = 1060000;
435    pub const MCO_ERR_NESTED_TRANS_TRAP: Type = 1090000;
436    pub const MCO_ERR_PERFMON: Type = 1100000;
437    pub const MCO_ERR_AIO: Type = 1110000;
438    pub const MCO_ERR_CLNWMPI: Type = 1120000;
439    pub const MCO_ERR_DDL: Type = 1130000;
440    pub const MCO_ERR_SQL_EXCEPTION: Type = 1140000;
441    pub const MCO_ERR_BACKUP: Type = 1150000;
442    pub const MCO_ERR_ACTIVE_TRANSACTION: Type = 1160000;
443    pub const MCO_ERR_NETWORK: Type = 1170000;
444    pub const MCO_ERR_IOT_COMM: Type = 1180000;
445    pub const MCO_ERR_IOT_REPL: Type = 1190000;
446    pub const MCO_ERR_LAST: Type = 1999999;
447}
448
449pub use MCO_RET_E_::Type as MCO_RET;
450
451pub mod MCO_TRANS_SCHED_POLICY_E_ {
452    pub type Type = u32;
453    pub const MCO_SCHED_FIFO: Type = 0;
454    pub const MCO_SCHED_READER_FAVOR: Type = 1;
455    pub const MCO_SCHED_WRITER_FAVOR: Type = 2;
456}
457
458pub use MCO_TRANS_SCHED_POLICY_E_::Type as MCO_TRANS_SCHED_POLICY;
459
460pub mod MCO_COMMIT_POLICY_E {
461    pub type Type = u32;
462    pub const MCO_COMMIT_SYNC_FLUSH: Type = 0;
463    pub const MCO_COMMIT_BUFFERED: Type = 1;
464    pub const MCO_COMMIT_DELAYED: Type = 2;
465    pub const MCO_COMMIT_NO_SYNC: Type = 3;
466}
467
468pub use MCO_COMMIT_POLICY_E::Type as MCO_COMMIT_POLICY;
469
470pub mod MCO_LOG_TYPE_ {
471    pub type Type = u32;
472    pub const NO_LOG: Type = 0;
473    pub const REDO_LOG: Type = 1;
474    pub const UNDO_LOG: Type = 2;
475}
476
477pub use MCO_LOG_TYPE_::Type as MCO_LOG_TYPE;
478
479pub mod MCO_DB_MODE_MASK_ {
480    pub type Type = u32;
481    pub const MCO_DB_MODE_MVCC_AUTO_VACUUM: Type = 1;
482    pub const MCO_DB_MODE_SMART_INDEX_INSERT: Type = 2;
483    pub const MCO_DB_OPEN_EXISTING: Type = 4;
484    pub const MCO_DB_USE_CRC_CHECK: Type = 8;
485    pub const MCO_DB_TRANSIENT: Type = 16;
486    pub const MCO_DB_LAZY_MEM_INITIALIZATION: Type = 32;
487    pub const MCO_DB_MURSIW_DISK_COMMIT_OPTIMIZATION: Type = 64;
488    pub const MCO_DB_BULK_WRITE_MODIFIED_PAGES: Type = 128;
489    pub const MCO_DB_INDEX_PRELOAD: Type = 512;
490    pub const MCO_DB_DISABLE_NESTED_TRANSACTIONS: Type = 1024;
491    pub const MCO_DB_DISABLE_IMPLICIT_ROLLBACK: Type = 2048;
492    pub const MCO_DB_INMEMORY_PROTECTION: Type = 4096;
493    pub const MCO_DB_INCLUSIVE_BTREE: Type = 8192;
494    pub const MCO_DB_INMEMORY_COMPRESSION: Type = 16384;
495    pub const MCO_DB_SEPARATE_BITMAP: Type = 32768;
496    pub const MCO_DB_DISABLE_BTREE_REBALANCE_ON_DELETE: Type = 65536;
497    pub const MCO_DB_AUTO_ROLLBACK_FIRST_PHASE: Type = 131072;
498    pub const MCO_DB_MVCC_COMPATIBILITY_MODE: Type = 262144;
499    pub const MCO_DB_DISABLE_PAGE_POOL_RESERVE: Type = 524288;
500    pub const MCO_DB_REDO_LOG_OPTIMIZATION: Type = 1048576;
501    pub const MCO_DB_DISABLE_HOT_UPDATES: Type = 2097152;
502    pub const MCO_DB_SQL_AUTOCHECKPOINT: Type = 4194304;
503    pub const MCO_DB_MODE_READ_ONLY: Type = 8388608;
504    pub const MCO_DB_USE_AIO: Type = 16777216;
505
506    #[cfg(mco_api_ver_lt = "14")]
507    pub const MCO_DB_INCREMENTAL_BACKUP: Type = 33554432;
508
509    #[cfg(mco_api_ver_ge = "14")]
510    pub const MCO_DB_INCREMENTAL_BACKUP_ENABLED: Type = 33554432;
511
512    #[cfg(mco_api_ver_ge = "14")]
513    pub const MCO_DB_INCREMENTAL_BACKUP_PROCESSING: Type = 67108864;
514
515    #[cfg(mco_api_ver_lt = "14")]
516    pub const MCO_DB_MVCC_TABLE_LEVEL_LOCKING: Type = 67108864;
517
518    #[cfg(mco_api_ver_ge = "14")]
519    pub const MCO_DB_MVCC_TABLE_LEVEL_LOCKING: Type = 134217728;
520
521    #[cfg(mco_api_ver_lt = "14")]
522    pub const MCO_DB_DISABLE_SMART_ALLOC: Type = 134217728;
523
524    #[cfg(mco_api_ver_ge = "14")]
525    pub const MCO_DB_DISABLE_SMART_ALLOC: Type = 268435456;
526
527    #[cfg(all(mco_api_ver_eq = "13"))]
528    pub const MCO_DB_DISABLE_DISK_SPACE_RESERVE: Type = 268435456;
529
530    #[cfg(mco_api_ver_ge = "14")]
531    pub const MCO_DB_DISABLE_DISK_SPACE_RESERVE: Type = 536870912;
532
533    #[cfg(all(mco_api_ver_eq = "13"))]
534    pub const MCO_DB_USE_ALLOCATION_MAP: Type = 536870912;
535
536    #[cfg(mco_api_ver_ge = "14")]
537    pub const MCO_DB_USE_ALLOCATION_MAP: Type = 1073741824;
538
539    #[cfg(mco_api_ver_ge = "15")]
540    pub const MCO_DB_PREEMPTIVE_MURSIW: Type = 2147483648;
541}
542
543pub use MCO_DB_MODE_MASK_::Type as MCO_DB_MODE_MASK;
544
545pub mod MCO_COMPRESSION_MASK_ {
546    pub type Type = u32;
547    pub const MCO_COMPRESSION_OBJ_HEAD: Type = 1;
548    pub const MCO_COMPRESSION_OBJ_NODE: Type = 2;
549    pub const MCO_COMPRESSION_BLOB_HEAD: Type = 64;
550    pub const MCO_COMPRESSION_BLOB_TAIL: Type = 128;
551    pub const MCO_COMPRESSION_FIXEDRECSET: Type = 4096;
552    pub const MCO_COMPRESSION_ALL: Type = 4291;
553}
554
555pub use MCO_COMPRESSION_MASK_::Type as MCO_COMPRESSION_MASK;
556
557pub mod mco_file_open_flags {
558    pub type Type = u32;
559    pub const MCO_FILE_OPEN_DEFAULT: Type = 0;
560    pub const MCO_FILE_OPEN_READ_ONLY: Type = 1;
561    pub const MCO_FILE_OPEN_TRUNCATE: Type = 2;
562    pub const MCO_FILE_OPEN_NO_BUFFERING: Type = 4;
563    pub const MCO_FILE_OPEN_EXISTING: Type = 8;
564    pub const MCO_FILE_OPEN_TEMPORARY: Type = 16;
565    pub const MCO_FILE_OPEN_FSYNC_FIX: Type = 32;
566    pub const MCO_FILE_OPEN_SUBPARTITION: Type = 64;
567    pub const MCO_FILE_OPEN_FSYNC_AIO_BARRIER: Type = 128;
568    pub const MCO_FILE_OPEN_COMPRESSED: Type = 256;
569    pub const MCO_FILE_OPEN_LOCK: Type = 512;
570    pub const MCO_FILE_OPEN_NO_READ_BUFFERING: Type = 1024;
571    pub const MCO_FILE_OPEN_NO_WRITE_BUFFERING: Type = 2048;
572}
573
574#[repr(C)]
575#[derive(Debug, Copy, Clone)]
576pub struct mco_db_t_ {
577    _unused: [u8; 0],
578}
579
580pub type mco_db_h = *mut mco_db_t_;
581
582#[repr(C)]
583#[derive(Debug, Copy, Clone)]
584pub struct mco_log_params_t_ {
585    pub default_commit_policy: MCO_COMMIT_POLICY,
586    pub redo_log_limit: mco_offs_t,
587    pub delayed_commit_threshold: mco_offs_t,
588    pub max_delayed_transactions: mco_counter32_t,
589    pub max_commit_delay: uint4,
590}
591
592pub type mco_log_params_t = mco_log_params_t_;
593
594#[repr(C)]
595#[derive(Debug, Copy, Clone)]
596pub struct mco_ddl_dictionary_t_ {
597    pub _address: u8,
598}
599
600#[repr(C)]
601#[derive(Copy, Clone)]
602pub struct mco_db_params_t_ {
603    pub mark: uint2,
604    pub mem_page_size: uint2,
605    pub disk_page_size: uint4,
606    pub db_max_connections: uint4,
607    pub disk_max_database_size: mco_offs_t,
608    pub file_extension_quantum: mco_offs_t,
609    pub db_log_type: MCO_LOG_TYPE,
610    pub connection_context_size: uint2,
611    pub hash_load_factor: uint2,
612    pub index_optimistic_lock_threshold: uint2,
613    pub log_params: mco_log_params_t,
614    pub mode_mask: ::std::os::raw::c_int,
615    pub min_conn_local_pages: ::std::os::raw::c_int,
616    pub max_conn_local_pages: ::std::os::raw::c_int,
617    pub allocation_bitmap_caching_priority: ::std::os::raw::c_int,
618    pub index_caching_priority: ::std::os::raw::c_int,
619    pub object_caching_priority: ::std::os::raw::c_int,
620    pub ddl_dict: *mut mco_ddl_dictionary_t_,
621    pub ddl_dict_size: mco_size_t,
622    pub ddl_dict_flags: ::std::os::raw::c_int,
623    pub cipher_key: *mut ::std::os::raw::c_char,
624    pub dynamic_hash: mco_bool,
625    pub license_key: *mut ::std::os::raw::c_char,
626    pub max_classes: ::std::os::raw::c_int,
627    pub max_indexes: ::std::os::raw::c_int,
628    pub autocompact_threshold: mco_size_t,
629    pub trans_sched_policy: MCO_TRANS_SCHED_POLICY,
630    pub max_trans_time: uint8,
631
632    #[cfg(mco_api_ver_ge = "14")]
633    pub max_ttl_objects: uint8,
634
635    #[cfg(mco_api_ver_ge = "14")]
636    pub ignore_ttl: mco_bool,
637
638    pub max_gc_versions: ::std::os::raw::c_int,
639    pub max_active_pages: ::std::os::raw::c_int,
640    pub page_hash_bundles: ::std::os::raw::c_int,
641    pub compression_level: ::std::os::raw::c_int,
642    pub compression_mask: ::std::os::raw::c_int,
643    pub expected_compression_ratio: ::std::os::raw::c_int,
644    pub btree_cursor_read_ahead_size: uint1,
645    pub mvcc_bitmap_size: ::std::os::raw::c_int,
646    pub additional_heap_size: ::std::os::raw::c_int,
647    pub cow_pagemap_size: mco_size_t,
648    pub backup_map_size: mco_size_t,
649    pub backup_min_pages: ::std::os::raw::c_uint,
650    pub backup_max_passes: ::std::os::raw::c_uint,
651    pub backup_map_filename: [::std::os::raw::c_char; 256usize],
652    pub iot_agent_id: uint8,
653    pub iot_level: uint2,
654    pub file_backup_delay: uint4,
655}
656
657pub type mco_db_params_t = mco_db_params_t_;
658
659#[repr(C)]
660#[derive(Debug, Copy, Clone)]
661pub struct mco_device_t___bindgen_ty_1__bindgen_ty_1 {
662    pub ptr: *mut ::std::os::raw::c_void,
663    pub flags: ::std::os::raw::c_int,
664}
665
666pub type mco_device_t_dev_conv = mco_device_t___bindgen_ty_1__bindgen_ty_1;
667
668#[repr(C)]
669#[derive(Copy, Clone)]
670pub struct mco_device_t___bindgen_ty_1__bindgen_ty_2 {
671    pub name: [::std::os::raw::c_char; 64usize],
672    pub flags: ::std::os::raw::c_uint,
673    pub hint: *mut ::std::os::raw::c_void,
674}
675
676pub type mco_device_t_dev_named = mco_device_t___bindgen_ty_1__bindgen_ty_2;
677
678#[repr(C)]
679#[derive(Copy, Clone)]
680pub struct mco_device_t___bindgen_ty_1__bindgen_ty_3 {
681    pub flags: ::std::os::raw::c_int,
682    pub name: [::std::os::raw::c_char; 256usize],
683}
684
685pub type mco_device_t_dev_file = mco_device_t___bindgen_ty_1__bindgen_ty_3;
686
687#[repr(C)]
688#[derive(Copy, Clone)]
689pub struct mco_device_t___bindgen_ty_1__bindgen_ty_4 {
690    pub flags: ::std::os::raw::c_int,
691    pub name: [::std::os::raw::c_char; 64usize],
692    pub segment_size: mco_offs_t,
693}
694
695pub type mco_device_t_dev_multifile = mco_device_t___bindgen_ty_1__bindgen_ty_4;
696
697#[repr(C)]
698#[derive(Copy, Clone)]
699pub struct mco_device_t___bindgen_ty_1__bindgen_ty_5 {
700    pub flags: ::std::os::raw::c_int,
701    pub name: [::std::os::raw::c_char; 64usize],
702    pub level: ::std::os::raw::c_int,
703    pub offset: mco_offs_t,
704}
705
706pub type mco_device_t_dev_raid = mco_device_t___bindgen_ty_1__bindgen_ty_5;
707
708#[repr(C)]
709#[derive(Debug, Copy, Clone)]
710pub struct mco_device_t___bindgen_ty_1__bindgen_ty_6 {
711    pub handle: ::std::os::raw::c_ulong,
712}
713
714pub type mco_device_t_dev_idesc = mco_device_t___bindgen_ty_1__bindgen_ty_6;
715
716#[repr(C)]
717#[derive(Copy, Clone)]
718pub union mco_device_t___bindgen_ty_1 {
719    pub conv: mco_device_t___bindgen_ty_1__bindgen_ty_1,
720    pub named: mco_device_t___bindgen_ty_1__bindgen_ty_2,
721    pub file: mco_device_t___bindgen_ty_1__bindgen_ty_3,
722    pub multifile: mco_device_t___bindgen_ty_1__bindgen_ty_4,
723    pub raid: mco_device_t___bindgen_ty_1__bindgen_ty_5,
724    pub idesc: mco_device_t___bindgen_ty_1__bindgen_ty_6,
725}
726
727pub type mco_device_t_dev = mco_device_t___bindgen_ty_1;
728
729#[repr(C)]
730#[derive(Copy, Clone)]
731pub struct mco_device_t_ {
732    pub type_: ::std::os::raw::c_uint,
733    pub assignment: ::std::os::raw::c_uint,
734    pub size: mco_size_t,
735    pub dev: mco_device_t___bindgen_ty_1,
736}
737
738pub type mco_device_t = mco_device_t_;
739pub type mco_device_h = *mut mco_device_t_;
740
741#[repr(C)]
742#[derive(Debug, Copy, Clone)]
743pub struct mco_dict_class_info_t_ {
744    pub first_index_num: int2,
745    pub last_index_num: int2,
746    pub list_index_num: int2,
747    pub autoid_index_num: int2,
748    pub fixedsize: uint4,
749    pub autoid_offset: uint2,
750    pub history_index_num: int2,
751    pub history_length: uint2,
752    pub history_offset: uint2,
753    pub first_event_num: int2,
754    pub last_event_num: int2,
755    pub flags: uint2,
756    pub struct_ptr: *const mco_dict_struct_t,
757    pub init_size: mco_size_t,
758    pub auto_oid_offset: uint2,
759    pub reserved: uint2,
760}
761
762pub type mco_dict_class_info_t = mco_dict_class_info_t_;
763
764#[repr(C)]
765#[derive(Debug, Copy, Clone)]
766pub struct mco_dict_index_field_t_ {
767    pub field_offset: mco_offs32_t,
768    pub vect_field_offset: mco_offs32_sig_t,
769    pub indicator_offset: mco_offs32_t,
770    pub field_size: uint4,
771    pub field_type: uint1,
772    pub fld_flags: uint1,
773    pub fld_no: uint2,
774    pub collation_id: int2,
775}
776
777pub type mco_dict_index_field_t = mco_dict_index_field_t_;
778
779#[repr(C)]
780#[derive(Debug, Copy, Clone)]
781pub struct mco_dict_index_t_ {
782    pub class_code: uint2,
783    pub impl_no: uint2,
784    pub numof_fields: uint2,
785    pub vect_field_offset: mco_offs32_sig_t,
786    pub flags: uint4,
787    pub fields: *const mco_dict_index_field_t,
788    pub numof_keys_estimate: mco_hash_counter_t,
789    pub userdef_id: int2,
790    pub reserved: int2,
791}
792
793pub type mco_dict_index_t = mco_dict_index_t_;
794
795#[repr(C)]
796#[derive(Debug, Copy, Clone)]
797pub struct mco_dict_event_t_ {
798    pub class_code: uint2,
799    pub flags: uint2,
800    pub field_offset: mco_offs32_t,
801    pub field_size: uint4,
802    pub field_type: uint1,
803    pub fld_no: uint2,
804}
805
806pub type mco_dict_event_t = mco_dict_event_t_;
807
808#[repr(C)]
809#[derive(Debug, Copy, Clone)]
810pub struct mco_dict_collation_t_ {
811    pub name: *const ::std::os::raw::c_char,
812    pub type_: uint1,
813    pub pad1: uint1,
814    pub pad2: uint2,
815}
816
817pub type mco_dict_collation_t = mco_dict_collation_t_;
818
819#[repr(C)]
820#[derive(Debug, Copy, Clone)]
821pub struct mco_datalayout_t_ {
822    pub c_size: uint2,
823    pub c_align: uint2,
824    pub c_offset: uint2,
825    pub u_size: uint4,
826    pub u_align: uint4,
827    pub u_offset: uint4,
828}
829
830pub type mco_datalayout_t = mco_datalayout_t_;
831
832#[repr(C)]
833#[derive(Debug, Copy, Clone)]
834pub struct mco_dict_field_t_ {
835    pub name: *const ::std::os::raw::c_char,
836    pub layout: mco_datalayout_t,
837    pub field_el_type: uint1,
838    pub flags: uint1,
839    pub array_size: uint2,
840    pub struct_num: int4,
841    pub field_size: uint4,
842    pub refto_class: int2,
843    pub init_index: ::std::os::raw::c_uint,
844    pub order_no: uint2,
845    pub no: uint2,
846    pub event_id: uint2,
847    pub indicator: uint2,
848    pub precision: int1,
849    pub seq_order: int1,
850    pub seq_elem_size: int1,
851}
852
853pub type mco_dict_field_t = mco_dict_field_t_;
854
855#[repr(C)]
856#[derive(Debug, Copy, Clone)]
857pub struct mco_dict_struct_t_ {
858    pub name: *const ::std::os::raw::c_char,
859    pub flags: uint2,
860    pub n_fields: uint2,
861    pub fields: *const mco_dict_field_t,
862    pub c_size: uint2,
863    pub c_align: uint2,
864    pub u_size: uint4,
865    pub u_align: uint4,
866}
867
868pub type mco_dict_struct_t = mco_dict_struct_t_;
869
870#[repr(C)]
871#[derive(Copy, Clone)]
872pub union mco_dictionary_t___bindgen_ty_1 {
873    pub ptr: *const int4,
874    pub offs: mco_offs_t,
875}
876
877pub type mco_dictionary_t_init_i_data = mco_dictionary_t___bindgen_ty_1;
878
879#[repr(C)]
880#[derive(Copy, Clone)]
881pub union mco_dictionary_t___bindgen_ty_2 {
882    pub ptr: *const f64,
883    pub offs: mco_offs_t,
884}
885
886pub type mco_dictionary_t_init_d_data = mco_dictionary_t___bindgen_ty_2;
887
888#[cfg(mco_api_ver_ge = "13")]
889#[repr(C)]
890#[derive(Copy, Clone)]
891pub union mco_dictionary_t___bindgen_ty_3 {
892    pub ptr: *mut ::std::os::raw::c_char,
893    pub offs: mco_offs_t,
894}
895
896#[cfg(mco_api_ver_ge = "13")]
897pub type mco_dictionary_t_init_s_data = mco_dictionary_t___bindgen_ty_3;
898
899#[repr(C)]
900#[derive(Copy, Clone)]
901pub struct mco_dictionary_t_ {
902    pub str_class_names: *const *const ::std::os::raw::c_char,
903    pub str_index_names: *const *const ::std::os::raw::c_char,
904    pub version_major: uint2,
905    pub version_minor: uint2,
906    pub version_build: uint2,
907    pub magic_number: uint2,
908    pub flags: uint4,
909    pub oid_is_supported: uint2,
910    pub auto_oid_supported: uint2,
911    pub n_class_codes: uint2,
912    pub n_list_indexes: uint2,
913    pub n_autoid_indexes: uint2,
914    pub n_history_indexes: uint2,
915    pub n_userdef_indexes: uint2,
916    pub max_numof_indexes_per_obj: uint2,
917    pub n_structs: uint2,
918    pub pad: uint2,
919    pub num_oid_estimation: mco_counter32_t,
920    pub num_HA_estimation: mco_counter32_t,
921    pub n_desc_indexes: uint2,
922    pub n_desc_events: uint2,
923    pub n_desc_colls: uint2,
924    pub exact_OID_sizeof: uint2,
925    pub layout_OID_size: uint2,
926    pub v_class_info: *const mco_dict_class_info_t,
927    pub v_desc_indexes: *const mco_dict_index_t,
928    pub v_desc_events: *const mco_dict_event_t,
929    pub v_all_struct: *const mco_dict_struct_t,
930    pub v_desc_colls: *const mco_dict_collation_t,
931    pub sizeof_mco_offs_t: [uint1; 2usize],
932    pub sizeof_mco_size_t: [uint1; 2usize],
933    pub init_i_data: mco_dictionary_t___bindgen_ty_1,
934    pub init_i_data_n: uint4,
935    pub init_d_data: mco_dictionary_t___bindgen_ty_2,
936    pub init_d_data_n: uint4,
937    pub class_code_origin: uint4,
938
939    #[cfg(mco_api_ver_ge = "13")]
940    pub init_s_data: mco_dictionary_t___bindgen_ty_3,
941    #[cfg(mco_api_ver_ge = "13")]
942    pub init_s_data_n: uint4,
943}
944
945pub type mco_dictionary_t = mco_dictionary_t_;
946pub type mco_dictionary_h = *mut mco_dictionary_t_;
947pub type mco_dict_h = *mut mco_dictionary_t_;
948
949#[repr(C)]
950#[derive(Debug, Copy, Clone)]
951pub struct mco_runtime_info_t_ {
952    pub mco_version_major: uint1,
953    pub mco_version_minor: uint1,
954    pub mco_build_number: uint2,
955    pub mco_size_t: uint1,
956    pub mco_offs_t: uint1,
957    pub uint4_supported: uint1,
958    pub float_supported: uint1,
959    pub mco_checklevel: uint1,
960    pub evaluation_version: uint1,
961    pub large_database_supported: uint1,
962    pub collation_supported: uint1,
963    pub heap31_supported: uint1,
964    pub bin_serialization_supported: uint1,
965    pub fixedrec_supported: uint1,
966    pub statistics_supported: uint1,
967    pub events_supported: uint1,
968    pub save_load_supported: uint1,
969    pub object_initialization_supported: uint1,
970    pub direct_index_field_access_supported: uint1,
971    pub multiprocess_access_supported: uint1,
972    pub object_repack_supported: uint1,
973    pub transaction_logging_supported: uint1,
974    pub cluster_supported: uint1,
975    pub high_availability_supported: uint1,
976    pub iot_supported: uint1,
977    pub ha_multicast_supported: uint1,
978    pub ha_incremental_replication_supported: uint1,
979    pub binary_schema_evalution_supported: uint1,
980    pub unicode_supported: uint1,
981    pub wchar_supported: uint1,
982    pub recovery_supported: uint1,
983    pub disk_supported: uint1,
984    pub direct_pointers_supported: uint1,
985    pub persistent_object_supported: uint1,
986    pub xml_import_export_supported: uint1,
987    pub user_defined_index_supported: uint1,
988    pub multifile_supported: uint1,
989    pub multifile_descriptor_supported: uint1,
990    pub two_phase_commit_supported: uint1,
991    pub rtree_supported: uint1,
992    pub tree_based_hash: uint1,
993    pub tmgr_mvcc_async_cleanup: uint1,
994    pub concurent_disk_btree: uint1,
995    pub open_cursor_goto_first: uint1,
996    pub smart_index_insert: uint1,
997    pub btree_leaf_lock: uint1,
998    pub null_statistics: uint1,
999    pub implicit_runtime_start: uint1,
1000    pub bufferized_sync_iostream: uint1,
1001    pub async_replication: uint1,
1002    pub fast_transaction_list: uint1,
1003    pub extendable_dirty_page_bitmap: uint1,
1004    pub mursiw_policy: uint1,
1005    pub sync_capabilities: uint1,
1006    pub char_comparison_policy: uint1,
1007    pub stream_buffer_size: uint4,
1008
1009    #[cfg(mco_api_ver_lt = "14")]
1010    pub max_db_instances: uint1,
1011
1012    #[cfg(mco_api_ver_ge = "14")]
1013    pub max_db_instances: uint2,
1014
1015    pub max_db_name_length: uint1,
1016    pub max_extends: ::std::os::raw::c_int,
1017    pub tl_page_buffer_size: uint4,
1018    pub ha_max_replicas: uint2,
1019    pub ha_transmit_buffer_size: uint4,
1020    pub ha_syncronization_buffer_size: uint4,
1021    pub default_redo_log_limit: uint4,
1022    pub mvcc_critical_sections: uint1,
1023    pub mvcc_per_index_locks: uint1,
1024    pub con_disk_page_cache_size: uint2,
1025    pub small_con_cache_threshold: uint1,
1026    pub extendable_dirty_page_bitmap_limit: uint4,
1027    pub max_vista_sessions: uint1,
1028    pub concurrent_write_transactions: uint1,
1029    pub encryption_support: uint1,
1030    pub backup_support: uint1,
1031    pub mco_revision: *const ::std::os::raw::c_char,
1032}
1033
1034pub type mco_runtime_info_t = mco_runtime_info_t_;
1035
1036extern "C" {
1037    pub fn mco_runtime_start() -> MCO_RET;
1038
1039    pub fn mco_runtime_stop() -> MCO_RET;
1040
1041    pub fn mco_runtime_getoption(option: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1042
1043    pub fn mco_runtime_setoption(option: ::std::os::raw::c_int, value: ::std::os::raw::c_int);
1044
1045    pub fn mco_get_runtime_info(pinf: *mut mco_runtime_info_t);
1046
1047    pub fn mco_db_params_init(params: *mut mco_db_params_t);
1048
1049    pub fn mco_db_open_dev(
1050        db_name: *const ::std::os::raw::c_char,
1051        dict: mco_dictionary_h,
1052        devs: *mut mco_device_t,
1053        n_devs: mco_size_t,
1054        params: *mut mco_db_params_t,
1055    ) -> MCO_RET;
1056
1057    pub fn mco_db_close(db_name: *const ::std::os::raw::c_char) -> MCO_RET;
1058
1059    pub fn mco_db_kill(db_name: *const ::std::os::raw::c_char) -> MCO_RET;
1060
1061    pub fn mco_db_connect(db_name: *const ::std::os::raw::c_char, pdb: *mut mco_db_h) -> MCO_RET;
1062
1063    pub fn mco_db_disconnect(db: mco_db_h) -> MCO_RET;
1064
1065    pub fn mco_strerror(rc: MCO_RET) -> *const ::std::os::raw::c_char;
1066}