pub const LCB_READ_EVENT: u32 = 2;
pub const LCB_WRITE_EVENT: u32 = 4;
pub const LCB_ERROR_EVENT: u32 = 8;
pub const LCB_RW_EVENT: u32 = 6;
pub const LCB_IO_SOCKCHECK_PEND_IS_ERROR: u32 = 1;
pub const LCB_IO_SOCKCHECK_STATUS_CLOSED: u32 = 1;
pub const LCB_IO_SOCKCHECK_STATUS_OK: u32 = 0;
pub const LCB_IO_SOCKCHECK_STATUS_UNKNOWN: i32 = -1;
pub const LCB_IO_CNTL_GET: u32 = 0;
pub const LCB_IO_CNTL_SET: u32 = 1;
pub const LCB_IO_CNTL_TCP_NODELAY: u32 = 1;
pub const LCB_IO_CNTL_TCP_KEEPALIVE: u32 = 2;
pub const LCB_IOPROCS_VERSION: u32 = 4;
pub const LCB_VERSION_STRING: &'static [u8; 6usize] = b"3.0.3\0";
pub const LCB_VERSION: u32 = 0;
pub const LCB_VERSION_CHANGESET: &'static [u8; 11usize] = b"0xdeadbeef\0";
pub const LCB_LOG_UD_OTAG: &'static [u8; 5usize] = b"<ud>\0";
pub const LCB_LOG_UD_CTAG: &'static [u8; 6usize] = b"</ud>\0";
pub const LCB_LOG_MD_OTAG: &'static [u8; 5usize] = b"<md>\0";
pub const LCB_LOG_MD_CTAG: &'static [u8; 6usize] = b"</md>\0";
pub const LCB_LOG_SD_OTAG: &'static [u8; 5usize] = b"<sd>\0";
pub const LCB_LOG_SD_CTAG: &'static [u8; 6usize] = b"</sd>\0";
pub const LCB_CNTL_SET: u32 = 1;
pub const LCB_CNTL_GET: u32 = 0;
pub const LCB_CNTL_OP_TIMEOUT: u32 = 0;
pub const LCB_CNTL_VIEW_TIMEOUT: u32 = 1;
pub const LCB_CNTL_QUERY_TIMEOUT: u32 = 61;
pub const LCB_CNTL_BUCKETNAME: u32 = 48;
pub const LCB_CNTL_BUCKETTYPE: u32 = 72;
pub const LCB_CNTL_HANDLETYPE: u32 = 4;
pub const LCB_CNTL_VBCONFIG: u32 = 5;
pub const LCB_CNTL_IOPS: u32 = 6;
pub const LCB_CNTL_VBMAP: u32 = 7;
pub const LCB_CNTL_IP6POLICY: u32 = 11;
pub const LCB_CNTL_CONFERRTHRESH: u32 = 12;
pub const LCB_CNTL_DURABILITY_TIMEOUT: u32 = 13;
pub const LCB_CNTL_DURABILITY_INTERVAL: u32 = 14;
pub const LCB_CNTL_HTTP_TIMEOUT: u32 = 15;
pub const LCB_CNTL_IOPS_DLOPEN_DEBUG: u32 = 17;
pub const LCB_CNTL_CONFIGURATION_TIMEOUT: u32 = 18;
pub const LCB_CNTL_RANDOMIZE_BOOTSTRAP_HOSTS: u32 = 20;
pub const LCB_CNTL_CONFIG_CACHE_LOADED: u32 = 21;
pub const LCB_CNTL_FORCE_SASL_MECH: u32 = 22;
pub const LCB_CNTL_MAX_REDIRECTS: u32 = 23;
pub const LCB_CNTL_LOGGER: u32 = 24;
pub const LCB_CNTL_CONFDELAY_THRESH: u32 = 25;
pub const LCB_CNTL_CONFIG_TRANSPORT: u32 = 26;
pub const LCB_CNTL_CONFIG_NODE_TIMEOUT: u32 = 27;
pub const LCB_CNTL_HTCONFIG_IDLE_TIMEOUT: u32 = 28;
pub const LCB_CNTL_CHANGESET: u32 = 31;
pub const LCB_CNTL_CONFIGCACHE: u32 = 33;
pub const LCB_CNTL_CONFIGCACHE_RO: u32 = 54;
pub const LCB_CNTL_SSL_MODE: u32 = 34;
pub const LCB_CNTL_SSL_CERT: u32 = 35;
pub const LCB_CNTL_SSL_KEY: u32 = 75;
pub const LCB_CNTL_SSL_TRUSTSTORE: u32 = 77;
pub const LCB_CNTL_SSL_CACERT: u32 = 35;
pub const LCB_CNTL_RETRYMODE: u32 = 36;
pub const LCB_CNTL_HTCONFIG_URLTYPE: u32 = 37;
pub const LCB_CNTL_SYNCDESTROY: u32 = 40;
pub const LCB_CNTL_CONLOGGER_LEVEL: u32 = 41;
pub const LCB_CNTL_CONLOGGER_FP: u32 = 59;
pub const LCB_CNTL_DETAILED_ERRCODES: u32 = 42;
pub const LCB_CNTL_RETRY_INTERVAL: u32 = 44;
pub const LCB_CNTL_RETRY_NMV_IMM: u32 = 55;
pub const LCB_CNTL_HTTP_POOLSIZE: u32 = 46;
pub const LCB_CNTL_HTTP_REFRESH_CONFIG_ON_ERROR: u32 = 47;
pub const LCB_CNTL_SCHED_IMPLICIT_FLUSH: u32 = 49;
pub const LCB_CNTL_ENABLE_MUTATION_TOKENS: u32 = 52;
pub const LCB_CNTL_MUTATION_TOKENS_SUPPORTED: u32 = 56;
pub const LCB_CNTL_RESET_TIMEOUT_ON_WAIT: u32 = 58;
pub const LCB_CNTL_QUERY_CLEARACHE: u32 = 62;
pub const LCB_CNTL_CLIENT_STRING: u32 = 63;
pub const LCB_CNTL_BUCKET_CRED: u32 = 64;
pub const LCB_CNTL_RETRY_NMV_INTERVAL: u32 = 65;
pub const LCB_CNTL_READ_CHUNKSIZE: u32 = 66;
pub const LCB_CNTL_SELECT_BUCKET: u32 = 68;
pub const LCB_CNTL_TCP_KEEPALIVE: u32 = 69;
pub const LCB_CNTL_CONFIG_POLL_INTERVAL: u32 = 70;
pub const LCB_CNTL_LOG_REDACTION: u32 = 76;
pub const LCB_CNTL_ENABLE_TRACING: u32 = 78;
pub const LCB_CNTL_TRACING_ORPHANED_QUEUE_FLUSH_INTERVAL: u32 = 79;
pub const LCB_CNTL_TRACING_ORPHANED_QUEUE_SIZE: u32 = 80;
pub const LCB_CNTL_TRACING_THRESHOLD_QUEUE_FLUSH_INTERVAL: u32 = 81;
pub const LCB_CNTL_TRACING_THRESHOLD_QUEUE_SIZE: u32 = 82;
pub const LCB_CNTL_TRACING_THRESHOLD_KV: u32 = 83;
pub const LCB_CNTL_TRACING_THRESHOLD_QUERY: u32 = 84;
pub const LCB_CNTL_TRACING_THRESHOLD_VIEW: u32 = 85;
pub const LCB_CNTL_TRACING_THRESHOLD_SEARCH: u32 = 86;
pub const LCB_CNTL_TRACING_THRESHOLD_ANALYTICS: u32 = 87;
pub const LCB_CNTL_COMPRESSION_OPTS: u32 = 38;
pub const LCB_CNTL_COMPRESSION_MIN_SIZE: u32 = 88;
pub const LCB_CNTL_COMPRESSION_MIN_RATIO: u32 = 89;
pub const LCB_CNTL_NETWORK: u32 = 91;
pub const LCB_CNTL_HTTP_POOL_TIMEOUT: u32 = 93;
pub const LCB_CNTL_ENABLE_COLLECTIONS: u32 = 74;
pub const LCB_CNTL_ENABLE_DURABLE_WRITE: u32 = 94;
pub const LCB_CNTL_PERSISTENCE_TIMEOUT_FLOOR: u32 = 95;
pub const LCB_CNTL_ALLOW_STATIC_CONFIG: u32 = 96;
pub const LCB_CNTL_ANALYTICS_TIMEOUT: u32 = 97;
pub const LCB_CNTL_ENABLE_UNORDERED_EXECUTION: u32 = 98;
pub const LCB_CNTL__MAX: u32 = 99;
pub const LCB_CNTL_MEMDNODE_INFO: u32 = 8;
pub const LCB_CNTL_CONFIGNODE_INFO: u32 = 9;
pub const LCB_CNTL_IOPS_DEFAULT_TYPES: u32 = 16;
pub const LCB_CNTL_CONFIG_HTTP_NODES: u32 = 29;
pub const LCB_CNTL_CONFIG_CCCP_NODES: u32 = 30;
pub const LCB_CNTL_REINIT_CONNSTR: u32 = 43;
pub const LCB_CNTL_RDBALLOCFACTORY: u32 = 39;
pub const LCB_CNTL_VBGUESS_PERSIST: u32 = 50;
pub const LCB_CNTL_UNSAFE_OPTIMIZE: u32 = 51;
pub const LCB_CNTL_TCP_NODELAY: u32 = 57;
pub const LCB_CNTL_KVTIMINGS: u32 = 60;
pub const LCB_CNTL_METRICS: u32 = 73;
pub const LCB_CNTL_VB_NOREMAP: u32 = 90;
pub const LCB_CNTL_WAIT_FOR_CONFIG: u32 = 92;
pub const LCB_CALLBACK_VIEWQUERY: i32 = -1;
pub const LCB_CALLBACK_QUERY: i32 = -2;
pub const LCB_CALLBACK_IXMGMT: i32 = -3;
pub const LCB_CALLBACK_ANALYTICS: i32 = -4;
pub const LCB_CALLBACK_SEARCH: i32 = -5;
pub const LCB_CALLBACK_OPEN: i32 = -6;
pub const LCB_DATATYPE_JSON: u32 = 1;
pub const LCB_SUPPORTS_SSL: u32 = 1;
pub const LCB_SUPPORTS_SNAPPY: u32 = 2;
pub const LCB_SUPPORTS_TRACING: u32 = 3;
pub const LCB_SUBDOCSPECS_F_MKINTERMEDIATES: u32 = 65536;
pub const LCB_SUBDOCSPECS_F_XATTRPATH: u32 = 262144;
pub const LCB_SUBDOCSPECS_F_XATTR_MACROVALUES: u32 = 524288;
pub const LCB_SUBDOCSPECS_F_XATTR_DELETED_OK: u32 = 1048576;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_st {
_unused: [u8; 0],
}
pub type lcb_INSTANCE = lcb_st;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_HTTP_HANDLE_ {
_unused: [u8; 0],
}
pub type lcb_HTTP_HANDLE = lcb_HTTP_HANDLE_;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_long;
pub type __uint64_t = ::std::os::raw::c_ulong;
pub type __time_t = ::std::os::raw::c_long;
pub type __ssize_t = ::std::os::raw::c_long;
pub type time_t = __time_t;
pub type va_list = __builtin_va_list;
pub type lcb_int64_t = i64;
pub type lcb_int32_t = i32;
pub type lcb_size_t = usize;
pub type lcb_ssize_t = isize;
pub type lcb_vbucket_t = u16;
pub type lcb_uint8_t = u8;
pub type lcb_uint16_t = u16;
pub type lcb_uint32_t = u32;
pub type lcb_uint64_t = u64;
pub type lcb_time_t = time_t;
pub type lcb_S64 = lcb_int64_t;
pub type lcb_U64 = lcb_uint64_t;
pub type lcb_U32 = lcb_uint32_t;
pub type lcb_S32 = lcb_int32_t;
pub type lcb_U16 = lcb_uint16_t;
pub type lcb_U8 = lcb_uint8_t;
pub type lcb_SIZE = lcb_size_t;
pub type lcb_SSIZE = lcb_ssize_t;
pub type lcb_SECS = lcb_time_t;
pub const lcb_ERROR_TYPE_LCB_ERROR_TYPE_SUCCESS: lcb_ERROR_TYPE = 0;
pub const lcb_ERROR_TYPE_LCB_ERROR_TYPE_BASE: lcb_ERROR_TYPE = 1;
pub const lcb_ERROR_TYPE_LCB_ERROR_TYPE_SHARED: lcb_ERROR_TYPE = 2;
pub const lcb_ERROR_TYPE_LCB_ERROR_TYPE_KEYVALUE: lcb_ERROR_TYPE = 3;
pub const lcb_ERROR_TYPE_LCB_ERROR_TYPE_QUERY: lcb_ERROR_TYPE = 4;
pub const lcb_ERROR_TYPE_LCB_ERROR_TYPE_ANALYTICS: lcb_ERROR_TYPE = 5;
pub const lcb_ERROR_TYPE_LCB_ERROR_TYPE_SEARCH: lcb_ERROR_TYPE = 6;
pub const lcb_ERROR_TYPE_LCB_ERROR_TYPE_VIEW: lcb_ERROR_TYPE = 7;
pub const lcb_ERROR_TYPE_LCB_ERROR_TYPE_MANAGEMENT: lcb_ERROR_TYPE = 8;
pub const lcb_ERROR_TYPE_LCB_ERROR_TYPE_SDK: lcb_ERROR_TYPE = 10;
pub type lcb_ERROR_TYPE = u32;
pub const lcb_ERROR_FLAGS_LCB_ERROR_FLAG_NETWORK: lcb_ERROR_FLAGS = 1;
pub const lcb_ERROR_FLAGS_LCB_ERROR_FLAG_SUBDOC: lcb_ERROR_FLAGS = 2;
pub type lcb_ERROR_FLAGS = u32;
pub const lcb_STATUS_LCB_SUCCESS: lcb_STATUS = 0;
pub const lcb_STATUS_LCB_ERR_GENERIC: lcb_STATUS = 100;
pub const lcb_STATUS_LCB_ERR_TIMEOUT: lcb_STATUS = 201;
pub const lcb_STATUS_LCB_ERR_REQUEST_CANCELED: lcb_STATUS = 202;
pub const lcb_STATUS_LCB_ERR_INVALID_ARGUMENT: lcb_STATUS = 203;
pub const lcb_STATUS_LCB_ERR_SERVICE_NOT_AVAILABLE: lcb_STATUS = 204;
pub const lcb_STATUS_LCB_ERR_INTERNAL_SERVER_FAILURE: lcb_STATUS = 205;
pub const lcb_STATUS_LCB_ERR_AUTHENTICATION_FAILURE: lcb_STATUS = 206;
pub const lcb_STATUS_LCB_ERR_TEMPORARY_FAILURE: lcb_STATUS = 207;
pub const lcb_STATUS_LCB_ERR_PARSING_FAILURE: lcb_STATUS = 208;
pub const lcb_STATUS_LCB_ERR_CAS_MISMATCH: lcb_STATUS = 209;
pub const lcb_STATUS_LCB_ERR_BUCKET_NOT_FOUND: lcb_STATUS = 210;
pub const lcb_STATUS_LCB_ERR_COLLECTION_NOT_FOUND: lcb_STATUS = 211;
pub const lcb_STATUS_LCB_ERR_ENCODING_FAILURE: lcb_STATUS = 212;
pub const lcb_STATUS_LCB_ERR_DECODING_FAILURE: lcb_STATUS = 213;
pub const lcb_STATUS_LCB_ERR_UNSUPPORTED_OPERATION: lcb_STATUS = 214;
pub const lcb_STATUS_LCB_ERR_AMBIGUOUS_TIMEOUT: lcb_STATUS = 215;
pub const lcb_STATUS_LCB_ERR_UNAMBIGUOUS_TIMEOUT: lcb_STATUS = 216;
pub const lcb_STATUS_LCB_ERR_SCOPE_NOT_FOUND: lcb_STATUS = 217;
pub const lcb_STATUS_LCB_ERR_INDEX_NOT_FOUND: lcb_STATUS = 218;
pub const lcb_STATUS_LCB_ERR_INDEX_EXISTS: lcb_STATUS = 219;
pub const lcb_STATUS_LCB_ERR_DOCUMENT_NOT_FOUND: lcb_STATUS = 301;
pub const lcb_STATUS_LCB_ERR_DOCUMENT_UNRETRIEVABLE: lcb_STATUS = 302;
pub const lcb_STATUS_LCB_ERR_DOCUMENT_LOCKED: lcb_STATUS = 303;
pub const lcb_STATUS_LCB_ERR_VALUE_TOO_LARGE: lcb_STATUS = 304;
pub const lcb_STATUS_LCB_ERR_DOCUMENT_EXISTS: lcb_STATUS = 305;
pub const lcb_STATUS_LCB_ERR_VALUE_NOT_JSON: lcb_STATUS = 306;
pub const lcb_STATUS_LCB_ERR_DURABILITY_LEVEL_NOT_AVAILABLE: lcb_STATUS = 307;
pub const lcb_STATUS_LCB_ERR_DURABILITY_IMPOSSIBLE: lcb_STATUS = 308;
pub const lcb_STATUS_LCB_ERR_DURABILITY_AMBIGUOUS: lcb_STATUS = 309;
pub const lcb_STATUS_LCB_ERR_DURABLE_WRITE_IN_PROGRESS: lcb_STATUS = 310;
pub const lcb_STATUS_LCB_ERR_DURABLE_WRITE_RE_COMMIT_IN_PROGRESS: lcb_STATUS = 311;
pub const lcb_STATUS_LCB_ERR_MUTATION_LOST: lcb_STATUS = 312;
pub const lcb_STATUS_LCB_ERR_SUBDOC_PATH_NOT_FOUND: lcb_STATUS = 313;
pub const lcb_STATUS_LCB_ERR_SUBDOC_PATH_MISMATCH: lcb_STATUS = 314;
pub const lcb_STATUS_LCB_ERR_SUBDOC_PATH_INVALID: lcb_STATUS = 315;
pub const lcb_STATUS_LCB_ERR_SUBDOC_PATH_TOO_BIG: lcb_STATUS = 316;
pub const lcb_STATUS_LCB_ERR_SUBDOC_PATH_TOO_DEEP: lcb_STATUS = 317;
pub const lcb_STATUS_LCB_ERR_SUBDOC_VALUE_TOO_DEEP: lcb_STATUS = 318;
pub const lcb_STATUS_LCB_ERR_SUBDOC_VALUE_INVALID: lcb_STATUS = 319;
pub const lcb_STATUS_LCB_ERR_SUBDOC_DOCUMENT_NOT_JSON: lcb_STATUS = 320;
pub const lcb_STATUS_LCB_ERR_SUBDOC_NUMBER_TOO_BIG: lcb_STATUS = 321;
pub const lcb_STATUS_LCB_ERR_SUBDOC_DELTA_INVALID: lcb_STATUS = 322;
pub const lcb_STATUS_LCB_ERR_SUBDOC_PATH_EXISTS: lcb_STATUS = 323;
pub const lcb_STATUS_LCB_ERR_SUBDOC_XATTR_UNKNOWN_MACRO: lcb_STATUS = 324;
pub const lcb_STATUS_LCB_ERR_SUBDOC_XATTR_INVALID_FLAG_COMBO: lcb_STATUS = 325;
pub const lcb_STATUS_LCB_ERR_SUBDOC_XATTR_INVALID_KEY_COMBO: lcb_STATUS = 326;
pub const lcb_STATUS_LCB_ERR_SUBDOC_XATTR_UNKNOWN_VIRTUAL_ATTRIBUTE: lcb_STATUS = 327;
pub const lcb_STATUS_LCB_ERR_SUBDOC_XATTR_CANNOT_MODIFY_VIRTUAL_ATTRIBUTE: lcb_STATUS = 328;
pub const lcb_STATUS_LCB_ERR_SUBDOC_XATTR_INVALID_ORDER: lcb_STATUS = 329;
pub const lcb_STATUS_LCB_ERR_PLANNING_FAILURE: lcb_STATUS = 401;
pub const lcb_STATUS_LCB_ERR_INDEX_FAILURE: lcb_STATUS = 402;
pub const lcb_STATUS_LCB_ERR_PREPARED_STATEMENT_FAILURE: lcb_STATUS = 403;
pub const lcb_STATUS_LCB_ERR_COMPILATION_FAILED: lcb_STATUS = 501;
pub const lcb_STATUS_LCB_ERR_JOB_QUEUE_FULL: lcb_STATUS = 502;
pub const lcb_STATUS_LCB_ERR_DATASET_NOT_FOUND: lcb_STATUS = 503;
pub const lcb_STATUS_LCB_ERR_DATAVERSE_NOT_FOUND: lcb_STATUS = 504;
pub const lcb_STATUS_LCB_ERR_DATASET_EXISTS: lcb_STATUS = 505;
pub const lcb_STATUS_LCB_ERR_DATAVERSE_EXISTS: lcb_STATUS = 506;
pub const lcb_STATUS_LCB_ERR_ANALYTICS_LINK_NOT_FOUND: lcb_STATUS = 507;
pub const lcb_STATUS_LCB_ERR_VIEW_NOT_FOUND: lcb_STATUS = 701;
pub const lcb_STATUS_LCB_ERR_DESIGN_DOCUMENT_NOT_FOUND: lcb_STATUS = 702;
pub const lcb_STATUS_LCB_ERR_COLLECTION_ALREADY_EXISTS: lcb_STATUS = 801;
pub const lcb_STATUS_LCB_ERR_SCOPE_EXISTS: lcb_STATUS = 802;
pub const lcb_STATUS_LCB_ERR_USER_NOT_FOUND: lcb_STATUS = 803;
pub const lcb_STATUS_LCB_ERR_GROUP_NOT_FOUND: lcb_STATUS = 804;
pub const lcb_STATUS_LCB_ERR_BUCKET_ALREADY_EXISTS: lcb_STATUS = 805;
pub const lcb_STATUS_LCB_ERR_SSL_INVALID_CIPHERSUITES: lcb_STATUS = 1000;
pub const lcb_STATUS_LCB_ERR_SSL_NO_CIPHERS: lcb_STATUS = 1001;
pub const lcb_STATUS_LCB_ERR_SSL_ERROR: lcb_STATUS = 1002;
pub const lcb_STATUS_LCB_ERR_SSL_CANTVERIFY: lcb_STATUS = 1003;
pub const lcb_STATUS_LCB_ERR_FD_LIMIT_REACHED: lcb_STATUS = 1004;
pub const lcb_STATUS_LCB_ERR_NODE_UNREACHABLE: lcb_STATUS = 1005;
pub const lcb_STATUS_LCB_ERR_CONTROL_UNKNOWN_CODE: lcb_STATUS = 1006;
pub const lcb_STATUS_LCB_ERR_CONTROL_UNSUPPORTED_MODE: lcb_STATUS = 1007;
pub const lcb_STATUS_LCB_ERR_CONTROL_INVALID_ARGUMENT: lcb_STATUS = 1008;
pub const lcb_STATUS_LCB_ERR_DUPLICATE_COMMANDS: lcb_STATUS = 1009;
pub const lcb_STATUS_LCB_ERR_NO_MATCHING_SERVER: lcb_STATUS = 1010;
pub const lcb_STATUS_LCB_ERR_PLUGIN_VERSION_MISMATCH: lcb_STATUS = 1011;
pub const lcb_STATUS_LCB_ERR_INVALID_HOST_FORMAT: lcb_STATUS = 1012;
pub const lcb_STATUS_LCB_ERR_INVALID_CHAR: lcb_STATUS = 1013;
pub const lcb_STATUS_LCB_ERR_BAD_ENVIRONMENT: lcb_STATUS = 1014;
pub const lcb_STATUS_LCB_ERR_NO_MEMORY: lcb_STATUS = 1015;
pub const lcb_STATUS_LCB_ERR_NO_CONFIGURATION: lcb_STATUS = 1016;
pub const lcb_STATUS_LCB_ERR_DLOPEN_FAILED: lcb_STATUS = 1017;
pub const lcb_STATUS_LCB_ERR_DLSYM_FAILED: lcb_STATUS = 1018;
pub const lcb_STATUS_LCB_ERR_CONFIG_CACHE_INVALID: lcb_STATUS = 1019;
pub const lcb_STATUS_LCB_ERR_COLLECTION_MANIFEST_IS_AHEAD: lcb_STATUS = 1020;
pub const lcb_STATUS_LCB_ERR_COLLECTION_NO_MANIFEST: lcb_STATUS = 1021;
pub const lcb_STATUS_LCB_ERR_COLLECTION_CANNOT_APPLY_MANIFEST: lcb_STATUS = 1022;
pub const lcb_STATUS_LCB_ERR_AUTH_CONTINUE: lcb_STATUS = 1023;
pub const lcb_STATUS_LCB_ERR_CONNECTION_REFUSED: lcb_STATUS = 1024;
pub const lcb_STATUS_LCB_ERR_SOCKET_SHUTDOWN: lcb_STATUS = 1025;
pub const lcb_STATUS_LCB_ERR_CONNECTION_RESET: lcb_STATUS = 1026;
pub const lcb_STATUS_LCB_ERR_CANNOT_GET_PORT: lcb_STATUS = 1027;
pub const lcb_STATUS_LCB_ERR_INCOMPLETE_PACKET: lcb_STATUS = 1028;
pub const lcb_STATUS_LCB_ERR_SDK_FEATURE_UNAVAILABLE: lcb_STATUS = 1029;
pub const lcb_STATUS_LCB_ERR_OPTIONS_CONFLICT: lcb_STATUS = 1030;
pub const lcb_STATUS_LCB_ERR_KVENGINE_INVALID_PACKET: lcb_STATUS = 1031;
pub const lcb_STATUS_LCB_ERR_DURABILITY_TOO_MANY: lcb_STATUS = 1032;
pub const lcb_STATUS_LCB_ERR_SHEDULE_FAILURE: lcb_STATUS = 1033;
pub const lcb_STATUS_LCB_ERR_DURABILITY_NO_MUTATION_TOKENS: lcb_STATUS = 1034;
pub const lcb_STATUS_LCB_ERR_SASLMECH_UNAVAILABLE: lcb_STATUS = 1035;
pub const lcb_STATUS_LCB_ERR_TOO_MANY_REDIRECTS: lcb_STATUS = 1036;
pub const lcb_STATUS_LCB_ERR_MAP_CHANGED: lcb_STATUS = 1037;
pub const lcb_STATUS_LCB_ERR_NOT_MY_VBUCKET: lcb_STATUS = 1038;
pub const lcb_STATUS_LCB_ERR_UNKNOWN_SUBDOC_COMMAND: lcb_STATUS = 1039;
pub const lcb_STATUS_LCB_ERR_KVENGINE_UNKNOWN_ERROR: lcb_STATUS = 1040;
pub const lcb_STATUS_LCB_ERR_NAMESERVER: lcb_STATUS = 1041;
pub const lcb_STATUS_LCB_ERR_INVALID_RANGE: lcb_STATUS = 1042;
pub const lcb_STATUS_LCB_ERR_NOT_STORED: lcb_STATUS = 1043;
pub const lcb_STATUS_LCB_ERR_BUSY: lcb_STATUS = 1044;
pub const lcb_STATUS_LCB_ERR_SDK_INTERNAL: lcb_STATUS = 1045;
pub const lcb_STATUS_LCB_ERR_INVALID_DELTA: lcb_STATUS = 1046;
pub const lcb_STATUS_LCB_ERR_NO_COMMANDS: lcb_STATUS = 1047;
pub const lcb_STATUS_LCB_ERR_NETWORK: lcb_STATUS = 1048;
pub const lcb_STATUS_LCB_ERR_UNKNOWN_HOST: lcb_STATUS = 1049;
pub const lcb_STATUS_LCB_ERR_PROTOCOL_ERROR: lcb_STATUS = 1050;
pub const lcb_STATUS_LCB_ERR_CONNECT_ERROR: lcb_STATUS = 1051;
pub const lcb_STATUS_LCB_ERR_EMPTY_KEY: lcb_STATUS = 1052;
pub const lcb_STATUS_LCB_ERR_HTTP: lcb_STATUS = 1053;
pub const lcb_STATUS_LCB_ERR_QUERY: lcb_STATUS = 1054;
pub const lcb_STATUS_LCB_ERR_TOPOLOGY_CHANGE: lcb_STATUS = 1055;
pub const lcb_STATUS_LCB_MAX_ERROR: lcb_STATUS = 2000;
pub type lcb_STATUS = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_KEY_VALUE_ERROR_CONTEXT_ {
_unused: [u8; 0],
}
pub type lcb_KEY_VALUE_ERROR_CONTEXT = lcb_KEY_VALUE_ERROR_CONTEXT_;
extern "C" {
pub fn lcb_errctx_kv_rc(ctx: *const lcb_KEY_VALUE_ERROR_CONTEXT) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_kv_status_code(
ctx: *const lcb_KEY_VALUE_ERROR_CONTEXT,
status_code: *mut u16,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_kv_opaque(
ctx: *const lcb_KEY_VALUE_ERROR_CONTEXT,
opaque: *mut u32,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_kv_cas(ctx: *const lcb_KEY_VALUE_ERROR_CONTEXT, cas: *mut u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_kv_key(
ctx: *const lcb_KEY_VALUE_ERROR_CONTEXT,
key: *mut *const ::std::os::raw::c_char,
key_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_kv_bucket(
ctx: *const lcb_KEY_VALUE_ERROR_CONTEXT,
bucket: *mut *const ::std::os::raw::c_char,
bucket_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_kv_collection(
ctx: *const lcb_KEY_VALUE_ERROR_CONTEXT,
collection: *mut *const ::std::os::raw::c_char,
collection_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_kv_scope(
ctx: *const lcb_KEY_VALUE_ERROR_CONTEXT,
scope: *mut *const ::std::os::raw::c_char,
scope_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_kv_context(
ctx: *const lcb_KEY_VALUE_ERROR_CONTEXT,
context: *mut *const ::std::os::raw::c_char,
context_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_kv_ref(
ctx: *const lcb_KEY_VALUE_ERROR_CONTEXT,
ref_: *mut *const ::std::os::raw::c_char,
ref_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_kv_endpoint(
ctx: *const lcb_KEY_VALUE_ERROR_CONTEXT,
endpoint: *mut *const ::std::os::raw::c_char,
endpoint_len: *mut usize,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_QUERY_ERROR_CONTEXT_ {
_unused: [u8; 0],
}
pub type lcb_QUERY_ERROR_CONTEXT = lcb_QUERY_ERROR_CONTEXT_;
extern "C" {
pub fn lcb_errctx_query_rc(ctx: *const lcb_QUERY_ERROR_CONTEXT) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_query_first_error_code(
ctx: *const lcb_QUERY_ERROR_CONTEXT,
code: *mut u32,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_query_first_error_message(
ctx: *const lcb_QUERY_ERROR_CONTEXT,
message: *mut *const ::std::os::raw::c_char,
message_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_query_statement(
ctx: *const lcb_QUERY_ERROR_CONTEXT,
statement: *mut *const ::std::os::raw::c_char,
statement_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_query_client_context_id(
ctx: *const lcb_QUERY_ERROR_CONTEXT,
id: *mut *const ::std::os::raw::c_char,
id_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_query_query_params(
ctx: *const lcb_QUERY_ERROR_CONTEXT,
params: *mut *const ::std::os::raw::c_char,
params_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_query_http_response_code(
ctx: *const lcb_QUERY_ERROR_CONTEXT,
code: *mut u32,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_query_http_response_body(
ctx: *const lcb_QUERY_ERROR_CONTEXT,
body: *mut *const ::std::os::raw::c_char,
body_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_query_endpoint(
ctx: *const lcb_QUERY_ERROR_CONTEXT,
endpoint: *mut *const ::std::os::raw::c_char,
endpoint_len: *mut usize,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_ANALYTICS_ERROR_CONTEXT_ {
_unused: [u8; 0],
}
pub type lcb_ANALYTICS_ERROR_CONTEXT = lcb_ANALYTICS_ERROR_CONTEXT_;
extern "C" {
pub fn lcb_errctx_analytics_rc(ctx: *const lcb_ANALYTICS_ERROR_CONTEXT) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_analytics_first_error_code(
ctx: *const lcb_ANALYTICS_ERROR_CONTEXT,
code: *mut u32,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_analytics_first_error_message(
ctx: *const lcb_ANALYTICS_ERROR_CONTEXT,
message: *mut *const ::std::os::raw::c_char,
message_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_analytics_statement(
ctx: *const lcb_ANALYTICS_ERROR_CONTEXT,
statement: *mut *const ::std::os::raw::c_char,
statement_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_analytics_query_params(
ctx: *const lcb_ANALYTICS_ERROR_CONTEXT,
query_params: *mut *const ::std::os::raw::c_char,
query_params_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_analytics_client_context_id(
ctx: *const lcb_ANALYTICS_ERROR_CONTEXT,
id: *mut *const ::std::os::raw::c_char,
id_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_analytics_http_response_code(
ctx: *const lcb_ANALYTICS_ERROR_CONTEXT,
code: *mut u32,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_analytics_http_response_body(
ctx: *const lcb_ANALYTICS_ERROR_CONTEXT,
body: *mut *const ::std::os::raw::c_char,
body_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_analytics_endpoint(
ctx: *const lcb_ANALYTICS_ERROR_CONTEXT,
endpoint: *mut *const ::std::os::raw::c_char,
endpoint_len: *mut usize,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_VIEW_ERROR_CONTEXT_ {
_unused: [u8; 0],
}
pub type lcb_VIEW_ERROR_CONTEXT = lcb_VIEW_ERROR_CONTEXT_;
extern "C" {
pub fn lcb_errctx_view_rc(ctx: *const lcb_VIEW_ERROR_CONTEXT) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_view_first_error_code(
ctx: *const lcb_VIEW_ERROR_CONTEXT,
code: *mut *const ::std::os::raw::c_char,
code_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_view_first_error_message(
ctx: *const lcb_VIEW_ERROR_CONTEXT,
message: *mut *const ::std::os::raw::c_char,
message_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_view_design_document(
ctx: *const lcb_VIEW_ERROR_CONTEXT,
name: *mut *const ::std::os::raw::c_char,
name_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_view_view(
ctx: *const lcb_VIEW_ERROR_CONTEXT,
name: *mut *const ::std::os::raw::c_char,
name_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_view_query_params(
ctx: *const lcb_VIEW_ERROR_CONTEXT,
params: *mut *const ::std::os::raw::c_char,
params_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_view_http_response_code(
ctx: *const lcb_VIEW_ERROR_CONTEXT,
code: *mut u32,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_view_http_response_body(
ctx: *const lcb_VIEW_ERROR_CONTEXT,
body: *mut *const ::std::os::raw::c_char,
body_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_view_endpoint(
ctx: *const lcb_VIEW_ERROR_CONTEXT,
endpoint: *mut *const ::std::os::raw::c_char,
endpoint_len: *mut usize,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_SEARCH_ERROR_CONTEXT_ {
_unused: [u8; 0],
}
pub type lcb_SEARCH_ERROR_CONTEXT = lcb_SEARCH_ERROR_CONTEXT_;
extern "C" {
pub fn lcb_errctx_search_rc(ctx: *const lcb_SEARCH_ERROR_CONTEXT) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_search_error_message(
ctx: *const lcb_SEARCH_ERROR_CONTEXT,
message: *mut *const ::std::os::raw::c_char,
message_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_search_index_name(
ctx: *const lcb_SEARCH_ERROR_CONTEXT,
name: *mut *const ::std::os::raw::c_char,
name_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_search_query(
ctx: *const lcb_SEARCH_ERROR_CONTEXT,
query: *mut *const ::std::os::raw::c_char,
query_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_search_params(
ctx: *const lcb_SEARCH_ERROR_CONTEXT,
params: *mut *const ::std::os::raw::c_char,
params_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_search_http_response_code(
ctx: *const lcb_SEARCH_ERROR_CONTEXT,
code: *mut u32,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_search_http_response_body(
ctx: *const lcb_SEARCH_ERROR_CONTEXT,
body: *mut *const ::std::os::raw::c_char,
body_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_search_endpoint(
ctx: *const lcb_SEARCH_ERROR_CONTEXT,
endpoint: *mut *const ::std::os::raw::c_char,
endpoint_len: *mut usize,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_HTTP_ERROR_CONTEXT_ {
_unused: [u8; 0],
}
pub type lcb_HTTP_ERROR_CONTEXT = lcb_HTTP_ERROR_CONTEXT_;
extern "C" {
pub fn lcb_errctx_http_rc(ctx: *const lcb_HTTP_ERROR_CONTEXT) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_http_path(
ctx: *const lcb_HTTP_ERROR_CONTEXT,
path: *mut *const ::std::os::raw::c_char,
path_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_http_response_code(
ctx: *const lcb_HTTP_ERROR_CONTEXT,
code: *mut u32,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_http_response_body(
ctx: *const lcb_HTTP_ERROR_CONTEXT,
body: *mut *const ::std::os::raw::c_char,
body_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_errctx_http_endpoint(
ctx: *const lcb_HTTP_ERROR_CONTEXT,
endpoint: *mut *const ::std::os::raw::c_char,
endpoint_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_error_flags(err: lcb_STATUS) -> u32;
}
extern "C" {
pub fn lcb_strerror_short(error: lcb_STATUS) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn lcb_strerror_long(error: lcb_STATUS) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn lcb_errmap_default(instance: *mut lcb_INSTANCE, code: lcb_U16) -> lcb_STATUS;
}
pub type lcb_errmap_callback = ::std::option::Option<
unsafe extern "C" fn(instance: *mut lcb_INSTANCE, bincode: lcb_U16) -> lcb_STATUS,
>;
extern "C" {
pub fn lcb_set_errmap_callback(
instance: *mut lcb_INSTANCE,
arg1: lcb_errmap_callback,
) -> lcb_errmap_callback;
}
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_UNKNOWN: lcb_RETRY_REASON = 0;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_SOCKET_NOT_AVAILABLE: lcb_RETRY_REASON = 1;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_SERVICE_NOT_AVAILABLE: lcb_RETRY_REASON = 2;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_NODE_NOT_AVAILABLE: lcb_RETRY_REASON = 3;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_KV_NOT_MY_VBUCKET: lcb_RETRY_REASON = 4;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_KV_COLLECTION_OUTDATED: lcb_RETRY_REASON = 5;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_KV_ERROR_MAP_RETRY_INDICATED: lcb_RETRY_REASON = 6;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_KV_LOCKED: lcb_RETRY_REASON = 7;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_KV_TEMPORARY_FAILURE: lcb_RETRY_REASON = 8;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_KV_SYNC_WRITE_IN_PROGRESS: lcb_RETRY_REASON = 9;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_KV_SYNC_WRITE_RE_COMMIT_IN_PROGRESS: lcb_RETRY_REASON =
10;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_SERVICE_RESPONSE_CODE_INDICATED: lcb_RETRY_REASON = 11;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_SOCKET_CLOSED_WHILE_IN_FLIGHT: lcb_RETRY_REASON = 12;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_CIRCUIT_BREAKER_OPEN: lcb_RETRY_REASON = 13;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_QUERY_PREPARED_STATEMENT_FAILURE: lcb_RETRY_REASON = 14;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_ANALYTICS_TEMPORARY_FAILURE: lcb_RETRY_REASON = 15;
pub const lcb_RETRY_REASON_LCB_RETRY_REASON_SEARCH_TOO_MANY_REQUESTS: lcb_RETRY_REASON = 16;
pub type lcb_RETRY_REASON = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RETRY_REQUEST_ {
_unused: [u8; 0],
}
pub type lcb_RETRY_REQUEST = lcb_RETRY_REQUEST_;
extern "C" {
pub fn lcb_retry_reason_allows_non_idempotent_retry(
code: lcb_RETRY_REASON,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcb_retry_reason_is_always_retry(code: lcb_RETRY_REASON) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcb_retry_request_is_idempotent(req: *mut lcb_RETRY_REQUEST) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcb_retry_request_retry_attempts(req: *mut lcb_RETRY_REQUEST) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcb_retry_request_operation_cookie(
req: *mut lcb_RETRY_REQUEST,
) -> *mut ::std::os::raw::c_void;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RETRY_ACTION {
pub should_retry: u32,
pub retry_after_ms: u32,
}
#[test]
fn bindgen_test_layout_lcb_RETRY_ACTION() {
assert_eq!(
::std::mem::size_of::<lcb_RETRY_ACTION>(),
8usize,
concat!("Size of: ", stringify!(lcb_RETRY_ACTION))
);
assert_eq!(
::std::mem::align_of::<lcb_RETRY_ACTION>(),
4usize,
concat!("Alignment of ", stringify!(lcb_RETRY_ACTION))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_RETRY_ACTION>())).should_retry as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_RETRY_ACTION),
"::",
stringify!(should_retry)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_RETRY_ACTION>())).retry_after_ms as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(lcb_RETRY_ACTION),
"::",
stringify!(retry_after_ms)
)
);
}
pub type lcb_RETRY_STRATEGY = ::std::option::Option<
unsafe extern "C" fn(req: *mut lcb_RETRY_REQUEST, reason: lcb_RETRY_REASON) -> lcb_RETRY_ACTION,
>;
extern "C" {
pub fn lcb_retry_strategy(
instance: *mut lcb_INSTANCE,
strategy: lcb_RETRY_STRATEGY,
) -> lcb_STATUS;
}
pub type lcb_socket_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_iovec_st {
pub iov_base: *mut ::std::os::raw::c_void,
pub iov_len: usize,
}
#[test]
fn bindgen_test_layout_lcb_iovec_st() {
assert_eq!(
::std::mem::size_of::<lcb_iovec_st>(),
16usize,
concat!("Size of: ", stringify!(lcb_iovec_st))
);
assert_eq!(
::std::mem::align_of::<lcb_iovec_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_iovec_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iovec_st>())).iov_base as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_iovec_st),
"::",
stringify!(iov_base)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iovec_st>())).iov_len as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_iovec_st),
"::",
stringify!(iov_len)
)
);
}
pub type lcb_IOV = lcb_iovec_st;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_nameinfo_st {
pub local: lcb_nameinfo_st__bindgen_ty_1,
pub remote: lcb_nameinfo_st__bindgen_ty_2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_nameinfo_st__bindgen_ty_1 {
pub name: *mut sockaddr,
pub len: *mut ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_lcb_nameinfo_st__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcb_nameinfo_st__bindgen_ty_1>(),
16usize,
concat!("Size of: ", stringify!(lcb_nameinfo_st__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<lcb_nameinfo_st__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(lcb_nameinfo_st__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_nameinfo_st__bindgen_ty_1>())).name as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_nameinfo_st__bindgen_ty_1),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_nameinfo_st__bindgen_ty_1>())).len as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_nameinfo_st__bindgen_ty_1),
"::",
stringify!(len)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_nameinfo_st__bindgen_ty_2 {
pub name: *mut sockaddr,
pub len: *mut ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_lcb_nameinfo_st__bindgen_ty_2() {
assert_eq!(
::std::mem::size_of::<lcb_nameinfo_st__bindgen_ty_2>(),
16usize,
concat!("Size of: ", stringify!(lcb_nameinfo_st__bindgen_ty_2))
);
assert_eq!(
::std::mem::align_of::<lcb_nameinfo_st__bindgen_ty_2>(),
8usize,
concat!("Alignment of ", stringify!(lcb_nameinfo_st__bindgen_ty_2))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_nameinfo_st__bindgen_ty_2>())).name as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_nameinfo_st__bindgen_ty_2),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_nameinfo_st__bindgen_ty_2>())).len as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_nameinfo_st__bindgen_ty_2),
"::",
stringify!(len)
)
);
}
#[test]
fn bindgen_test_layout_lcb_nameinfo_st() {
assert_eq!(
::std::mem::size_of::<lcb_nameinfo_st>(),
32usize,
concat!("Size of: ", stringify!(lcb_nameinfo_st))
);
assert_eq!(
::std::mem::align_of::<lcb_nameinfo_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_nameinfo_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_nameinfo_st>())).local as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_nameinfo_st),
"::",
stringify!(local)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_nameinfo_st>())).remote as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_nameinfo_st),
"::",
stringify!(remote)
)
);
}
pub type lcb_io_opt_t = *mut lcb_io_opt_st;
pub type lcb_ioE_callback = ::std::option::Option<
unsafe extern "C" fn(
sock: lcb_socket_t,
events: ::std::os::raw::c_short,
uarg: *mut ::std::os::raw::c_void,
),
>;
pub type lcb_io_timer_create_fn =
::std::option::Option<unsafe extern "C" fn(iops: lcb_io_opt_t) -> *mut ::std::os::raw::c_void>;
pub type lcb_io_timer_destroy_fn = ::std::option::Option<
unsafe extern "C" fn(iops: lcb_io_opt_t, timer: *mut ::std::os::raw::c_void),
>;
pub type lcb_io_timer_cancel_fn = ::std::option::Option<
unsafe extern "C" fn(iops: lcb_io_opt_t, timer: *mut ::std::os::raw::c_void),
>;
pub type lcb_io_timer_schedule_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
timer: *mut ::std::os::raw::c_void,
usecs: lcb_U32,
uarg: *mut ::std::os::raw::c_void,
callback: lcb_ioE_callback,
) -> ::std::os::raw::c_int,
>;
pub type lcb_ioE_event_create_fn =
::std::option::Option<unsafe extern "C" fn(iops: lcb_io_opt_t) -> *mut ::std::os::raw::c_void>;
pub type lcb_ioE_event_destroy_fn = ::std::option::Option<
unsafe extern "C" fn(iops: lcb_io_opt_t, event: *mut ::std::os::raw::c_void),
>;
pub type lcb_ioE_event_cancel_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sock: lcb_socket_t,
event: *mut ::std::os::raw::c_void,
),
>;
pub type lcb_ioE_event_watch_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
socket: lcb_socket_t,
event: *mut ::std::os::raw::c_void,
evflags: ::std::os::raw::c_short,
uarg: *mut ::std::os::raw::c_void,
callback: lcb_ioE_callback,
) -> ::std::os::raw::c_int,
>;
pub type lcb_ioE_recv_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sock: lcb_socket_t,
target_buf: *mut ::std::os::raw::c_void,
buflen: lcb_SIZE,
_unused_flags: ::std::os::raw::c_int,
) -> lcb_SSIZE,
>;
pub type lcb_ioE_send_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sock: lcb_socket_t,
srcbuf: *const ::std::os::raw::c_void,
buflen: lcb_SIZE,
_ignored: ::std::os::raw::c_int,
) -> lcb_SSIZE,
>;
pub type lcb_ioE_recvv_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sock: lcb_socket_t,
iov: *mut lcb_IOV,
niov: lcb_SIZE,
) -> lcb_SSIZE,
>;
pub type lcb_ioE_sendv_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sock: lcb_socket_t,
iov: *mut lcb_IOV,
niov: lcb_SIZE,
) -> lcb_SSIZE,
>;
pub type lcb_ioE_socket_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
domain: ::std::os::raw::c_int,
type_: ::std::os::raw::c_int,
protocol: ::std::os::raw::c_int,
) -> lcb_socket_t,
>;
pub type lcb_ioE_connect_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sock: lcb_socket_t,
dst: *const sockaddr,
addrlen: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int,
>;
pub type lcb_ioE_bind_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sock: lcb_socket_t,
srcaddr: *const sockaddr,
addrlen: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int,
>;
pub type lcb_ioE_listen_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
bound_sock: lcb_socket_t,
queuelen: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int,
>;
pub type lcb_ioE_accept_fn = ::std::option::Option<
unsafe extern "C" fn(iops: lcb_io_opt_t, lsnsock: lcb_socket_t) -> lcb_socket_t,
>;
pub type lcb_ioE_close_fn =
::std::option::Option<unsafe extern "C" fn(iops: lcb_io_opt_t, sock: lcb_socket_t)>;
pub type lcb_ioE_chkclosed_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sock: lcb_socket_t,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>;
pub type lcb_ioE_cntl_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sock: lcb_socket_t,
mode: ::std::os::raw::c_int,
option: ::std::os::raw::c_int,
arg: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ringbuffer_st {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_connection_st {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcbio_SOCKET {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_buf_info {
pub root: *mut ::std::os::raw::c_char,
pub size: lcb_SIZE,
pub ringbuffer: *mut ringbuffer_st,
pub iov: [lcb_iovec_st; 2usize],
}
#[test]
fn bindgen_test_layout_lcb_buf_info() {
assert_eq!(
::std::mem::size_of::<lcb_buf_info>(),
56usize,
concat!("Size of: ", stringify!(lcb_buf_info))
);
assert_eq!(
::std::mem::align_of::<lcb_buf_info>(),
8usize,
concat!("Alignment of ", stringify!(lcb_buf_info))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_buf_info>())).root as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_buf_info),
"::",
stringify!(root)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_buf_info>())).size as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_buf_info),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_buf_info>())).ringbuffer as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_buf_info),
"::",
stringify!(ringbuffer)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_buf_info>())).iov as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lcb_buf_info),
"::",
stringify!(iov)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_sockdata_st {
pub socket: lcb_socket_t,
pub parent: lcb_io_opt_t,
pub lcbconn: *mut lcbio_SOCKET,
pub closed: ::std::os::raw::c_int,
pub is_reading: ::std::os::raw::c_int,
pub read_buffer: lcb_buf_info,
}
#[test]
fn bindgen_test_layout_lcb_sockdata_st() {
assert_eq!(
::std::mem::size_of::<lcb_sockdata_st>(),
88usize,
concat!("Size of: ", stringify!(lcb_sockdata_st))
);
assert_eq!(
::std::mem::align_of::<lcb_sockdata_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_sockdata_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_sockdata_st>())).socket as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_sockdata_st),
"::",
stringify!(socket)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_sockdata_st>())).parent as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_sockdata_st),
"::",
stringify!(parent)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_sockdata_st>())).lcbconn as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_sockdata_st),
"::",
stringify!(lcbconn)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_sockdata_st>())).closed as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lcb_sockdata_st),
"::",
stringify!(closed)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_sockdata_st>())).is_reading as *const _ as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(lcb_sockdata_st),
"::",
stringify!(is_reading)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_sockdata_st>())).read_buffer as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(lcb_sockdata_st),
"::",
stringify!(read_buffer)
)
);
}
pub type lcb_sockdata_t = lcb_sockdata_st;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_io_writebuf_st {
pub parent: *mut lcb_io_opt_st,
pub buffer: lcb_buf_info,
}
#[test]
fn bindgen_test_layout_lcb_io_writebuf_st() {
assert_eq!(
::std::mem::size_of::<lcb_io_writebuf_st>(),
64usize,
concat!("Size of: ", stringify!(lcb_io_writebuf_st))
);
assert_eq!(
::std::mem::align_of::<lcb_io_writebuf_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_io_writebuf_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_io_writebuf_st>())).parent as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_io_writebuf_st),
"::",
stringify!(parent)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_io_writebuf_st>())).buffer as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_io_writebuf_st),
"::",
stringify!(buffer)
)
);
}
pub type lcb_io_writebuf_t = lcb_io_writebuf_st;
pub type lcb_ioC_socket_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
domain: ::std::os::raw::c_int,
type_: ::std::os::raw::c_int,
protocol: ::std::os::raw::c_int,
) -> *mut lcb_sockdata_t,
>;
pub type lcb_io_connect_cb = ::std::option::Option<
unsafe extern "C" fn(socket: *mut lcb_sockdata_t, status: ::std::os::raw::c_int),
>;
pub type lcb_ioC_connect_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sd: *mut lcb_sockdata_t,
dst: *const sockaddr,
naddr: ::std::os::raw::c_uint,
callback: lcb_io_connect_cb,
) -> ::std::os::raw::c_int,
>;
pub type lcb_ioC_serve_callback = ::std::option::Option<
unsafe extern "C" fn(
sd_server: *mut lcb_sockdata_t,
sd_client: *mut lcb_sockdata_t,
status: ::std::os::raw::c_int,
),
>;
pub type lcb_ioC_serve_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
server_socket: *mut lcb_sockdata_t,
listen_addr: *const sockaddr,
callback: lcb_ioC_serve_callback,
) -> ::std::os::raw::c_int,
>;
pub type lcb_ioC_nameinfo_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sock: *mut lcb_sockdata_t,
ni: *mut lcb_nameinfo_st,
) -> ::std::os::raw::c_int,
>;
pub type lcb_ioC_read_callback =
::std::option::Option<unsafe extern "C" fn(sd: *mut lcb_sockdata_t, nread: lcb_SSIZE)>;
pub type lcb_ioC_read_fn = ::std::option::Option<
unsafe extern "C" fn(
arg1: lcb_io_opt_t,
arg2: *mut lcb_sockdata_t,
arg3: lcb_ioC_read_callback,
) -> ::std::os::raw::c_int,
>;
pub type lcb_ioC_wballoc_fn = ::std::option::Option<
unsafe extern "C" fn(arg1: lcb_io_opt_t, arg2: *mut lcb_sockdata_t) -> *mut lcb_io_writebuf_t,
>;
pub type lcb_ioC_wbfree_fn = ::std::option::Option<
unsafe extern "C" fn(
arg1: lcb_io_opt_t,
arg2: *mut lcb_sockdata_t,
arg3: *mut lcb_io_writebuf_t,
),
>;
pub type lcb_ioC_write_callback = ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut lcb_sockdata_t,
arg2: *mut lcb_io_writebuf_t,
arg3: ::std::os::raw::c_int,
),
>;
pub type lcb_ioC_write_fn = ::std::option::Option<
unsafe extern "C" fn(
arg1: lcb_io_opt_t,
arg2: *mut lcb_sockdata_t,
arg3: *mut lcb_io_writebuf_t,
arg4: lcb_ioC_write_callback,
) -> ::std::os::raw::c_int,
>;
pub type lcb_ioC_write2_callback = ::std::option::Option<
unsafe extern "C" fn(
sd: *mut lcb_sockdata_t,
status: ::std::os::raw::c_int,
arg: *mut ::std::os::raw::c_void,
),
>;
pub type lcb_ioC_write2_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sd: *mut lcb_sockdata_t,
iov: *mut lcb_IOV,
niov: lcb_SIZE,
uarg: *mut ::std::os::raw::c_void,
callback: lcb_ioC_write2_callback,
) -> ::std::os::raw::c_int,
>;
pub type lcb_ioC_read2_callback = ::std::option::Option<
unsafe extern "C" fn(
sd: *mut lcb_sockdata_t,
nread: lcb_SSIZE,
arg: *mut ::std::os::raw::c_void,
),
>;
pub type lcb_ioC_read2_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sd: *mut lcb_sockdata_t,
iov: *mut lcb_IOV,
niov: lcb_SIZE,
uarg: *mut ::std::os::raw::c_void,
callback: lcb_ioC_read2_callback,
) -> ::std::os::raw::c_int,
>;
pub type lcb_ioC_close_fn = ::std::option::Option<
unsafe extern "C" fn(iops: lcb_io_opt_t, sd: *mut lcb_sockdata_t) -> ::std::os::raw::c_uint,
>;
pub type lcb_ioC_chkclosed_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sd: *mut lcb_sockdata_t,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>;
pub type lcb_ioC_cntl_fn = ::std::option::Option<
unsafe extern "C" fn(
iops: lcb_io_opt_t,
sd: *mut lcb_sockdata_t,
mode: ::std::os::raw::c_int,
option: ::std::os::raw::c_int,
arg: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
pub type lcb_io_start_fn = ::std::option::Option<unsafe extern "C" fn(iops: lcb_io_opt_t)>;
pub type lcb_io_tick_fn = ::std::option::Option<unsafe extern "C" fn(iops: lcb_io_opt_t)>;
pub type lcb_io_stop_fn = ::std::option::Option<unsafe extern "C" fn(iops: lcb_io_opt_t)>;
pub type lcb_io_error_cb = ::std::option::Option<unsafe extern "C" fn(socket: *mut lcb_sockdata_t)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_iops_evented_st {
pub cookie: *mut ::std::os::raw::c_void,
pub error: ::std::os::raw::c_int,
pub need_cleanup: ::std::os::raw::c_int,
pub socket: lcb_ioE_socket_fn,
pub connect: lcb_ioE_connect_fn,
pub recv: lcb_ioE_recv_fn,
pub send: lcb_ioE_send_fn,
pub recvv: lcb_ioE_recvv_fn,
pub sendv: lcb_ioE_sendv_fn,
pub close: lcb_ioE_close_fn,
pub create_timer: lcb_io_timer_create_fn,
pub destroy_timer: lcb_io_timer_destroy_fn,
pub delete_timer: lcb_io_timer_cancel_fn,
pub update_timer: lcb_io_timer_schedule_fn,
pub create_event: lcb_ioE_event_create_fn,
pub destroy_event: lcb_ioE_event_destroy_fn,
pub update_event: lcb_ioE_event_watch_fn,
pub delete_event: lcb_ioE_event_cancel_fn,
pub stop_event_loop: lcb_io_stop_fn,
pub run_event_loop: lcb_io_start_fn,
}
#[test]
fn bindgen_test_layout_lcb_iops_evented_st() {
assert_eq!(
::std::mem::size_of::<lcb_iops_evented_st>(),
152usize,
concat!("Size of: ", stringify!(lcb_iops_evented_st))
);
assert_eq!(
::std::mem::align_of::<lcb_iops_evented_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_iops_evented_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops_evented_st>())).cookie as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(cookie)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops_evented_st>())).error as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(error)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_evented_st>())).need_cleanup as *const _ as usize
},
12usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(need_cleanup)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops_evented_st>())).socket as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(socket)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops_evented_st>())).connect as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(connect)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops_evented_st>())).recv as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(recv)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops_evented_st>())).send as *const _ as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(send)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops_evented_st>())).recvv as *const _ as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(recvv)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops_evented_st>())).sendv as *const _ as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(sendv)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops_evented_st>())).close as *const _ as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(close)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_evented_st>())).create_timer as *const _ as usize
},
72usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(create_timer)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_evented_st>())).destroy_timer as *const _ as usize
},
80usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(destroy_timer)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_evented_st>())).delete_timer as *const _ as usize
},
88usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(delete_timer)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_evented_st>())).update_timer as *const _ as usize
},
96usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(update_timer)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_evented_st>())).create_event as *const _ as usize
},
104usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(create_event)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_evented_st>())).destroy_event as *const _ as usize
},
112usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(destroy_event)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_evented_st>())).update_event as *const _ as usize
},
120usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(update_event)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_evented_st>())).delete_event as *const _ as usize
},
128usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(delete_event)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_evented_st>())).stop_event_loop as *const _ as usize
},
136usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(stop_event_loop)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_evented_st>())).run_event_loop as *const _ as usize
},
144usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_evented_st),
"::",
stringify!(run_event_loop)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_iops_completion_st {
pub cookie: *mut ::std::os::raw::c_void,
pub error: ::std::os::raw::c_int,
pub need_cleanup: ::std::os::raw::c_int,
pub create_socket: lcb_ioC_socket_fn,
pub start_connect: lcb_ioC_connect_fn,
pub create_writebuf: lcb_ioC_wballoc_fn,
pub release_writebuf: lcb_ioC_wbfree_fn,
pub start_write: lcb_ioC_write_fn,
pub start_read: lcb_ioC_read_fn,
pub close_socket: lcb_ioC_close_fn,
pub create_timer: lcb_io_timer_create_fn,
pub destroy_timer: lcb_io_timer_destroy_fn,
pub delete_timer: lcb_io_timer_cancel_fn,
pub update_timer: lcb_io_timer_schedule_fn,
pub get_nameinfo: lcb_ioC_nameinfo_fn,
pub pad1: ::std::option::Option<unsafe extern "C" fn()>,
pub pad2: ::std::option::Option<unsafe extern "C" fn()>,
pub send_error: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut lcb_io_opt_st,
arg2: *mut lcb_sockdata_t,
arg3: ::std::option::Option<unsafe extern "C" fn(arg1: *mut lcb_sockdata_t)>,
),
>,
pub stop_event_loop: lcb_io_stop_fn,
pub run_event_loop: lcb_io_start_fn,
}
#[test]
fn bindgen_test_layout_lcb_iops_completion_st() {
assert_eq!(
::std::mem::size_of::<lcb_iops_completion_st>(),
152usize,
concat!("Size of: ", stringify!(lcb_iops_completion_st))
);
assert_eq!(
::std::mem::align_of::<lcb_iops_completion_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_iops_completion_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops_completion_st>())).cookie as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(cookie)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops_completion_st>())).error as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(error)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).need_cleanup as *const _ as usize
},
12usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(need_cleanup)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).create_socket as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(create_socket)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).start_connect as *const _ as usize
},
24usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(start_connect)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).create_writebuf as *const _ as usize
},
32usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(create_writebuf)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).release_writebuf as *const _ as usize
},
40usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(release_writebuf)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).start_write as *const _ as usize
},
48usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(start_write)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).start_read as *const _ as usize
},
56usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(start_read)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).close_socket as *const _ as usize
},
64usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(close_socket)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).create_timer as *const _ as usize
},
72usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(create_timer)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).destroy_timer as *const _ as usize
},
80usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(destroy_timer)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).delete_timer as *const _ as usize
},
88usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(delete_timer)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).update_timer as *const _ as usize
},
96usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(update_timer)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).get_nameinfo as *const _ as usize
},
104usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(get_nameinfo)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops_completion_st>())).pad1 as *const _ as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(pad1)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops_completion_st>())).pad2 as *const _ as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(pad2)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).send_error as *const _ as usize
},
128usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(send_error)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).stop_event_loop as *const _ as usize
},
136usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(stop_event_loop)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_iops_completion_st>())).run_event_loop as *const _ as usize
},
144usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops_completion_st),
"::",
stringify!(run_event_loop)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_timerprocs_st {
pub create: lcb_io_timer_create_fn,
pub destroy: lcb_io_timer_destroy_fn,
pub cancel: lcb_io_timer_cancel_fn,
pub schedule: lcb_io_timer_schedule_fn,
}
#[test]
fn bindgen_test_layout_lcb_timerprocs_st() {
assert_eq!(
::std::mem::size_of::<lcb_timerprocs_st>(),
32usize,
concat!("Size of: ", stringify!(lcb_timerprocs_st))
);
assert_eq!(
::std::mem::align_of::<lcb_timerprocs_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_timerprocs_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_timerprocs_st>())).create as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_timerprocs_st),
"::",
stringify!(create)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_timerprocs_st>())).destroy as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_timerprocs_st),
"::",
stringify!(destroy)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_timerprocs_st>())).cancel as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_timerprocs_st),
"::",
stringify!(cancel)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_timerprocs_st>())).schedule as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lcb_timerprocs_st),
"::",
stringify!(schedule)
)
);
}
pub type lcb_timer_procs = lcb_timerprocs_st;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_loopprocs_st {
pub start: lcb_io_start_fn,
pub stop: lcb_io_stop_fn,
pub tick: lcb_io_tick_fn,
}
#[test]
fn bindgen_test_layout_lcb_loopprocs_st() {
assert_eq!(
::std::mem::size_of::<lcb_loopprocs_st>(),
24usize,
concat!("Size of: ", stringify!(lcb_loopprocs_st))
);
assert_eq!(
::std::mem::align_of::<lcb_loopprocs_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_loopprocs_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_loopprocs_st>())).start as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_loopprocs_st),
"::",
stringify!(start)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_loopprocs_st>())).stop as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_loopprocs_st),
"::",
stringify!(stop)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_loopprocs_st>())).tick as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_loopprocs_st),
"::",
stringify!(tick)
)
);
}
pub type lcb_loop_procs = lcb_loopprocs_st;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_bsdprocs_st {
pub socket0: lcb_ioE_socket_fn,
pub connect0: lcb_ioE_connect_fn,
pub recv: lcb_ioE_recv_fn,
pub recvv: lcb_ioE_recvv_fn,
pub send: lcb_ioE_send_fn,
pub sendv: lcb_ioE_sendv_fn,
pub close: lcb_ioE_close_fn,
pub bind: lcb_ioE_bind_fn,
pub listen: lcb_ioE_listen_fn,
pub accept: lcb_ioE_accept_fn,
pub is_closed: lcb_ioE_chkclosed_fn,
pub cntl: lcb_ioE_cntl_fn,
}
#[test]
fn bindgen_test_layout_lcb_bsdprocs_st() {
assert_eq!(
::std::mem::size_of::<lcb_bsdprocs_st>(),
96usize,
concat!("Size of: ", stringify!(lcb_bsdprocs_st))
);
assert_eq!(
::std::mem::align_of::<lcb_bsdprocs_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_bsdprocs_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_bsdprocs_st>())).socket0 as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_bsdprocs_st),
"::",
stringify!(socket0)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_bsdprocs_st>())).connect0 as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_bsdprocs_st),
"::",
stringify!(connect0)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_bsdprocs_st>())).recv as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_bsdprocs_st),
"::",
stringify!(recv)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_bsdprocs_st>())).recvv as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lcb_bsdprocs_st),
"::",
stringify!(recvv)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_bsdprocs_st>())).send as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(lcb_bsdprocs_st),
"::",
stringify!(send)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_bsdprocs_st>())).sendv as *const _ as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(lcb_bsdprocs_st),
"::",
stringify!(sendv)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_bsdprocs_st>())).close as *const _ as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(lcb_bsdprocs_st),
"::",
stringify!(close)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_bsdprocs_st>())).bind as *const _ as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(lcb_bsdprocs_st),
"::",
stringify!(bind)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_bsdprocs_st>())).listen as *const _ as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(lcb_bsdprocs_st),
"::",
stringify!(listen)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_bsdprocs_st>())).accept as *const _ as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(lcb_bsdprocs_st),
"::",
stringify!(accept)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_bsdprocs_st>())).is_closed as *const _ as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(lcb_bsdprocs_st),
"::",
stringify!(is_closed)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_bsdprocs_st>())).cntl as *const _ as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(lcb_bsdprocs_st),
"::",
stringify!(cntl)
)
);
}
pub type lcb_bsd_procs = lcb_bsdprocs_st;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_evprocs_st {
pub create: lcb_ioE_event_create_fn,
pub destroy: lcb_ioE_event_destroy_fn,
pub cancel: lcb_ioE_event_cancel_fn,
pub watch: lcb_ioE_event_watch_fn,
}
#[test]
fn bindgen_test_layout_lcb_evprocs_st() {
assert_eq!(
::std::mem::size_of::<lcb_evprocs_st>(),
32usize,
concat!("Size of: ", stringify!(lcb_evprocs_st))
);
assert_eq!(
::std::mem::align_of::<lcb_evprocs_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_evprocs_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_evprocs_st>())).create as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_evprocs_st),
"::",
stringify!(create)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_evprocs_st>())).destroy as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_evprocs_st),
"::",
stringify!(destroy)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_evprocs_st>())).cancel as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_evprocs_st),
"::",
stringify!(cancel)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_evprocs_st>())).watch as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lcb_evprocs_st),
"::",
stringify!(watch)
)
);
}
pub type lcb_ev_procs = lcb_evprocs_st;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_completion_procs {
pub socket: lcb_ioC_socket_fn,
pub close: lcb_ioC_close_fn,
pub read: lcb_ioC_read_fn,
pub connect: lcb_ioC_connect_fn,
pub wballoc: lcb_ioC_wballoc_fn,
pub wbfree: lcb_ioC_wbfree_fn,
pub write: lcb_ioC_write_fn,
pub write2: lcb_ioC_write2_fn,
pub read2: lcb_ioC_read2_fn,
pub serve: lcb_ioC_serve_fn,
pub nameinfo: lcb_ioC_nameinfo_fn,
pub is_closed: lcb_ioC_chkclosed_fn,
pub cntl: lcb_ioC_cntl_fn,
}
#[test]
fn bindgen_test_layout_lcb_completion_procs() {
assert_eq!(
::std::mem::size_of::<lcb_completion_procs>(),
104usize,
concat!("Size of: ", stringify!(lcb_completion_procs))
);
assert_eq!(
::std::mem::align_of::<lcb_completion_procs>(),
8usize,
concat!("Alignment of ", stringify!(lcb_completion_procs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_completion_procs>())).socket as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_completion_procs),
"::",
stringify!(socket)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_completion_procs>())).close as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_completion_procs),
"::",
stringify!(close)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_completion_procs>())).read as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_completion_procs),
"::",
stringify!(read)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_completion_procs>())).connect as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lcb_completion_procs),
"::",
stringify!(connect)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_completion_procs>())).wballoc as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(lcb_completion_procs),
"::",
stringify!(wballoc)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_completion_procs>())).wbfree as *const _ as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(lcb_completion_procs),
"::",
stringify!(wbfree)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_completion_procs>())).write as *const _ as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(lcb_completion_procs),
"::",
stringify!(write)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_completion_procs>())).write2 as *const _ as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(lcb_completion_procs),
"::",
stringify!(write2)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_completion_procs>())).read2 as *const _ as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(lcb_completion_procs),
"::",
stringify!(read2)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_completion_procs>())).serve as *const _ as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(lcb_completion_procs),
"::",
stringify!(serve)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_completion_procs>())).nameinfo as *const _ as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(lcb_completion_procs),
"::",
stringify!(nameinfo)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_completion_procs>())).is_closed as *const _ as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(lcb_completion_procs),
"::",
stringify!(is_closed)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_completion_procs>())).cntl as *const _ as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(lcb_completion_procs),
"::",
stringify!(cntl)
)
);
}
pub const lcb_iomodel_t_LCB_IOMODEL_EVENT: lcb_iomodel_t = 0;
pub const lcb_iomodel_t_LCB_IOMODEL_COMPLETION: lcb_iomodel_t = 1;
pub type lcb_iomodel_t = u32;
pub type lcb_io_procs_fn = ::std::option::Option<
unsafe extern "C" fn(
version: ::std::os::raw::c_int,
loop_procs: *mut lcb_loop_procs,
timer_procs: *mut lcb_timer_procs,
bsd_procs: *mut lcb_bsd_procs,
ev_procs: *mut lcb_ev_procs,
completion_procs: *mut lcb_completion_procs,
iomodel: *mut lcb_iomodel_t,
),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcbio_TABLE {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_iops2_st {
pub cookie: *mut ::std::os::raw::c_void,
pub error: ::std::os::raw::c_int,
pub need_cleanup: ::std::os::raw::c_int,
pub get_procs: lcb_io_procs_fn,
pub iot: *mut lcbio_TABLE,
}
#[test]
fn bindgen_test_layout_lcb_iops2_st() {
assert_eq!(
::std::mem::size_of::<lcb_iops2_st>(),
32usize,
concat!("Size of: ", stringify!(lcb_iops2_st))
);
assert_eq!(
::std::mem::align_of::<lcb_iops2_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_iops2_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops2_st>())).cookie as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops2_st),
"::",
stringify!(cookie)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops2_st>())).error as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops2_st),
"::",
stringify!(error)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops2_st>())).need_cleanup as *const _ as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops2_st),
"::",
stringify!(need_cleanup)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops2_st>())).get_procs as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops2_st),
"::",
stringify!(get_procs)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops2_st>())).iot as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops2_st),
"::",
stringify!(iot)
)
);
}
pub type lcb__iops3fndummy = ::std::option::Option<unsafe extern "C" fn()>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_iops3_st {
pub cookie: *mut ::std::os::raw::c_void,
pub error: ::std::os::raw::c_int,
pub need_cleanup: ::std::os::raw::c_int,
pub pads: [lcb__iops3fndummy; 17usize],
pub get_procs: lcb_io_procs_fn,
pub iot: *mut lcbio_TABLE,
}
#[test]
fn bindgen_test_layout_lcb_iops3_st() {
assert_eq!(
::std::mem::size_of::<lcb_iops3_st>(),
168usize,
concat!("Size of: ", stringify!(lcb_iops3_st))
);
assert_eq!(
::std::mem::align_of::<lcb_iops3_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_iops3_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops3_st>())).cookie as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops3_st),
"::",
stringify!(cookie)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops3_st>())).error as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops3_st),
"::",
stringify!(error)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops3_st>())).need_cleanup as *const _ as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops3_st),
"::",
stringify!(need_cleanup)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops3_st>())).pads as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops3_st),
"::",
stringify!(pads)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops3_st>())).get_procs as *const _ as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops3_st),
"::",
stringify!(get_procs)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_iops3_st>())).iot as *const _ as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(lcb_iops3_st),
"::",
stringify!(iot)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct lcb_io_opt_st {
pub version: ::std::os::raw::c_int,
pub dlhandle: *mut ::std::os::raw::c_void,
pub destructor: ::std::option::Option<unsafe extern "C" fn(iops: *mut lcb_io_opt_st)>,
pub v: lcb_io_opt_st__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union lcb_io_opt_st__bindgen_ty_1 {
pub base: lcb_io_opt_st__bindgen_ty_1__bindgen_ty_1,
pub v0: lcb_iops_evented_st,
pub v1: lcb_iops_completion_st,
pub v2: lcb_iops2_st,
pub v3: lcb_iops3_st,
_bindgen_union_align: [u64; 21usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_io_opt_st__bindgen_ty_1__bindgen_ty_1 {
pub cookie: *mut ::std::os::raw::c_void,
pub error: ::std::os::raw::c_int,
pub need_cleanup: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_lcb_io_opt_st__bindgen_ty_1__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcb_io_opt_st__bindgen_ty_1__bindgen_ty_1>(),
16usize,
concat!(
"Size of: ",
stringify!(lcb_io_opt_st__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
::std::mem::align_of::<lcb_io_opt_st__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(lcb_io_opt_st__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_io_opt_st__bindgen_ty_1__bindgen_ty_1>())).cookie as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_io_opt_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(cookie)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_io_opt_st__bindgen_ty_1__bindgen_ty_1>())).error as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_io_opt_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(error)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_io_opt_st__bindgen_ty_1__bindgen_ty_1>())).need_cleanup
as *const _ as usize
},
12usize,
concat!(
"Offset of field: ",
stringify!(lcb_io_opt_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(need_cleanup)
)
);
}
#[test]
fn bindgen_test_layout_lcb_io_opt_st__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcb_io_opt_st__bindgen_ty_1>(),
168usize,
concat!("Size of: ", stringify!(lcb_io_opt_st__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<lcb_io_opt_st__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(lcb_io_opt_st__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_io_opt_st__bindgen_ty_1>())).base as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_io_opt_st__bindgen_ty_1),
"::",
stringify!(base)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_io_opt_st__bindgen_ty_1>())).v0 as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_io_opt_st__bindgen_ty_1),
"::",
stringify!(v0)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_io_opt_st__bindgen_ty_1>())).v1 as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_io_opt_st__bindgen_ty_1),
"::",
stringify!(v1)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_io_opt_st__bindgen_ty_1>())).v2 as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_io_opt_st__bindgen_ty_1),
"::",
stringify!(v2)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_io_opt_st__bindgen_ty_1>())).v3 as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_io_opt_st__bindgen_ty_1),
"::",
stringify!(v3)
)
);
}
#[test]
fn bindgen_test_layout_lcb_io_opt_st() {
assert_eq!(
::std::mem::size_of::<lcb_io_opt_st>(),
192usize,
concat!("Size of: ", stringify!(lcb_io_opt_st))
);
assert_eq!(
::std::mem::align_of::<lcb_io_opt_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_io_opt_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_io_opt_st>())).version as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_io_opt_st),
"::",
stringify!(version)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_io_opt_st>())).dlhandle as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_io_opt_st),
"::",
stringify!(dlhandle)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_io_opt_st>())).destructor as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_io_opt_st),
"::",
stringify!(destructor)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_io_opt_st>())).v as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lcb_io_opt_st),
"::",
stringify!(v)
)
);
}
pub type lcb_io_create_fn = ::std::option::Option<
unsafe extern "C" fn(
version: ::std::os::raw::c_int,
io: *mut lcb_io_opt_t,
cookie: *mut ::std::os::raw::c_void,
) -> lcb_STATUS,
>;
extern "C" {
pub fn lcb_iops_wire_bsd_impl2(procs: *mut lcb_bsd_procs, version: ::std::os::raw::c_int);
}
pub const lcb_io_ops_type_t_LCB_IO_OPS_INVALID: lcb_io_ops_type_t = 0;
pub const lcb_io_ops_type_t_LCB_IO_OPS_DEFAULT: lcb_io_ops_type_t = 1;
pub const lcb_io_ops_type_t_LCB_IO_OPS_LIBEVENT: lcb_io_ops_type_t = 2;
pub const lcb_io_ops_type_t_LCB_IO_OPS_WINSOCK: lcb_io_ops_type_t = 3;
pub const lcb_io_ops_type_t_LCB_IO_OPS_LIBEV: lcb_io_ops_type_t = 4;
pub const lcb_io_ops_type_t_LCB_IO_OPS_SELECT: lcb_io_ops_type_t = 5;
pub const lcb_io_ops_type_t_LCB_IO_OPS_WINIOCP: lcb_io_ops_type_t = 6;
pub const lcb_io_ops_type_t_LCB_IO_OPS_LIBUV: lcb_io_ops_type_t = 7;
pub type lcb_io_ops_type_t = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_IOCREATEOPTS_BUILTIN {
pub type_: lcb_io_ops_type_t,
pub cookie: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_lcb_IOCREATEOPTS_BUILTIN() {
assert_eq!(
::std::mem::size_of::<lcb_IOCREATEOPTS_BUILTIN>(),
16usize,
concat!("Size of: ", stringify!(lcb_IOCREATEOPTS_BUILTIN))
);
assert_eq!(
::std::mem::align_of::<lcb_IOCREATEOPTS_BUILTIN>(),
8usize,
concat!("Alignment of ", stringify!(lcb_IOCREATEOPTS_BUILTIN))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_IOCREATEOPTS_BUILTIN>())).type_ as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_IOCREATEOPTS_BUILTIN),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_IOCREATEOPTS_BUILTIN>())).cookie as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_IOCREATEOPTS_BUILTIN),
"::",
stringify!(cookie)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_IOCREATEOPTS_DSO {
pub sofile: *const ::std::os::raw::c_char,
pub symbol: *const ::std::os::raw::c_char,
pub cookie: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_lcb_IOCREATEOPTS_DSO() {
assert_eq!(
::std::mem::size_of::<lcb_IOCREATEOPTS_DSO>(),
24usize,
concat!("Size of: ", stringify!(lcb_IOCREATEOPTS_DSO))
);
assert_eq!(
::std::mem::align_of::<lcb_IOCREATEOPTS_DSO>(),
8usize,
concat!("Alignment of ", stringify!(lcb_IOCREATEOPTS_DSO))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_IOCREATEOPTS_DSO>())).sofile as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_IOCREATEOPTS_DSO),
"::",
stringify!(sofile)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_IOCREATEOPTS_DSO>())).symbol as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_IOCREATEOPTS_DSO),
"::",
stringify!(symbol)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_IOCREATEOPTS_DSO>())).cookie as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_IOCREATEOPTS_DSO),
"::",
stringify!(cookie)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_IOCREATEOPS_FUNCTIONPOINTER {
pub create: lcb_io_create_fn,
pub cookie: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_lcb_IOCREATEOPS_FUNCTIONPOINTER() {
assert_eq!(
::std::mem::size_of::<lcb_IOCREATEOPS_FUNCTIONPOINTER>(),
16usize,
concat!("Size of: ", stringify!(lcb_IOCREATEOPS_FUNCTIONPOINTER))
);
assert_eq!(
::std::mem::align_of::<lcb_IOCREATEOPS_FUNCTIONPOINTER>(),
8usize,
concat!("Alignment of ", stringify!(lcb_IOCREATEOPS_FUNCTIONPOINTER))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_IOCREATEOPS_FUNCTIONPOINTER>())).create as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_IOCREATEOPS_FUNCTIONPOINTER),
"::",
stringify!(create)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_IOCREATEOPS_FUNCTIONPOINTER>())).cookie as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_IOCREATEOPS_FUNCTIONPOINTER),
"::",
stringify!(cookie)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct lcb_create_io_ops_st {
pub version: ::std::os::raw::c_int,
pub v: lcb_create_io_ops_st__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union lcb_create_io_ops_st__bindgen_ty_1 {
pub v0: lcb_IOCREATEOPTS_BUILTIN,
pub v1: lcb_IOCREATEOPTS_DSO,
pub v2: lcb_IOCREATEOPS_FUNCTIONPOINTER,
_bindgen_union_align: [u64; 3usize],
}
#[test]
fn bindgen_test_layout_lcb_create_io_ops_st__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcb_create_io_ops_st__bindgen_ty_1>(),
24usize,
concat!("Size of: ", stringify!(lcb_create_io_ops_st__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<lcb_create_io_ops_st__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(lcb_create_io_ops_st__bindgen_ty_1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_create_io_ops_st__bindgen_ty_1>())).v0 as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_create_io_ops_st__bindgen_ty_1),
"::",
stringify!(v0)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_create_io_ops_st__bindgen_ty_1>())).v1 as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_create_io_ops_st__bindgen_ty_1),
"::",
stringify!(v1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_create_io_ops_st__bindgen_ty_1>())).v2 as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_create_io_ops_st__bindgen_ty_1),
"::",
stringify!(v2)
)
);
}
#[test]
fn bindgen_test_layout_lcb_create_io_ops_st() {
assert_eq!(
::std::mem::size_of::<lcb_create_io_ops_st>(),
32usize,
concat!("Size of: ", stringify!(lcb_create_io_ops_st))
);
assert_eq!(
::std::mem::align_of::<lcb_create_io_ops_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_create_io_ops_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_create_io_ops_st>())).version as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_create_io_ops_st),
"::",
stringify!(version)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_create_io_ops_st>())).v as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_create_io_ops_st),
"::",
stringify!(v)
)
);
}
extern "C" {
pub fn lcb_create_io_ops(
op: *mut lcb_io_opt_t,
options: *const lcb_create_io_ops_st,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_destroy_io_ops(op: lcb_io_opt_t) -> lcb_STATUS;
}
pub const lcb_KVBUFTYPE_LCB_KV_COPY: lcb_KVBUFTYPE = 0;
pub const lcb_KVBUFTYPE_LCB_KV_CONTIG: lcb_KVBUFTYPE = 1;
pub const lcb_KVBUFTYPE_LCB_KV_IOV: lcb_KVBUFTYPE = 2;
pub const lcb_KVBUFTYPE_LCB_KV_VBID: lcb_KVBUFTYPE = 3;
pub const lcb_KVBUFTYPE_LCB_KV_IOVCOPY: lcb_KVBUFTYPE = 4;
pub type lcb_KVBUFTYPE = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CONTIGBUF {
pub bytes: *const ::std::os::raw::c_void,
pub nbytes: usize,
}
#[test]
fn bindgen_test_layout_lcb_CONTIGBUF() {
assert_eq!(
::std::mem::size_of::<lcb_CONTIGBUF>(),
16usize,
concat!("Size of: ", stringify!(lcb_CONTIGBUF))
);
assert_eq!(
::std::mem::align_of::<lcb_CONTIGBUF>(),
8usize,
concat!("Alignment of ", stringify!(lcb_CONTIGBUF))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_CONTIGBUF>())).bytes as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_CONTIGBUF),
"::",
stringify!(bytes)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_CONTIGBUF>())).nbytes as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_CONTIGBUF),
"::",
stringify!(nbytes)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_KEYBUF {
pub type_: lcb_KVBUFTYPE,
pub contig: lcb_CONTIGBUF,
pub vbid: lcb_U16,
}
#[test]
fn bindgen_test_layout_lcb_KEYBUF() {
assert_eq!(
::std::mem::size_of::<lcb_KEYBUF>(),
32usize,
concat!("Size of: ", stringify!(lcb_KEYBUF))
);
assert_eq!(
::std::mem::align_of::<lcb_KEYBUF>(),
8usize,
concat!("Alignment of ", stringify!(lcb_KEYBUF))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_KEYBUF>())).type_ as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_KEYBUF),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_KEYBUF>())).contig as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_KEYBUF),
"::",
stringify!(contig)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_KEYBUF>())).vbid as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lcb_KEYBUF),
"::",
stringify!(vbid)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_FRAGBUF {
pub iov: *mut lcb_IOV,
pub niov: ::std::os::raw::c_uint,
pub total_length: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_lcb_FRAGBUF() {
assert_eq!(
::std::mem::size_of::<lcb_FRAGBUF>(),
16usize,
concat!("Size of: ", stringify!(lcb_FRAGBUF))
);
assert_eq!(
::std::mem::align_of::<lcb_FRAGBUF>(),
8usize,
concat!("Alignment of ", stringify!(lcb_FRAGBUF))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_FRAGBUF>())).iov as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_FRAGBUF),
"::",
stringify!(iov)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_FRAGBUF>())).niov as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_FRAGBUF),
"::",
stringify!(niov)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_FRAGBUF>())).total_length as *const _ as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(lcb_FRAGBUF),
"::",
stringify!(total_length)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct lcb_VALBUF {
pub vtype: lcb_KVBUFTYPE,
pub u_buf: lcb_VALBUF__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union lcb_VALBUF__bindgen_ty_1 {
pub contig: lcb_CONTIGBUF,
pub multi: lcb_FRAGBUF,
_bindgen_union_align: [u64; 2usize],
}
#[test]
fn bindgen_test_layout_lcb_VALBUF__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcb_VALBUF__bindgen_ty_1>(),
16usize,
concat!("Size of: ", stringify!(lcb_VALBUF__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<lcb_VALBUF__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(lcb_VALBUF__bindgen_ty_1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_VALBUF__bindgen_ty_1>())).contig as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_VALBUF__bindgen_ty_1),
"::",
stringify!(contig)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_VALBUF__bindgen_ty_1>())).multi as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_VALBUF__bindgen_ty_1),
"::",
stringify!(multi)
)
);
}
#[test]
fn bindgen_test_layout_lcb_VALBUF() {
assert_eq!(
::std::mem::size_of::<lcb_VALBUF>(),
24usize,
concat!("Size of: ", stringify!(lcb_VALBUF))
);
assert_eq!(
::std::mem::align_of::<lcb_VALBUF>(),
8usize,
concat!("Alignment of ", stringify!(lcb_VALBUF))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_VALBUF>())).vtype as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_VALBUF),
"::",
stringify!(vtype)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_VALBUF>())).u_buf as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_VALBUF),
"::",
stringify!(u_buf)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_AUTHENTICATOR_Cdummy {
_unused: [u8; 0],
}
pub type lcb_AUTHENTICATOR = lcb_AUTHENTICATOR_Cdummy;
pub type lcb_AUTHCALLBACK = ::std::option::Option<
unsafe extern "C" fn(
cookie: *mut ::std::os::raw::c_void,
host: *const ::std::os::raw::c_char,
port: *const ::std::os::raw::c_char,
bucket: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcbtrace_SPAN_Cdummy {
_unused: [u8; 0],
}
pub type lcbtrace_SPAN = lcbtrace_SPAN_Cdummy;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct lcbtrace_TRACER {
pub version: lcb_U16,
pub flags: lcb_U64,
pub cookie: *mut ::std::os::raw::c_void,
pub destructor: ::std::option::Option<unsafe extern "C" fn(tracer: *mut lcbtrace_TRACER)>,
pub v: lcbtrace_TRACER__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union lcbtrace_TRACER__bindgen_ty_1 {
pub v0: lcbtrace_TRACER__bindgen_ty_1__bindgen_ty_1,
_bindgen_union_align: u64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcbtrace_TRACER__bindgen_ty_1__bindgen_ty_1 {
pub report: ::std::option::Option<
unsafe extern "C" fn(tracer: *mut lcbtrace_TRACER, span: *mut lcbtrace_SPAN),
>,
}
#[test]
fn bindgen_test_layout_lcbtrace_TRACER__bindgen_ty_1__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcbtrace_TRACER__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!(
"Size of: ",
stringify!(lcbtrace_TRACER__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
::std::mem::align_of::<lcbtrace_TRACER__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(lcbtrace_TRACER__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcbtrace_TRACER__bindgen_ty_1__bindgen_ty_1>())).report
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcbtrace_TRACER__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(report)
)
);
}
#[test]
fn bindgen_test_layout_lcbtrace_TRACER__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcbtrace_TRACER__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(lcbtrace_TRACER__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<lcbtrace_TRACER__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(lcbtrace_TRACER__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcbtrace_TRACER__bindgen_ty_1>())).v0 as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcbtrace_TRACER__bindgen_ty_1),
"::",
stringify!(v0)
)
);
}
#[test]
fn bindgen_test_layout_lcbtrace_TRACER() {
assert_eq!(
::std::mem::size_of::<lcbtrace_TRACER>(),
40usize,
concat!("Size of: ", stringify!(lcbtrace_TRACER))
);
assert_eq!(
::std::mem::align_of::<lcbtrace_TRACER>(),
8usize,
concat!("Alignment of ", stringify!(lcbtrace_TRACER))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcbtrace_TRACER>())).version as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcbtrace_TRACER),
"::",
stringify!(version)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcbtrace_TRACER>())).flags as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcbtrace_TRACER),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcbtrace_TRACER>())).cookie as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcbtrace_TRACER),
"::",
stringify!(cookie)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcbtrace_TRACER>())).destructor as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lcbtrace_TRACER),
"::",
stringify!(destructor)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcbtrace_TRACER>())).v as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(lcbtrace_TRACER),
"::",
stringify!(v)
)
);
}
extern "C" {
pub fn lcb_get_tracer(instance: *mut lcb_INSTANCE) -> *mut lcbtrace_TRACER;
}
extern "C" {
pub fn lcb_set_tracer(instance: *mut lcb_INSTANCE, tracer: *mut lcbtrace_TRACER);
}
pub const lcb_LOG_SEVERITY_LCB_LOG_TRACE: lcb_LOG_SEVERITY = 0;
pub const lcb_LOG_SEVERITY_LCB_LOG_DEBUG: lcb_LOG_SEVERITY = 1;
pub const lcb_LOG_SEVERITY_LCB_LOG_INFO: lcb_LOG_SEVERITY = 2;
pub const lcb_LOG_SEVERITY_LCB_LOG_WARN: lcb_LOG_SEVERITY = 3;
pub const lcb_LOG_SEVERITY_LCB_LOG_ERROR: lcb_LOG_SEVERITY = 4;
pub const lcb_LOG_SEVERITY_LCB_LOG_FATAL: lcb_LOG_SEVERITY = 5;
pub const lcb_LOG_SEVERITY_LCB_LOG__MAX: lcb_LOG_SEVERITY = 6;
pub type lcb_LOG_SEVERITY = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_LOGGER_ {
_unused: [u8; 0],
}
pub type lcb_LOGGER = lcb_LOGGER_;
pub type lcb_LOGGER_CALLBACK = ::std::option::Option<
unsafe extern "C" fn(
procs: *const lcb_LOGGER,
iid: u64,
subsys: *const ::std::os::raw::c_char,
severity: lcb_LOG_SEVERITY,
srcfile: *const ::std::os::raw::c_char,
srcline: ::std::os::raw::c_int,
fmt: *const ::std::os::raw::c_char,
ap: *mut __va_list_tag,
),
>;
extern "C" {
pub fn lcb_logger_create(
logger: *mut *mut lcb_LOGGER,
cookie: *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_logger_destroy(logger: *mut lcb_LOGGER) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_logger_callback(
logger: *mut lcb_LOGGER,
callback: lcb_LOGGER_CALLBACK,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_logger_cookie(
logger: *const lcb_LOGGER,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct lcb_cntl_vbinfo_st {
pub version: ::std::os::raw::c_int,
pub v: lcb_cntl_vbinfo_st__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union lcb_cntl_vbinfo_st__bindgen_ty_1 {
pub v0: lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1,
_bindgen_union_align: [u64; 3usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1 {
pub key: *const ::std::os::raw::c_void,
pub nkey: lcb_SIZE,
pub vbucket: ::std::os::raw::c_int,
pub server_index: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1>(),
24usize,
concat!(
"Size of: ",
stringify!(lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
::std::mem::align_of::<lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1>())).key
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(key)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1>())).nkey
as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(nkey)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1>())).vbucket
as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(vbucket)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1>())).server_index
as *const _ as usize
},
20usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(server_index)
)
);
}
#[test]
fn bindgen_test_layout_lcb_cntl_vbinfo_st__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcb_cntl_vbinfo_st__bindgen_ty_1>(),
24usize,
concat!("Size of: ", stringify!(lcb_cntl_vbinfo_st__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<lcb_cntl_vbinfo_st__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(lcb_cntl_vbinfo_st__bindgen_ty_1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_vbinfo_st__bindgen_ty_1>())).v0 as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_vbinfo_st__bindgen_ty_1),
"::",
stringify!(v0)
)
);
}
#[test]
fn bindgen_test_layout_lcb_cntl_vbinfo_st() {
assert_eq!(
::std::mem::size_of::<lcb_cntl_vbinfo_st>(),
32usize,
concat!("Size of: ", stringify!(lcb_cntl_vbinfo_st))
);
assert_eq!(
::std::mem::align_of::<lcb_cntl_vbinfo_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_cntl_vbinfo_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_cntl_vbinfo_st>())).version as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_vbinfo_st),
"::",
stringify!(version)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_cntl_vbinfo_st>())).v as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_vbinfo_st),
"::",
stringify!(v)
)
);
}
pub type lcb_cntl_vbinfo_t = lcb_cntl_vbinfo_st;
pub const lcb_ipv6_t_LCB_IPV6_DISABLED: lcb_ipv6_t = 0;
pub const lcb_ipv6_t_LCB_IPV6_ONLY: lcb_ipv6_t = 1;
pub const lcb_ipv6_t_LCB_IPV6_ALLOW: lcb_ipv6_t = 2;
pub type lcb_ipv6_t = u32;
pub const lcb_SSLOPTS_LCB_SSL_ENABLED: lcb_SSLOPTS = 1;
pub const lcb_SSLOPTS_LCB_SSL_NOVERIFY: lcb_SSLOPTS = 2;
pub const lcb_SSLOPTS_LCB_SSL_NOGLOBALINIT: lcb_SSLOPTS = 4;
pub type lcb_SSLOPTS = u32;
pub const lcb_RETRYMODEOPTS_LCB_RETRY_ON_TOPOCHANGE: lcb_RETRYMODEOPTS = 0;
pub const lcb_RETRYMODEOPTS_LCB_RETRY_ON_SOCKERR: lcb_RETRYMODEOPTS = 1;
pub const lcb_RETRYMODEOPTS_LCB_RETRY_ON_VBMAPERR: lcb_RETRYMODEOPTS = 2;
pub const lcb_RETRYMODEOPTS_LCB_RETRY_ON_MISSINGNODE: lcb_RETRYMODEOPTS = 3;
pub const lcb_RETRYMODEOPTS_LCB_RETRY_ON_MAX: lcb_RETRYMODEOPTS = 4;
pub type lcb_RETRYMODEOPTS = u32;
pub const lcb_RETRYCMDOPTS_LCB_RETRY_CMDS_NONE: lcb_RETRYCMDOPTS = 0;
pub const lcb_RETRYCMDOPTS_LCB_RETRY_CMDS_GET: lcb_RETRYCMDOPTS = 1;
pub const lcb_RETRYCMDOPTS_LCB_RETRY_CMDS_SAFE: lcb_RETRYCMDOPTS = 3;
pub const lcb_RETRYCMDOPTS_LCB_RETRY_CMDS_ALL: lcb_RETRYCMDOPTS = 7;
pub type lcb_RETRYCMDOPTS = u32;
pub const lcb_HTCONFIG_URLTYPE_LCB_HTCONFIG_URLTYPE_25PLUS: lcb_HTCONFIG_URLTYPE = 1;
pub const lcb_HTCONFIG_URLTYPE_LCB_HTCONFIG_URLTYPE_COMPAT: lcb_HTCONFIG_URLTYPE = 2;
pub const lcb_HTCONFIG_URLTYPE_LCB_HTCONFIG_URLTYPE_TRYALL: lcb_HTCONFIG_URLTYPE = 3;
pub type lcb_HTCONFIG_URLTYPE = u32;
pub type lcb_BUCKETCRED = [*const ::std::os::raw::c_char; 2usize];
pub const lcb_COMPRESSOPTS_LCB_COMPRESS_NONE: lcb_COMPRESSOPTS = 0;
pub const lcb_COMPRESSOPTS_LCB_COMPRESS_IN: lcb_COMPRESSOPTS = 1;
pub const lcb_COMPRESSOPTS_LCB_COMPRESS_OUT: lcb_COMPRESSOPTS = 2;
pub const lcb_COMPRESSOPTS_LCB_COMPRESS_INOUT: lcb_COMPRESSOPTS = 3;
pub const lcb_COMPRESSOPTS_LCB_COMPRESS_FORCE: lcb_COMPRESSOPTS = 4;
pub type lcb_COMPRESSOPTS = u32;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct lcb_cntl_server_st {
pub version: ::std::os::raw::c_int,
pub v: lcb_cntl_server_st__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union lcb_cntl_server_st__bindgen_ty_1 {
pub v0: lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1,
pub v1: lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2,
_bindgen_union_align: [u64; 6usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1 {
pub index: ::std::os::raw::c_int,
pub host: *const ::std::os::raw::c_char,
pub port: *const ::std::os::raw::c_char,
pub connected: ::std::os::raw::c_int,
pub sock: lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
pub sockfd: lcb_socket_t,
pub sockptr: *mut lcb_sockdata_t,
_bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!(
"Size of: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
::std::mem::align_of::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1>()))
.sockfd as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(sockfd)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1>()))
.sockptr as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(sockptr)
)
);
}
#[test]
fn bindgen_test_layout_lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1>(),
40usize,
concat!(
"Size of: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
::std::mem::align_of::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1>())).index
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(index)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1>())).host
as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(host)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1>())).port
as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(port)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1>())).connected
as *const _ as usize
},
24usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(connected)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1>())).sock
as *const _ as usize
},
32usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(sock)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2 {
pub index: ::std::os::raw::c_int,
pub host: *const ::std::os::raw::c_char,
pub port: *const ::std::os::raw::c_char,
pub connected: ::std::os::raw::c_int,
pub sock: lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1,
pub sasl_mech: *const ::std::os::raw::c_char,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {
pub sockfd: lcb_socket_t,
pub sockptr: *mut lcb_sockdata_t,
_bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>(),
8usize,
concat!(
"Size of: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1)
)
);
assert_eq!(
::std::mem::align_of::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>()))
.sockfd as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1),
"::",
stringify!(sockfd)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>()))
.sockptr as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1),
"::",
stringify!(sockptr)
)
);
}
#[test]
fn bindgen_test_layout_lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2() {
assert_eq!(
::std::mem::size_of::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2>(),
48usize,
concat!(
"Size of: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2)
)
);
assert_eq!(
::std::mem::align_of::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2>(),
8usize,
concat!(
"Alignment of ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2>())).index
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2),
"::",
stringify!(index)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2>())).host
as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2),
"::",
stringify!(host)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2>())).port
as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2),
"::",
stringify!(port)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2>())).connected
as *const _ as usize
},
24usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2),
"::",
stringify!(connected)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2>())).sock
as *const _ as usize
},
32usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2),
"::",
stringify!(sock)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2>())).sasl_mech
as *const _ as usize
},
40usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2),
"::",
stringify!(sasl_mech)
)
);
}
#[test]
fn bindgen_test_layout_lcb_cntl_server_st__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcb_cntl_server_st__bindgen_ty_1>(),
48usize,
concat!("Size of: ", stringify!(lcb_cntl_server_st__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<lcb_cntl_server_st__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(lcb_cntl_server_st__bindgen_ty_1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1>())).v0 as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1),
"::",
stringify!(v0)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_server_st__bindgen_ty_1>())).v1 as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st__bindgen_ty_1),
"::",
stringify!(v1)
)
);
}
#[test]
fn bindgen_test_layout_lcb_cntl_server_st() {
assert_eq!(
::std::mem::size_of::<lcb_cntl_server_st>(),
56usize,
concat!("Size of: ", stringify!(lcb_cntl_server_st))
);
assert_eq!(
::std::mem::align_of::<lcb_cntl_server_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_cntl_server_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_cntl_server_st>())).version as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st),
"::",
stringify!(version)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_cntl_server_st>())).v as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_server_st),
"::",
stringify!(v)
)
);
}
pub type lcb_cntl_server_t = lcb_cntl_server_st;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct lcb_cntl_iops_info_st {
pub version: ::std::os::raw::c_int,
pub v: lcb_cntl_iops_info_st__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union lcb_cntl_iops_info_st__bindgen_ty_1 {
pub v0: lcb_cntl_iops_info_st__bindgen_ty_1__bindgen_ty_1,
_bindgen_union_align: [u64; 2usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_cntl_iops_info_st__bindgen_ty_1__bindgen_ty_1 {
pub options: *const lcb_create_io_ops_st,
pub os_default: lcb_io_ops_type_t,
pub effective: lcb_io_ops_type_t,
}
#[test]
fn bindgen_test_layout_lcb_cntl_iops_info_st__bindgen_ty_1__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcb_cntl_iops_info_st__bindgen_ty_1__bindgen_ty_1>(),
16usize,
concat!(
"Size of: ",
stringify!(lcb_cntl_iops_info_st__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
::std::mem::align_of::<lcb_cntl_iops_info_st__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(lcb_cntl_iops_info_st__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_iops_info_st__bindgen_ty_1__bindgen_ty_1>())).options
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_iops_info_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(options)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_iops_info_st__bindgen_ty_1__bindgen_ty_1>())).os_default
as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_iops_info_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(os_default)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_iops_info_st__bindgen_ty_1__bindgen_ty_1>())).effective
as *const _ as usize
},
12usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_iops_info_st__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(effective)
)
);
}
#[test]
fn bindgen_test_layout_lcb_cntl_iops_info_st__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<lcb_cntl_iops_info_st__bindgen_ty_1>(),
16usize,
concat!("Size of: ", stringify!(lcb_cntl_iops_info_st__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<lcb_cntl_iops_info_st__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(lcb_cntl_iops_info_st__bindgen_ty_1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_iops_info_st__bindgen_ty_1>())).v0 as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_iops_info_st__bindgen_ty_1),
"::",
stringify!(v0)
)
);
}
#[test]
fn bindgen_test_layout_lcb_cntl_iops_info_st() {
assert_eq!(
::std::mem::size_of::<lcb_cntl_iops_info_st>(),
24usize,
concat!("Size of: ", stringify!(lcb_cntl_iops_info_st))
);
assert_eq!(
::std::mem::align_of::<lcb_cntl_iops_info_st>(),
8usize,
concat!("Alignment of ", stringify!(lcb_cntl_iops_info_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_cntl_iops_info_st>())).version as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_iops_info_st),
"::",
stringify!(version)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_cntl_iops_info_st>())).v as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_iops_info_st),
"::",
stringify!(v)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rdb_ALLOCATOR {
_unused: [u8; 0],
}
pub type lcb_RDBALLOCFACTORY = ::std::option::Option<unsafe extern "C" fn() -> *mut rdb_ALLOCATOR>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_cntl_rdballocfactory {
pub factory: lcb_RDBALLOCFACTORY,
}
#[test]
fn bindgen_test_layout_lcb_cntl_rdballocfactory() {
assert_eq!(
::std::mem::size_of::<lcb_cntl_rdballocfactory>(),
8usize,
concat!("Size of: ", stringify!(lcb_cntl_rdballocfactory))
);
assert_eq!(
::std::mem::align_of::<lcb_cntl_rdballocfactory>(),
8usize,
concat!("Alignment of ", stringify!(lcb_cntl_rdballocfactory))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<lcb_cntl_rdballocfactory>())).factory as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_cntl_rdballocfactory),
"::",
stringify!(factory)
)
);
}
pub const lcb_BTYPE_LCB_BTYPE_UNSPEC: lcb_BTYPE = 0;
pub const lcb_BTYPE_LCB_BTYPE_COUCHBASE: lcb_BTYPE = 1;
pub const lcb_BTYPE_LCB_BTYPE_EPHEMERAL: lcb_BTYPE = 2;
pub const lcb_BTYPE_LCB_BTYPE_MEMCACHED: lcb_BTYPE = 3;
pub type lcb_BTYPE = u32;
pub const lcb_BOOTSTRAP_TRANSPORT_LCB_CONFIG_TRANSPORT_LIST_END: lcb_BOOTSTRAP_TRANSPORT = 0;
pub const lcb_BOOTSTRAP_TRANSPORT_LCB_CONFIG_TRANSPORT_HTTP: lcb_BOOTSTRAP_TRANSPORT = 1;
pub const lcb_BOOTSTRAP_TRANSPORT_LCB_CONFIG_TRANSPORT_CCCP: lcb_BOOTSTRAP_TRANSPORT = 2;
pub const lcb_BOOTSTRAP_TRANSPORT_LCB_CONFIG_TRANSPORT_MAX: lcb_BOOTSTRAP_TRANSPORT = 3;
pub type lcb_BOOTSTRAP_TRANSPORT = u32;
pub const lcb_INSTANCE_TYPE_LCB_TYPE_BUCKET: lcb_INSTANCE_TYPE = 0;
pub const lcb_INSTANCE_TYPE_LCB_TYPE_CLUSTER: lcb_INSTANCE_TYPE = 1;
pub type lcb_INSTANCE_TYPE = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CREATEOPTS_ {
_unused: [u8; 0],
}
pub type lcb_CREATEOPTS = lcb_CREATEOPTS_;
extern "C" {
pub fn lcb_createopts_create(
options: *mut *mut lcb_CREATEOPTS,
type_: lcb_INSTANCE_TYPE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_createopts_destroy(options: *mut lcb_CREATEOPTS) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_createopts_connstr(
options: *mut lcb_CREATEOPTS,
connstr: *const ::std::os::raw::c_char,
connstr_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_createopts_bucket(
options: *mut lcb_CREATEOPTS,
bucket: *const ::std::os::raw::c_char,
bucket_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_createopts_logger(
options: *mut lcb_CREATEOPTS,
logger: *const lcb_LOGGER,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_createopts_credentials(
options: *mut lcb_CREATEOPTS,
username: *const ::std::os::raw::c_char,
username_len: usize,
password: *const ::std::os::raw::c_char,
password_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_createopts_authenticator(
options: *mut lcb_CREATEOPTS,
auth: *mut lcb_AUTHENTICATOR,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_createopts_io(options: *mut lcb_CREATEOPTS, io: *mut lcb_io_opt_st) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_create(
instance: *mut *mut lcb_INSTANCE,
options: *const lcb_CREATEOPTS,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_connect(instance: *mut lcb_INSTANCE) -> lcb_STATUS;
}
pub type lcb_bootstrap_callback =
::std::option::Option<unsafe extern "C" fn(instance: *mut lcb_INSTANCE, err: lcb_STATUS)>;
extern "C" {
pub fn lcb_set_bootstrap_callback(
instance: *mut lcb_INSTANCE,
callback: lcb_bootstrap_callback,
) -> lcb_bootstrap_callback;
}
extern "C" {
pub fn lcb_get_bootstrap_status(instance: *mut lcb_INSTANCE) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_set_auth(instance: *mut lcb_INSTANCE, auth: *mut lcb_AUTHENTICATOR);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_MUTATION_TOKEN {
pub uuid_: u64,
pub seqno_: u64,
pub vbid_: u16,
}
#[test]
fn bindgen_test_layout_lcb_MUTATION_TOKEN() {
assert_eq!(
::std::mem::size_of::<lcb_MUTATION_TOKEN>(),
24usize,
concat!("Size of: ", stringify!(lcb_MUTATION_TOKEN))
);
assert_eq!(
::std::mem::align_of::<lcb_MUTATION_TOKEN>(),
8usize,
concat!("Alignment of ", stringify!(lcb_MUTATION_TOKEN))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_MUTATION_TOKEN>())).uuid_ as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lcb_MUTATION_TOKEN),
"::",
stringify!(uuid_)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_MUTATION_TOKEN>())).seqno_ as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lcb_MUTATION_TOKEN),
"::",
stringify!(seqno_)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lcb_MUTATION_TOKEN>())).vbid_ as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lcb_MUTATION_TOKEN),
"::",
stringify!(vbid_)
)
);
}
extern "C" {
pub fn lcb_mutation_token_is_valid(token: *const lcb_MUTATION_TOKEN) -> ::std::os::raw::c_int;
}
pub const lcb_RESPFLAGS_LCB_RESP_F_FINAL: lcb_RESPFLAGS = 1;
pub const lcb_RESPFLAGS_LCB_RESP_F_CLIENTGEN: lcb_RESPFLAGS = 2;
pub const lcb_RESPFLAGS_LCB_RESP_F_NMVGEN: lcb_RESPFLAGS = 4;
pub const lcb_RESPFLAGS_LCB_RESP_F_EXTDATA: lcb_RESPFLAGS = 8;
pub const lcb_RESPFLAGS_LCB_RESP_F_SDSINGLE: lcb_RESPFLAGS = 16;
pub const lcb_RESPFLAGS_LCB_RESP_F_ERRINFO: lcb_RESPFLAGS = 32;
pub type lcb_RESPFLAGS = u32;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_DEFAULT: lcb_CALLBACK_TYPE = 0;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_GET: lcb_CALLBACK_TYPE = 1;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_STORE: lcb_CALLBACK_TYPE = 2;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_COUNTER: lcb_CALLBACK_TYPE = 3;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_TOUCH: lcb_CALLBACK_TYPE = 4;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_REMOVE: lcb_CALLBACK_TYPE = 5;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_UNLOCK: lcb_CALLBACK_TYPE = 6;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_STATS: lcb_CALLBACK_TYPE = 7;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_VERSIONS: lcb_CALLBACK_TYPE = 8;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_VERBOSITY: lcb_CALLBACK_TYPE = 9;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_OBSERVE: lcb_CALLBACK_TYPE = 10;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_GETREPLICA: lcb_CALLBACK_TYPE = 11;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_ENDURE: lcb_CALLBACK_TYPE = 12;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_HTTP: lcb_CALLBACK_TYPE = 13;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_CBFLUSH: lcb_CALLBACK_TYPE = 14;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_OBSEQNO: lcb_CALLBACK_TYPE = 15;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_STOREDUR: lcb_CALLBACK_TYPE = 16;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_SDLOOKUP: lcb_CALLBACK_TYPE = 17;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_SDMUTATE: lcb_CALLBACK_TYPE = 18;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_NOOP: lcb_CALLBACK_TYPE = 19;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_PING: lcb_CALLBACK_TYPE = 20;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_DIAG: lcb_CALLBACK_TYPE = 21;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_COLLECTIONS_GET_MANIFEST: lcb_CALLBACK_TYPE = 22;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_GETCID: lcb_CALLBACK_TYPE = 23;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK_EXISTS: lcb_CALLBACK_TYPE = 24;
pub const lcb_CALLBACK_TYPE_LCB_CALLBACK__MAX: lcb_CALLBACK_TYPE = 25;
pub type lcb_CALLBACK_TYPE = u32;
pub const lcb_DURABILITY_LEVEL_LCB_DURABILITYLEVEL_NONE: lcb_DURABILITY_LEVEL = 0;
pub const lcb_DURABILITY_LEVEL_LCB_DURABILITYLEVEL_MAJORITY: lcb_DURABILITY_LEVEL = 1;
pub const lcb_DURABILITY_LEVEL_LCB_DURABILITYLEVEL_MAJORITY_AND_PERSIST_TO_ACTIVE:
lcb_DURABILITY_LEVEL = 2;
pub const lcb_DURABILITY_LEVEL_LCB_DURABILITYLEVEL_PERSIST_TO_MAJORITY: lcb_DURABILITY_LEVEL = 3;
pub type lcb_DURABILITY_LEVEL = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDBASE_ {
_unused: [u8; 0],
}
pub type lcb_CMDBASE = lcb_CMDBASE_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPBASE_ {
_unused: [u8; 0],
}
pub type lcb_RESPBASE = lcb_RESPBASE_;
pub type lcb_RESPCALLBACK = ::std::option::Option<
unsafe extern "C" fn(
instance: *mut lcb_INSTANCE,
cbtype: ::std::os::raw::c_int,
resp: *const lcb_RESPBASE,
),
>;
extern "C" {
pub fn lcb_install_callback(
instance: *mut lcb_INSTANCE,
cbtype: ::std::os::raw::c_int,
cb: lcb_RESPCALLBACK,
) -> lcb_RESPCALLBACK;
}
extern "C" {
pub fn lcb_get_callback(
instance: *mut lcb_INSTANCE,
cbtype: ::std::os::raw::c_int,
) -> lcb_RESPCALLBACK;
}
extern "C" {
pub fn lcb_strcbtype(cbtype: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPGET_ {
_unused: [u8; 0],
}
pub type lcb_RESPGET = lcb_RESPGET_;
extern "C" {
pub fn lcb_respget_status(resp: *const lcb_RESPGET) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respget_error_context(
resp: *const lcb_RESPGET,
ctx: *mut *const lcb_KEY_VALUE_ERROR_CONTEXT,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respget_cookie(
resp: *const lcb_RESPGET,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respget_cas(resp: *const lcb_RESPGET, cas: *mut u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respget_datatype(resp: *const lcb_RESPGET, datatype: *mut u8) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respget_flags(resp: *const lcb_RESPGET, flags: *mut u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respget_key(
resp: *const lcb_RESPGET,
key: *mut *const ::std::os::raw::c_char,
key_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respget_value(
resp: *const lcb_RESPGET,
value: *mut *const ::std::os::raw::c_char,
value_len: *mut usize,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDGET_ {
_unused: [u8; 0],
}
pub type lcb_CMDGET = lcb_CMDGET_;
extern "C" {
pub fn lcb_cmdget_create(cmd: *mut *mut lcb_CMDGET) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdget_destroy(cmd: *mut lcb_CMDGET) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdget_parent_span(cmd: *mut lcb_CMDGET, span: *mut lcbtrace_SPAN) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdget_collection(
cmd: *mut lcb_CMDGET,
scope: *const ::std::os::raw::c_char,
scope_len: usize,
collection: *const ::std::os::raw::c_char,
collection_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdget_key(
cmd: *mut lcb_CMDGET,
key: *const ::std::os::raw::c_char,
key_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdget_expiry(cmd: *mut lcb_CMDGET, expiration: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdget_locktime(cmd: *mut lcb_CMDGET, duration: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdget_timeout(cmd: *mut lcb_CMDGET, timeout: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_get(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDGET,
) -> lcb_STATUS;
}
pub const lcb_REPLICA_MODE_LCB_REPLICA_MODE_ANY: lcb_REPLICA_MODE = 0;
pub const lcb_REPLICA_MODE_LCB_REPLICA_MODE_ALL: lcb_REPLICA_MODE = 1;
pub const lcb_REPLICA_MODE_LCB_REPLICA_MODE_IDX0: lcb_REPLICA_MODE = 2;
pub const lcb_REPLICA_MODE_LCB_REPLICA_MODE_IDX1: lcb_REPLICA_MODE = 3;
pub const lcb_REPLICA_MODE_LCB_REPLICA_MODE_IDX2: lcb_REPLICA_MODE = 4;
pub const lcb_REPLICA_MODE_LCB_REPLICA_MODE__MAX: lcb_REPLICA_MODE = 5;
pub type lcb_REPLICA_MODE = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPGETREPLICA_ {
_unused: [u8; 0],
}
pub type lcb_RESPGETREPLICA = lcb_RESPGETREPLICA_;
extern "C" {
pub fn lcb_respgetreplica_status(resp: *const lcb_RESPGETREPLICA) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respgetreplica_error_context(
resp: *const lcb_RESPGETREPLICA,
ctx: *mut *const lcb_KEY_VALUE_ERROR_CONTEXT,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respgetreplica_cookie(
resp: *const lcb_RESPGETREPLICA,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respgetreplica_cas(resp: *const lcb_RESPGETREPLICA, cas: *mut u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respgetreplica_datatype(
resp: *const lcb_RESPGETREPLICA,
datatype: *mut u8,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respgetreplica_flags(resp: *const lcb_RESPGETREPLICA, flags: *mut u32)
-> lcb_STATUS;
}
extern "C" {
pub fn lcb_respgetreplica_key(
resp: *const lcb_RESPGETREPLICA,
key: *mut *const ::std::os::raw::c_char,
key_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respgetreplica_value(
resp: *const lcb_RESPGETREPLICA,
value: *mut *const ::std::os::raw::c_char,
value_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respgetreplica_is_final(resp: *const lcb_RESPGETREPLICA) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDGETREPLICA_ {
_unused: [u8; 0],
}
pub type lcb_CMDGETREPLICA = lcb_CMDGETREPLICA_;
extern "C" {
pub fn lcb_cmdgetreplica_create(
cmd: *mut *mut lcb_CMDGETREPLICA,
mode: lcb_REPLICA_MODE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdgetreplica_destroy(cmd: *mut lcb_CMDGETREPLICA) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdgetreplica_parent_span(
cmd: *mut lcb_CMDGETREPLICA,
span: *mut lcbtrace_SPAN,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdgetreplica_collection(
cmd: *mut lcb_CMDGETREPLICA,
scope: *const ::std::os::raw::c_char,
scope_len: usize,
collection: *const ::std::os::raw::c_char,
collection_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdgetreplica_key(
cmd: *mut lcb_CMDGETREPLICA,
key: *const ::std::os::raw::c_char,
key_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdgetreplica_timeout(cmd: *mut lcb_CMDGETREPLICA, timeout: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_getreplica(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDGETREPLICA,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPEXISTS_ {
_unused: [u8; 0],
}
pub type lcb_RESPEXISTS = lcb_RESPEXISTS_;
extern "C" {
pub fn lcb_respexists_status(resp: *const lcb_RESPEXISTS) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respexists_is_found(resp: *const lcb_RESPEXISTS) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcb_respexists_error_context(
resp: *const lcb_RESPEXISTS,
ctx: *mut *const lcb_KEY_VALUE_ERROR_CONTEXT,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respexists_cookie(
resp: *const lcb_RESPEXISTS,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respexists_cas(resp: *const lcb_RESPEXISTS, cas: *mut u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respexists_key(
resp: *const lcb_RESPEXISTS,
key: *mut *const ::std::os::raw::c_char,
key_len: *mut usize,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDEXISTS_ {
_unused: [u8; 0],
}
pub type lcb_CMDEXISTS = lcb_CMDEXISTS_;
extern "C" {
pub fn lcb_cmdexists_create(cmd: *mut *mut lcb_CMDEXISTS) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdexists_destroy(cmd: *mut lcb_CMDEXISTS) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdexists_parent_span(
cmd: *mut lcb_CMDEXISTS,
span: *mut lcbtrace_SPAN,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdexists_collection(
cmd: *mut lcb_CMDEXISTS,
scope: *const ::std::os::raw::c_char,
scope_len: usize,
collection: *const ::std::os::raw::c_char,
collection_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdexists_key(
cmd: *mut lcb_CMDEXISTS,
key: *const ::std::os::raw::c_char,
key_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdexists_timeout(cmd: *mut lcb_CMDEXISTS, timeout: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_exists(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDEXISTS,
) -> lcb_STATUS;
}
pub const lcb_STORE_OPERATION_LCB_STORE_UPSERT: lcb_STORE_OPERATION = 0;
pub const lcb_STORE_OPERATION_LCB_STORE_INSERT: lcb_STORE_OPERATION = 1;
pub const lcb_STORE_OPERATION_LCB_STORE_REPLACE: lcb_STORE_OPERATION = 2;
pub const lcb_STORE_OPERATION_LCB_STORE_APPEND: lcb_STORE_OPERATION = 4;
pub const lcb_STORE_OPERATION_LCB_STORE_PREPEND: lcb_STORE_OPERATION = 5;
pub type lcb_STORE_OPERATION = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPSTORE_ {
_unused: [u8; 0],
}
pub type lcb_RESPSTORE = lcb_RESPSTORE_;
extern "C" {
pub fn lcb_respstore_status(resp: *const lcb_RESPSTORE) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respstore_error_context(
resp: *const lcb_RESPSTORE,
ctx: *mut *const lcb_KEY_VALUE_ERROR_CONTEXT,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respstore_cookie(
resp: *const lcb_RESPSTORE,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respstore_cas(resp: *const lcb_RESPSTORE, cas: *mut u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respstore_key(
resp: *const lcb_RESPSTORE,
key: *mut *const ::std::os::raw::c_char,
key_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respstore_operation(
resp: *const lcb_RESPSTORE,
operation: *mut lcb_STORE_OPERATION,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respstore_mutation_token(
resp: *const lcb_RESPSTORE,
token: *mut lcb_MUTATION_TOKEN,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respstore_observe_attached(resp: *const lcb_RESPSTORE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcb_respstore_observe_stored(
resp: *const lcb_RESPSTORE,
store_ok: *mut ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respstore_observe_master_exists(
resp: *const lcb_RESPSTORE,
master_exists: *mut ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respstore_observe_master_persisted(
resp: *const lcb_RESPSTORE,
master_persisted: *mut ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respstore_observe_num_responses(
resp: *const lcb_RESPSTORE,
num_responses: *mut u16,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respstore_observe_num_persisted(
resp: *const lcb_RESPSTORE,
num_persisted: *mut u16,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respstore_observe_num_replicated(
resp: *const lcb_RESPSTORE,
num_replicated: *mut u16,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDSTORE_ {
_unused: [u8; 0],
}
pub type lcb_CMDSTORE = lcb_CMDSTORE_;
extern "C" {
pub fn lcb_cmdstore_create(
cmd: *mut *mut lcb_CMDSTORE,
operation: lcb_STORE_OPERATION,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdstore_destroy(cmd: *mut lcb_CMDSTORE) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdstore_parent_span(cmd: *mut lcb_CMDSTORE, span: *mut lcbtrace_SPAN)
-> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdstore_collection(
cmd: *mut lcb_CMDSTORE,
scope: *const ::std::os::raw::c_char,
scope_len: usize,
collection: *const ::std::os::raw::c_char,
collection_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdstore_key(
cmd: *mut lcb_CMDSTORE,
key: *const ::std::os::raw::c_char,
key_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdstore_value(
cmd: *mut lcb_CMDSTORE,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdstore_value_iov(
cmd: *mut lcb_CMDSTORE,
value: *const lcb_IOV,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdstore_expiry(cmd: *mut lcb_CMDSTORE, expiration: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdstore_cas(cmd: *mut lcb_CMDSTORE, cas: u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdstore_flags(cmd: *mut lcb_CMDSTORE, flags: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdstore_datatype(cmd: *mut lcb_CMDSTORE, datatype: u8) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdstore_durability(
cmd: *mut lcb_CMDSTORE,
level: lcb_DURABILITY_LEVEL,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdstore_durability_observe(
cmd: *mut lcb_CMDSTORE,
persist_to: ::std::os::raw::c_int,
replicate_to: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdstore_timeout(cmd: *mut lcb_CMDSTORE, timeout: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_store(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDSTORE,
) -> lcb_STATUS;
}
pub type lcb_open_callback =
::std::option::Option<unsafe extern "C" fn(instance: *mut lcb_INSTANCE, err: lcb_STATUS)>;
extern "C" {
pub fn lcb_set_open_callback(
instance: *mut lcb_INSTANCE,
callback: lcb_open_callback,
) -> lcb_open_callback;
}
extern "C" {
pub fn lcb_open(
instance: *mut lcb_INSTANCE,
bucket: *const ::std::os::raw::c_char,
bucket_len: usize,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPREMOVE_ {
_unused: [u8; 0],
}
pub type lcb_RESPREMOVE = lcb_RESPREMOVE_;
extern "C" {
pub fn lcb_respremove_status(resp: *const lcb_RESPREMOVE) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respremove_error_context(
resp: *const lcb_RESPREMOVE,
ctx: *mut *const lcb_KEY_VALUE_ERROR_CONTEXT,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respremove_cookie(
resp: *const lcb_RESPREMOVE,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respremove_cas(resp: *const lcb_RESPREMOVE, cas: *mut u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respremove_key(
resp: *const lcb_RESPREMOVE,
key: *mut *const ::std::os::raw::c_char,
key_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respremove_mutation_token(
resp: *const lcb_RESPREMOVE,
token: *mut lcb_MUTATION_TOKEN,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDREMOVE_ {
_unused: [u8; 0],
}
pub type lcb_CMDREMOVE = lcb_CMDREMOVE_;
extern "C" {
pub fn lcb_cmdremove_create(cmd: *mut *mut lcb_CMDREMOVE) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdremove_destroy(cmd: *mut lcb_CMDREMOVE) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdremove_parent_span(
cmd: *mut lcb_CMDREMOVE,
span: *mut lcbtrace_SPAN,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdremove_collection(
cmd: *mut lcb_CMDREMOVE,
scope: *const ::std::os::raw::c_char,
scope_len: usize,
collection: *const ::std::os::raw::c_char,
collection_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdremove_key(
cmd: *mut lcb_CMDREMOVE,
key: *const ::std::os::raw::c_char,
key_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdremove_cas(cmd: *mut lcb_CMDREMOVE, cas: u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdremove_durability(
cmd: *mut lcb_CMDREMOVE,
level: lcb_DURABILITY_LEVEL,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdremove_timeout(cmd: *mut lcb_CMDREMOVE, timeout: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_remove(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDREMOVE,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPCOUNTER_ {
_unused: [u8; 0],
}
pub type lcb_RESPCOUNTER = lcb_RESPCOUNTER_;
extern "C" {
pub fn lcb_respcounter_status(resp: *const lcb_RESPCOUNTER) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respcounter_error_context(
resp: *const lcb_RESPCOUNTER,
ctx: *mut *const lcb_KEY_VALUE_ERROR_CONTEXT,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respcounter_cookie(
resp: *const lcb_RESPCOUNTER,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respcounter_cas(resp: *const lcb_RESPCOUNTER, cas: *mut u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respcounter_key(
resp: *const lcb_RESPCOUNTER,
key: *mut *const ::std::os::raw::c_char,
key_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respcounter_mutation_token(
resp: *const lcb_RESPCOUNTER,
token: *mut lcb_MUTATION_TOKEN,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respcounter_value(resp: *const lcb_RESPCOUNTER, value: *mut u64) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDCOUNTER_ {
_unused: [u8; 0],
}
pub type lcb_CMDCOUNTER = lcb_CMDCOUNTER_;
extern "C" {
pub fn lcb_cmdcounter_create(cmd: *mut *mut lcb_CMDCOUNTER) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdcounter_destroy(cmd: *mut lcb_CMDCOUNTER) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdcounter_parent_span(
cmd: *mut lcb_CMDCOUNTER,
span: *mut lcbtrace_SPAN,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdcounter_collection(
cmd: *mut lcb_CMDCOUNTER,
scope: *const ::std::os::raw::c_char,
scope_len: usize,
collection: *const ::std::os::raw::c_char,
collection_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdcounter_key(
cmd: *mut lcb_CMDCOUNTER,
key: *const ::std::os::raw::c_char,
key_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdcounter_expiry(cmd: *mut lcb_CMDCOUNTER, expiration: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdcounter_delta(cmd: *mut lcb_CMDCOUNTER, number: i64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdcounter_initial(cmd: *mut lcb_CMDCOUNTER, number: u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdcounter_durability(
cmd: *mut lcb_CMDCOUNTER,
level: lcb_DURABILITY_LEVEL,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdcounter_cas(cmd: *mut lcb_CMDCOUNTER, cas: u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdcounter_timeout(cmd: *mut lcb_CMDCOUNTER, timeout: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_counter(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDCOUNTER,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPUNLOCK_ {
_unused: [u8; 0],
}
pub type lcb_RESPUNLOCK = lcb_RESPUNLOCK_;
extern "C" {
pub fn lcb_respunlock_status(resp: *const lcb_RESPUNLOCK) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respunlock_error_context(
resp: *const lcb_RESPUNLOCK,
ctx: *mut *const lcb_KEY_VALUE_ERROR_CONTEXT,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respunlock_cookie(
resp: *const lcb_RESPUNLOCK,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respunlock_cas(resp: *const lcb_RESPUNLOCK, cas: *mut u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respunlock_key(
resp: *const lcb_RESPUNLOCK,
key: *mut *const ::std::os::raw::c_char,
key_len: *mut usize,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDUNLOCK_ {
_unused: [u8; 0],
}
pub type lcb_CMDUNLOCK = lcb_CMDUNLOCK_;
extern "C" {
pub fn lcb_cmdunlock_create(cmd: *mut *mut lcb_CMDUNLOCK) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdunlock_destroy(cmd: *mut lcb_CMDUNLOCK) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdunlock_parent_span(
cmd: *mut lcb_CMDUNLOCK,
span: *mut lcbtrace_SPAN,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdunlock_collection(
cmd: *mut lcb_CMDUNLOCK,
scope: *const ::std::os::raw::c_char,
scope_len: usize,
collection: *const ::std::os::raw::c_char,
collection_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdunlock_key(
cmd: *mut lcb_CMDUNLOCK,
key: *const ::std::os::raw::c_char,
key_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdunlock_cas(cmd: *mut lcb_CMDUNLOCK, cas: u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdunlock_timeout(cmd: *mut lcb_CMDUNLOCK, timeout: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_unlock(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDUNLOCK,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPTOUCH_ {
_unused: [u8; 0],
}
pub type lcb_RESPTOUCH = lcb_RESPTOUCH_;
extern "C" {
pub fn lcb_resptouch_status(resp: *const lcb_RESPTOUCH) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_resptouch_error_context(
resp: *const lcb_RESPTOUCH,
ctx: *mut *const lcb_KEY_VALUE_ERROR_CONTEXT,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_resptouch_cookie(
resp: *const lcb_RESPTOUCH,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_resptouch_cas(resp: *const lcb_RESPTOUCH, cas: *mut u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_resptouch_key(
resp: *const lcb_RESPTOUCH,
key: *mut *const ::std::os::raw::c_char,
key_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_resptouch_mutation_token(
resp: *const lcb_RESPTOUCH,
token: *mut lcb_MUTATION_TOKEN,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDTOUCH_ {
_unused: [u8; 0],
}
pub type lcb_CMDTOUCH = lcb_CMDTOUCH_;
extern "C" {
pub fn lcb_cmdtouch_create(cmd: *mut *mut lcb_CMDTOUCH) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdtouch_destroy(cmd: *mut lcb_CMDTOUCH) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdtouch_parent_span(cmd: *mut lcb_CMDTOUCH, span: *mut lcbtrace_SPAN)
-> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdtouch_collection(
cmd: *mut lcb_CMDTOUCH,
scope: *const ::std::os::raw::c_char,
scope_len: usize,
collection: *const ::std::os::raw::c_char,
collection_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdtouch_key(
cmd: *mut lcb_CMDTOUCH,
key: *const ::std::os::raw::c_char,
key_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdtouch_expiry(cmd: *mut lcb_CMDTOUCH, expiration: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdtouch_durability(
cmd: *mut lcb_CMDTOUCH,
level: lcb_DURABILITY_LEVEL,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdtouch_timeout(cmd: *mut lcb_CMDTOUCH, timeout: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_touch(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDTOUCH,
) -> lcb_STATUS;
}
pub const lcb_PING_STATUS_LCB_PING_STATUS_OK: lcb_PING_STATUS = 0;
pub const lcb_PING_STATUS_LCB_PING_STATUS_TIMEOUT: lcb_PING_STATUS = 1;
pub const lcb_PING_STATUS_LCB_PING_STATUS_ERROR: lcb_PING_STATUS = 2;
pub const lcb_PING_STATUS_LCB_PING_STATUS_INVALID: lcb_PING_STATUS = 3;
pub const lcb_PING_STATUS_LCB_PING_STATUS__MAX: lcb_PING_STATUS = 4;
pub type lcb_PING_STATUS = u32;
pub const lcb_PING_SERVICE_LCB_PING_SERVICE_KV: lcb_PING_SERVICE = 0;
pub const lcb_PING_SERVICE_LCB_PING_SERVICE_VIEWS: lcb_PING_SERVICE = 1;
pub const lcb_PING_SERVICE_LCB_PING_SERVICE_QUERY: lcb_PING_SERVICE = 2;
pub const lcb_PING_SERVICE_LCB_PING_SERVICE_SEARCH: lcb_PING_SERVICE = 3;
pub const lcb_PING_SERVICE_LCB_PING_SERVICE_ANALYTICS: lcb_PING_SERVICE = 4;
pub const lcb_PING_SERVICE_LCB_PING_SERVICE__MAX: lcb_PING_SERVICE = 5;
pub type lcb_PING_SERVICE = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPPING_ {
_unused: [u8; 0],
}
pub type lcb_RESPPING = lcb_RESPPING_;
extern "C" {
pub fn lcb_respping_status(resp: *const lcb_RESPPING) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respping_cookie(
resp: *const lcb_RESPPING,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respping_value(
resp: *const lcb_RESPPING,
json: *mut *const ::std::os::raw::c_char,
json_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respping_result_size(resp: *const lcb_RESPPING) -> usize;
}
extern "C" {
pub fn lcb_respping_result_status(resp: *const lcb_RESPPING, index: usize) -> lcb_PING_STATUS;
}
extern "C" {
pub fn lcb_respping_result_id(
resp: *const lcb_RESPPING,
index: usize,
endpoint_id: *mut *const ::std::os::raw::c_char,
endpoint_id_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respping_result_service(
resp: *const lcb_RESPPING,
index: usize,
type_: *mut lcb_PING_SERVICE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respping_result_remote(
resp: *const lcb_RESPPING,
index: usize,
address: *mut *const ::std::os::raw::c_char,
address_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respping_result_local(
resp: *const lcb_RESPPING,
index: usize,
address: *mut *const ::std::os::raw::c_char,
address_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respping_result_latency(
resp: *const lcb_RESPPING,
index: usize,
latency: *mut u64,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respping_result_scope(
resp: *const lcb_RESPPING,
index: usize,
name: *mut *const ::std::os::raw::c_char,
name_len: *mut usize,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDPING_ {
_unused: [u8; 0],
}
pub type lcb_CMDPING = lcb_CMDPING_;
extern "C" {
pub fn lcb_cmdping_create(cmd: *mut *mut lcb_CMDPING) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdping_destroy(cmd: *mut lcb_CMDPING) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdping_parent_span(cmd: *mut lcb_CMDPING, span: *mut lcbtrace_SPAN) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdping_report_id(
cmd: *mut lcb_CMDPING,
report_id: *const ::std::os::raw::c_char,
report_id_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdping_all(cmd: *mut lcb_CMDPING) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdping_kv(cmd: *mut lcb_CMDPING, enable: ::std::os::raw::c_int) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdping_query(cmd: *mut lcb_CMDPING, enable: ::std::os::raw::c_int) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdping_views(cmd: *mut lcb_CMDPING, enable: ::std::os::raw::c_int) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdping_search(cmd: *mut lcb_CMDPING, enable: ::std::os::raw::c_int) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdping_analytics(
cmd: *mut lcb_CMDPING,
enable: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdping_no_metrics(
cmd: *mut lcb_CMDPING,
enable: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdping_encode_json(
cmd: *mut lcb_CMDPING,
enable: ::std::os::raw::c_int,
pretty: ::std::os::raw::c_int,
with_details: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_ping(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDPING,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPDIAG_ {
_unused: [u8; 0],
}
pub type lcb_RESPDIAG = lcb_RESPDIAG_;
extern "C" {
pub fn lcb_respdiag_status(resp: *const lcb_RESPDIAG) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respdiag_cookie(
resp: *const lcb_RESPDIAG,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respdiag_value(
resp: *const lcb_RESPDIAG,
json: *mut *const ::std::os::raw::c_char,
json_len: *mut usize,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDDIAG_ {
_unused: [u8; 0],
}
pub type lcb_CMDDIAG = lcb_CMDDIAG_;
extern "C" {
pub fn lcb_cmddiag_create(cmd: *mut *mut lcb_CMDDIAG) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmddiag_destroy(cmd: *mut lcb_CMDDIAG) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmddiag_report_id(
cmd: *mut lcb_CMDDIAG,
report_id: *const ::std::os::raw::c_char,
report_id_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmddiag_prettify(cmd: *mut lcb_CMDDIAG, enable: ::std::os::raw::c_int)
-> lcb_STATUS;
}
extern "C" {
pub fn lcb_diag(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDDIAG,
) -> lcb_STATUS;
}
pub const lcb_HTTP_TYPE_LCB_HTTP_TYPE_VIEW: lcb_HTTP_TYPE = 0;
pub const lcb_HTTP_TYPE_LCB_HTTP_TYPE_MANAGEMENT: lcb_HTTP_TYPE = 1;
pub const lcb_HTTP_TYPE_LCB_HTTP_TYPE_RAW: lcb_HTTP_TYPE = 2;
pub const lcb_HTTP_TYPE_LCB_HTTP_TYPE_QUERY: lcb_HTTP_TYPE = 3;
pub const lcb_HTTP_TYPE_LCB_HTTP_TYPE_SEARCH: lcb_HTTP_TYPE = 4;
pub const lcb_HTTP_TYPE_LCB_HTTP_TYPE_ANALYTICS: lcb_HTTP_TYPE = 5;
pub const lcb_HTTP_TYPE_LCB_HTTP_TYPE_PING: lcb_HTTP_TYPE = 6;
pub const lcb_HTTP_TYPE_LCB_HTTP_TYPE_MAX: lcb_HTTP_TYPE = 7;
pub type lcb_HTTP_TYPE = u32;
pub const lcb_HTTP_METHOD_LCB_HTTP_METHOD_GET: lcb_HTTP_METHOD = 0;
pub const lcb_HTTP_METHOD_LCB_HTTP_METHOD_POST: lcb_HTTP_METHOD = 1;
pub const lcb_HTTP_METHOD_LCB_HTTP_METHOD_PUT: lcb_HTTP_METHOD = 2;
pub const lcb_HTTP_METHOD_LCB_HTTP_METHOD_DELETE: lcb_HTTP_METHOD = 3;
pub const lcb_HTTP_METHOD_LCB_HTTP_METHOD_MAX: lcb_HTTP_METHOD = 4;
pub type lcb_HTTP_METHOD = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPHTTP_ {
_unused: [u8; 0],
}
pub type lcb_RESPHTTP = lcb_RESPHTTP_;
extern "C" {
pub fn lcb_resphttp_status(resp: *const lcb_RESPHTTP) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_resphttp_cookie(
resp: *const lcb_RESPHTTP,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_resphttp_http_status(resp: *const lcb_RESPHTTP, status: *mut u16) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_resphttp_path(
resp: *const lcb_RESPHTTP,
path: *mut *const ::std::os::raw::c_char,
path_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_resphttp_body(
resp: *const lcb_RESPHTTP,
body: *mut *const ::std::os::raw::c_char,
body_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_resphttp_handle(
resp: *const lcb_RESPHTTP,
handle: *mut *mut lcb_HTTP_HANDLE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_resphttp_error_context(
resp: *const lcb_RESPHTTP,
ctx: *mut *const lcb_HTTP_ERROR_CONTEXT,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_resphttp_is_final(resp: *const lcb_RESPHTTP) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcb_resphttp_headers(
resp: *const lcb_RESPHTTP,
headers: *mut *const *const ::std::os::raw::c_char,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDHTTP_ {
_unused: [u8; 0],
}
pub type lcb_CMDHTTP = lcb_CMDHTTP_;
extern "C" {
pub fn lcb_cmdhttp_create(cmd: *mut *mut lcb_CMDHTTP, type_: lcb_HTTP_TYPE) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdhttp_destroy(cmd: *mut lcb_CMDHTTP) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdhttp_parent_span(cmd: *mut lcb_CMDHTTP, span: *mut lcbtrace_SPAN) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdhttp_method(cmd: *mut lcb_CMDHTTP, method: lcb_HTTP_METHOD) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdhttp_path(
cmd: *mut lcb_CMDHTTP,
path: *const ::std::os::raw::c_char,
path_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdhttp_content_type(
cmd: *mut lcb_CMDHTTP,
content_type: *const ::std::os::raw::c_char,
content_type_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdhttp_body(
cmd: *mut lcb_CMDHTTP,
body: *const ::std::os::raw::c_char,
body_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdhttp_handle(
cmd: *mut lcb_CMDHTTP,
handle: *mut *mut lcb_HTTP_HANDLE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdhttp_username(
cmd: *mut lcb_CMDHTTP,
username: *const ::std::os::raw::c_char,
username_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdhttp_password(
cmd: *mut lcb_CMDHTTP,
password: *const ::std::os::raw::c_char,
password_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdhttp_host(
cmd: *mut lcb_CMDHTTP,
host: *const ::std::os::raw::c_char,
host_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdhttp_streaming(
cmd: *mut lcb_CMDHTTP,
streaming: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdhttp_skip_auth_header(
cmd: *mut lcb_CMDHTTP,
skip_auth: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdhttp_timeout(cmd: *mut lcb_CMDHTTP, timeout: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_http(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDHTTP,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_http_cancel(instance: *mut lcb_INSTANCE, handle: *mut lcb_HTTP_HANDLE)
-> lcb_STATUS;
}
extern "C" {
pub fn lcb_set_cookie(instance: *mut lcb_INSTANCE, cookie: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn lcb_get_cookie(instance: *mut lcb_INSTANCE) -> *const ::std::os::raw::c_void;
}
extern "C" {
pub fn lcb_tick_nowait(instance: *mut lcb_INSTANCE) -> lcb_STATUS;
}
pub const lcb_WAITFLAGS_LCB_WAIT_DEFAULT: lcb_WAITFLAGS = 0;
pub const lcb_WAITFLAGS_LCB_WAIT_NOCHECK: lcb_WAITFLAGS = 1;
pub type lcb_WAITFLAGS = u32;
extern "C" {
pub fn lcb_wait(instance: *mut lcb_INSTANCE, flags: lcb_WAITFLAGS) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_breakout(instance: *mut lcb_INSTANCE);
}
extern "C" {
pub fn lcb_is_waiting(instance: *mut lcb_INSTANCE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcb_sched_enter(instance: *mut lcb_INSTANCE);
}
extern "C" {
pub fn lcb_sched_leave(instance: *mut lcb_INSTANCE);
}
extern "C" {
pub fn lcb_sched_fail(instance: *mut lcb_INSTANCE);
}
extern "C" {
pub fn lcb_sched_flush(instance: *mut lcb_INSTANCE);
}
extern "C" {
pub fn lcb_destroy(instance: *mut lcb_INSTANCE);
}
pub type lcb_destroy_callback =
::std::option::Option<unsafe extern "C" fn(cookie: *const ::std::os::raw::c_void)>;
extern "C" {
pub fn lcb_set_destroy_callback(
instance: *mut lcb_INSTANCE,
arg1: lcb_destroy_callback,
) -> lcb_destroy_callback;
}
extern "C" {
pub fn lcb_destroy_async(instance: *mut lcb_INSTANCE, arg: *const ::std::os::raw::c_void);
}
pub const lcb_VALUEFLAGS_LCB_VALUE_RAW: lcb_VALUEFLAGS = 0;
pub const lcb_VALUEFLAGS_LCB_VALUE_F_JSON: lcb_VALUEFLAGS = 1;
pub const lcb_VALUEFLAGS_LCB_VALUE_F_SNAPPYCOMP: lcb_VALUEFLAGS = 2;
pub type lcb_VALUEFLAGS = u32;
extern "C" {
pub fn lcb_cntl(
instance: *mut lcb_INSTANCE,
mode: ::std::os::raw::c_int,
cmd: ::std::os::raw::c_int,
arg: *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cntl_string(
instance: *mut lcb_INSTANCE,
key: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cntl_setu32(
instance: *mut lcb_INSTANCE,
cmd: ::std::os::raw::c_int,
arg: lcb_U32,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cntl_getu32(instance: *mut lcb_INSTANCE, cmd: ::std::os::raw::c_int) -> lcb_U32;
}
extern "C" {
pub fn lcb_cntl_exists(ctl: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcb_refresh_config(instance: *mut lcb_INSTANCE);
}
extern "C" {
pub fn lcb_get_version(version: *mut lcb_U32) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn lcb_supports_feature(n: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcb_is_redacting_logs(instance: *mut lcb_INSTANCE) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_ANALYTICS_HANDLE_ {
_unused: [u8; 0],
}
pub type lcb_ANALYTICS_HANDLE = lcb_ANALYTICS_HANDLE_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_DEFERRED_HANDLE_ {
_unused: [u8; 0],
}
pub type lcb_DEFERRED_HANDLE = lcb_DEFERRED_HANDLE_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPANALYTICS_ {
_unused: [u8; 0],
}
pub type lcb_RESPANALYTICS = lcb_RESPANALYTICS_;
pub type lcb_ANALYTICS_CALLBACK = ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut lcb_INSTANCE,
arg2: ::std::os::raw::c_int,
arg3: *const lcb_RESPANALYTICS,
),
>;
extern "C" {
pub fn lcb_respanalytics_status(resp: *const lcb_RESPANALYTICS) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respanalytics_cookie(
resp: *const lcb_RESPANALYTICS,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respanalytics_row(
resp: *const lcb_RESPANALYTICS,
row: *mut *const ::std::os::raw::c_char,
row_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respanalytics_http_response(
resp: *const lcb_RESPANALYTICS,
http: *mut *const lcb_RESPHTTP,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respanalytics_handle(
resp: *const lcb_RESPANALYTICS,
handle: *mut *mut lcb_ANALYTICS_HANDLE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respanalytics_error_context(
resp: *const lcb_RESPANALYTICS,
ctx: *mut *const lcb_ANALYTICS_ERROR_CONTEXT,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respanalytics_is_final(resp: *const lcb_RESPANALYTICS) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcb_respanalytics_deferred_handle_extract(
resp: *const lcb_RESPANALYTICS,
handle: *mut *mut lcb_DEFERRED_HANDLE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_deferred_handle_destroy(handle: *mut lcb_DEFERRED_HANDLE) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_deferred_handle_status(
handle: *mut lcb_DEFERRED_HANDLE,
status: *mut *const ::std::os::raw::c_char,
status_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_deferred_handle_callback(
handle: *mut lcb_DEFERRED_HANDLE,
callback: lcb_ANALYTICS_CALLBACK,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_deferred_handle_poll(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
handle: *mut lcb_DEFERRED_HANDLE,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDANALYTICS_ {
_unused: [u8; 0],
}
pub type lcb_CMDANALYTICS = lcb_CMDANALYTICS_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_INGEST_OPTIONS_ {
_unused: [u8; 0],
}
pub type lcb_INGEST_OPTIONS = lcb_INGEST_OPTIONS_;
pub const lcb_INGEST_METHOD_LCB_INGEST_METHOD_NONE: lcb_INGEST_METHOD = 0;
pub const lcb_INGEST_METHOD_LCB_INGEST_METHOD_UPSERT: lcb_INGEST_METHOD = 1;
pub const lcb_INGEST_METHOD_LCB_INGEST_METHOD_INSERT: lcb_INGEST_METHOD = 2;
pub const lcb_INGEST_METHOD_LCB_INGEST_METHOD_REPLACE: lcb_INGEST_METHOD = 3;
pub const lcb_INGEST_METHOD_LCB_INGEST_METHOD__MAX: lcb_INGEST_METHOD = 4;
pub type lcb_INGEST_METHOD = u32;
pub const lcb_ANALYTICS_CONSISTENCY_LCB_ANALYTICS_CONSISTENCY_NOT_BOUNDED:
lcb_ANALYTICS_CONSISTENCY = 0;
pub const lcb_ANALYTICS_CONSISTENCY_LCB_ANALYTICS_CONSISTENCY_REQUEST_PLUS:
lcb_ANALYTICS_CONSISTENCY = 1;
pub type lcb_ANALYTICS_CONSISTENCY = u32;
pub const lcb_INGEST_STATUS_LCB_INGEST_STATUS_OK: lcb_INGEST_STATUS = 0;
pub const lcb_INGEST_STATUS_LCB_INGEST_STATUS_IGNORE: lcb_INGEST_STATUS = 1;
pub const lcb_INGEST_STATUS_LCB_INGEST_STATUS__MAX: lcb_INGEST_STATUS = 2;
pub type lcb_INGEST_STATUS = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_INGEST_PARAM_ {
_unused: [u8; 0],
}
pub type lcb_INGEST_PARAM = lcb_INGEST_PARAM_;
pub type lcb_INGEST_DATACONVERTER_CALLBACK = ::std::option::Option<
unsafe extern "C" fn(
instance: *mut lcb_INSTANCE,
param: *mut lcb_INGEST_PARAM,
) -> lcb_INGEST_STATUS,
>;
extern "C" {
pub fn lcb_ingest_options_create(options: *mut *mut lcb_INGEST_OPTIONS) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_ingest_options_destroy(options: *mut lcb_INGEST_OPTIONS) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_ingest_options_method(
options: *mut lcb_INGEST_OPTIONS,
method: lcb_INGEST_METHOD,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_ingest_options_expiry(
options: *mut lcb_INGEST_OPTIONS,
expiration: u32,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_ingest_options_ignore_error(
options: *mut lcb_INGEST_OPTIONS,
flag: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_ingest_options_data_converter(
options: *mut lcb_INGEST_OPTIONS,
callback: lcb_INGEST_DATACONVERTER_CALLBACK,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_ingest_dataconverter_param_cookie(
param: *mut lcb_INGEST_PARAM,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_ingest_dataconverter_param_row(
param: *mut lcb_INGEST_PARAM,
row: *mut *const ::std::os::raw::c_char,
row_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_ingest_dataconverter_param_method(
param: *mut lcb_INGEST_PARAM,
method: *mut lcb_INGEST_METHOD,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_ingest_dataconverter_param_set_id(
param: *mut lcb_INGEST_PARAM,
id: *const ::std::os::raw::c_char,
id_len: usize,
id_dtor: ::std::option::Option<unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char)>,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_ingest_dataconverter_param_set_out(
param: *mut lcb_INGEST_PARAM,
out: *const ::std::os::raw::c_char,
out_len: usize,
out_dtor: ::std::option::Option<unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char)>,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_create(cmd: *mut *mut lcb_CMDANALYTICS) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_destroy(cmd: *mut lcb_CMDANALYTICS) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_reset(cmd: *mut lcb_CMDANALYTICS) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_parent_span(
cmd: *mut lcb_CMDANALYTICS,
span: *mut lcbtrace_SPAN,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_callback(
cmd: *mut lcb_CMDANALYTICS,
callback: lcb_ANALYTICS_CALLBACK,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_encoded_payload(
cmd: *mut lcb_CMDANALYTICS,
query: *mut *const ::std::os::raw::c_char,
query_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_payload(
cmd: *mut lcb_CMDANALYTICS,
query: *const ::std::os::raw::c_char,
query_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_statement(
cmd: *mut lcb_CMDANALYTICS,
statement: *const ::std::os::raw::c_char,
statement_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_named_param(
cmd: *mut lcb_CMDANALYTICS,
name: *const ::std::os::raw::c_char,
name_len: usize,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_positional_param(
cmd: *mut lcb_CMDANALYTICS,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_ingest_options(
cmd: *mut lcb_CMDANALYTICS,
options: *mut lcb_INGEST_OPTIONS,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_deferred(
cmd: *mut lcb_CMDANALYTICS,
deferred: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_client_context_id(
cmd: *mut lcb_CMDANALYTICS,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_readonly(
cmd: *mut lcb_CMDANALYTICS,
readonly: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_priority(
cmd: *mut lcb_CMDANALYTICS,
priority: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_consistency(
cmd: *mut lcb_CMDANALYTICS,
level: lcb_ANALYTICS_CONSISTENCY,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_option(
cmd: *mut lcb_CMDANALYTICS,
name: *const ::std::os::raw::c_char,
name_len: usize,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_handle(
cmd: *mut lcb_CMDANALYTICS,
handle: *mut *mut lcb_ANALYTICS_HANDLE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdanalytics_timeout(cmd: *mut lcb_CMDANALYTICS, timeout: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_analytics(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDANALYTICS,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_analytics_cancel(
instance: *mut lcb_INSTANCE,
handle: *mut lcb_ANALYTICS_HANDLE,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_SEARCH_HANDLE_ {
_unused: [u8; 0],
}
pub type lcb_SEARCH_HANDLE = lcb_SEARCH_HANDLE_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPSEARCH_ {
_unused: [u8; 0],
}
pub type lcb_RESPSEARCH = lcb_RESPSEARCH_;
extern "C" {
pub fn lcb_respsearch_status(resp: *const lcb_RESPSEARCH) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respsearch_cookie(
resp: *const lcb_RESPSEARCH,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respsearch_row(
resp: *const lcb_RESPSEARCH,
row: *mut *const ::std::os::raw::c_char,
row_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respsearch_http_response(
resp: *const lcb_RESPSEARCH,
http: *mut *const lcb_RESPHTTP,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respsearch_handle(
resp: *const lcb_RESPSEARCH,
handle: *mut *mut lcb_SEARCH_HANDLE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respsearch_error_context(
resp: *const lcb_RESPSEARCH,
ctx: *mut *const lcb_SEARCH_ERROR_CONTEXT,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respsearch_is_final(resp: *const lcb_RESPSEARCH) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDSEARCH_ {
_unused: [u8; 0],
}
pub type lcb_CMDSEARCH = lcb_CMDSEARCH_;
pub type lcb_SEARCH_CALLBACK = ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut lcb_INSTANCE,
arg2: ::std::os::raw::c_int,
arg3: *const lcb_RESPSEARCH,
),
>;
extern "C" {
pub fn lcb_cmdsearch_create(cmd: *mut *mut lcb_CMDSEARCH) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsearch_destroy(cmd: *mut lcb_CMDSEARCH) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsearch_parent_span(
cmd: *mut lcb_CMDSEARCH,
span: *mut lcbtrace_SPAN,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsearch_callback(
cmd: *mut lcb_CMDSEARCH,
callback: lcb_SEARCH_CALLBACK,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsearch_payload(
cmd: *mut lcb_CMDSEARCH,
payload: *const ::std::os::raw::c_char,
payload_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsearch_handle(
cmd: *mut lcb_CMDSEARCH,
handle: *mut *mut lcb_SEARCH_HANDLE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsearch_timeout(cmd: *mut lcb_CMDSEARCH, timeout: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_search(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDSEARCH,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_search_cancel(
instance: *mut lcb_INSTANCE,
handle: *mut lcb_SEARCH_HANDLE,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPQUERY_ {
_unused: [u8; 0],
}
pub type lcb_RESPQUERY = lcb_RESPQUERY_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDQUERY_ {
_unused: [u8; 0],
}
pub type lcb_CMDQUERY = lcb_CMDQUERY_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_QUERY_HANDLE_ {
_unused: [u8; 0],
}
pub type lcb_QUERY_HANDLE = lcb_QUERY_HANDLE_;
pub type lcb_QUERY_CALLBACK = ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut lcb_INSTANCE,
arg2: ::std::os::raw::c_int,
arg3: *const lcb_RESPQUERY,
),
>;
pub const lcb_QUERY_CONSISTENCY_LCB_QUERY_CONSISTENCY_NONE: lcb_QUERY_CONSISTENCY = 0;
pub const lcb_QUERY_CONSISTENCY_LCB_QUERY_CONSISTENCY_RYOW: lcb_QUERY_CONSISTENCY = 1;
pub const lcb_QUERY_CONSISTENCY_LCB_QUERY_CONSISTENCY_REQUEST: lcb_QUERY_CONSISTENCY = 2;
pub const lcb_QUERY_CONSISTENCY_LCB_QUERY_CONSISTENCY_STATEMENT: lcb_QUERY_CONSISTENCY = 3;
pub type lcb_QUERY_CONSISTENCY = u32;
pub const lcb_QUERY_PROFILE_LCB_QUERY_PROFILE_OFF: lcb_QUERY_PROFILE = 0;
pub const lcb_QUERY_PROFILE_LCB_QUERY_PROFILE_PHASES: lcb_QUERY_PROFILE = 1;
pub const lcb_QUERY_PROFILE_LCB_QUERY_PROFILE_TIMINGS: lcb_QUERY_PROFILE = 2;
pub type lcb_QUERY_PROFILE = u32;
extern "C" {
pub fn lcb_respquery_status(resp: *const lcb_RESPQUERY) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respquery_cookie(
resp: *const lcb_RESPQUERY,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respquery_row(
resp: *const lcb_RESPQUERY,
row: *mut *const ::std::os::raw::c_char,
row_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respquery_http_response(
resp: *const lcb_RESPQUERY,
http: *mut *const lcb_RESPHTTP,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respquery_handle(
resp: *const lcb_RESPQUERY,
handle: *mut *mut lcb_QUERY_HANDLE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respquery_error_context(
resp: *const lcb_RESPQUERY,
ctx: *mut *const lcb_QUERY_ERROR_CONTEXT,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respquery_is_final(resp: *const lcb_RESPQUERY) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcb_cmdquery_create(cmd: *mut *mut lcb_CMDQUERY) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_destroy(cmd: *mut lcb_CMDQUERY) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_reset(cmd: *mut lcb_CMDQUERY) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_encoded_payload(
cmd: *mut lcb_CMDQUERY,
payload: *mut *const ::std::os::raw::c_char,
payload_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_parent_span(cmd: *mut lcb_CMDQUERY, span: *mut lcbtrace_SPAN)
-> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_callback(
cmd: *mut lcb_CMDQUERY,
callback: lcb_QUERY_CALLBACK,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_payload(
cmd: *mut lcb_CMDQUERY,
query: *const ::std::os::raw::c_char,
query_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_statement(
cmd: *mut lcb_CMDQUERY,
statement: *const ::std::os::raw::c_char,
statement_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_named_param(
cmd: *mut lcb_CMDQUERY,
name: *const ::std::os::raw::c_char,
name_len: usize,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_positional_param(
cmd: *mut lcb_CMDQUERY,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_adhoc(cmd: *mut lcb_CMDQUERY, adhoc: ::std::os::raw::c_int) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_client_context_id(
cmd: *mut lcb_CMDQUERY,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_pretty(cmd: *mut lcb_CMDQUERY, pretty: ::std::os::raw::c_int)
-> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_readonly(
cmd: *mut lcb_CMDQUERY,
readonly: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_metrics(
cmd: *mut lcb_CMDQUERY,
metrics: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_scan_cap(
cmd: *mut lcb_CMDQUERY,
value: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_scan_wait(cmd: *mut lcb_CMDQUERY, us: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_profile(cmd: *mut lcb_CMDQUERY, mode: lcb_QUERY_PROFILE) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_pipeline_cap(
cmd: *mut lcb_CMDQUERY,
value: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_pipeline_batch(
cmd: *mut lcb_CMDQUERY,
value: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_max_parallelism(
cmd: *mut lcb_CMDQUERY,
value: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_consistency(
cmd: *mut lcb_CMDQUERY,
mode: lcb_QUERY_CONSISTENCY,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_consistency_token_for_keyspace(
cmd: *mut lcb_CMDQUERY,
keyspace: *const ::std::os::raw::c_char,
keyspace_len: usize,
token: *const lcb_MUTATION_TOKEN,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_consistency_tokens(
cmd: *mut lcb_CMDQUERY,
instance: *mut lcb_INSTANCE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_option(
cmd: *mut lcb_CMDQUERY,
name: *const ::std::os::raw::c_char,
name_len: usize,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_handle(
cmd: *mut lcb_CMDQUERY,
handle: *mut *mut lcb_QUERY_HANDLE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdquery_timeout(cmd: *mut lcb_CMDQUERY, timeout: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_query(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDQUERY,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_query_cancel(
instance: *mut lcb_INSTANCE,
handle: *mut lcb_QUERY_HANDLE,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPVIEW_ {
_unused: [u8; 0],
}
pub type lcb_RESPVIEW = lcb_RESPVIEW_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDVIEW_ {
_unused: [u8; 0],
}
pub type lcb_CMDVIEW = lcb_CMDVIEW_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_VIEW_HANDLE_ {
_unused: [u8; 0],
}
pub type lcb_VIEW_HANDLE = lcb_VIEW_HANDLE_;
pub type lcb_VIEW_CALLBACK = ::std::option::Option<
unsafe extern "C" fn(
instance: *mut lcb_INSTANCE,
cbtype: ::std::os::raw::c_int,
row: *const lcb_RESPVIEW,
),
>;
extern "C" {
pub fn lcb_respview_status(resp: *const lcb_RESPVIEW) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respview_cookie(
resp: *const lcb_RESPVIEW,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respview_key(
resp: *const lcb_RESPVIEW,
key: *mut *const ::std::os::raw::c_char,
key_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respview_doc_id(
resp: *const lcb_RESPVIEW,
doc_id: *mut *const ::std::os::raw::c_char,
doc_id_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respview_row(
resp: *const lcb_RESPVIEW,
row: *mut *const ::std::os::raw::c_char,
row_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respview_document(
resp: *const lcb_RESPVIEW,
doc: *mut *const lcb_RESPGET,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respview_http_response(
resp: *const lcb_RESPVIEW,
http: *mut *const lcb_RESPHTTP,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respview_handle(
resp: *const lcb_RESPVIEW,
handle: *mut *mut lcb_VIEW_HANDLE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respview_error_context(
resp: *const lcb_RESPVIEW,
ctx: *mut *const lcb_VIEW_ERROR_CONTEXT,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respview_is_final(resp: *const lcb_RESPVIEW) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcb_cmdview_create(cmd: *mut *mut lcb_CMDVIEW) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdview_destroy(cmd: *mut lcb_CMDVIEW) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdview_parent_span(cmd: *mut lcb_CMDVIEW, span: *mut lcbtrace_SPAN) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdview_callback(cmd: *mut lcb_CMDVIEW, callback: lcb_VIEW_CALLBACK) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdview_design_document(
cmd: *mut lcb_CMDVIEW,
ddoc: *const ::std::os::raw::c_char,
ddoc_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdview_view_name(
cmd: *mut lcb_CMDVIEW,
view: *const ::std::os::raw::c_char,
view_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdview_option_string(
cmd: *mut lcb_CMDVIEW,
optstr: *const ::std::os::raw::c_char,
optstr_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdview_post_data(
cmd: *mut lcb_CMDVIEW,
data: *const ::std::os::raw::c_char,
data_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdview_include_docs(
cmd: *mut lcb_CMDVIEW,
include_docs: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdview_max_concurrent_docs(cmd: *mut lcb_CMDVIEW, num: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdview_no_row_parse(
cmd: *mut lcb_CMDVIEW,
flag: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdview_handle(
cmd: *mut lcb_CMDVIEW,
handle: *mut *mut lcb_VIEW_HANDLE,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdview_timeout(cmd: *mut lcb_CMDVIEW, timeout: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_view(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDVIEW,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_view_cancel(instance: *mut lcb_INSTANCE, handle: *mut lcb_VIEW_HANDLE)
-> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_RESPSUBDOC_ {
_unused: [u8; 0],
}
pub type lcb_RESPSUBDOC = lcb_RESPSUBDOC_;
extern "C" {
pub fn lcb_respsubdoc_status(resp: *const lcb_RESPSUBDOC) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respsubdoc_error_context(
resp: *const lcb_RESPSUBDOC,
ctx: *mut *const lcb_KEY_VALUE_ERROR_CONTEXT,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respsubdoc_cookie(
resp: *const lcb_RESPSUBDOC,
cookie: *mut *mut ::std::os::raw::c_void,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respsubdoc_cas(resp: *const lcb_RESPSUBDOC, cas: *mut u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respsubdoc_key(
resp: *const lcb_RESPSUBDOC,
key: *mut *const ::std::os::raw::c_char,
key_len: *mut usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respsubdoc_mutation_token(
resp: *const lcb_RESPSUBDOC,
token: *mut lcb_MUTATION_TOKEN,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respsubdoc_result_size(resp: *const lcb_RESPSUBDOC) -> usize;
}
extern "C" {
pub fn lcb_respsubdoc_result_status(resp: *const lcb_RESPSUBDOC, index: usize) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_respsubdoc_result_value(
resp: *const lcb_RESPSUBDOC,
index: usize,
value: *mut *const ::std::os::raw::c_char,
value_len: *mut usize,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_SUBDOCSPECS_ {
_unused: [u8; 0],
}
pub type lcb_SUBDOCSPECS = lcb_SUBDOCSPECS_;
extern "C" {
pub fn lcb_subdocspecs_create(
operations: *mut *mut lcb_SUBDOCSPECS,
capacity: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_subdocspecs_destroy(operations: *mut lcb_SUBDOCSPECS) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_subdocspecs_get(
operations: *mut lcb_SUBDOCSPECS,
index: usize,
flags: u32,
path: *const ::std::os::raw::c_char,
path_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_subdocspecs_exists(
operations: *mut lcb_SUBDOCSPECS,
index: usize,
flags: u32,
path: *const ::std::os::raw::c_char,
path_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_subdocspecs_replace(
operations: *mut lcb_SUBDOCSPECS,
index: usize,
flags: u32,
path: *const ::std::os::raw::c_char,
path_len: usize,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_subdocspecs_dict_add(
operations: *mut lcb_SUBDOCSPECS,
index: usize,
flags: u32,
path: *const ::std::os::raw::c_char,
path_len: usize,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_subdocspecs_dict_upsert(
operations: *mut lcb_SUBDOCSPECS,
index: usize,
flags: u32,
path: *const ::std::os::raw::c_char,
path_len: usize,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_subdocspecs_array_add_first(
operations: *mut lcb_SUBDOCSPECS,
index: usize,
flags: u32,
path: *const ::std::os::raw::c_char,
path_len: usize,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_subdocspecs_array_add_last(
operations: *mut lcb_SUBDOCSPECS,
index: usize,
flags: u32,
path: *const ::std::os::raw::c_char,
path_len: usize,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_subdocspecs_array_add_unique(
operations: *mut lcb_SUBDOCSPECS,
index: usize,
flags: u32,
path: *const ::std::os::raw::c_char,
path_len: usize,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_subdocspecs_array_insert(
operations: *mut lcb_SUBDOCSPECS,
index: usize,
flags: u32,
path: *const ::std::os::raw::c_char,
path_len: usize,
value: *const ::std::os::raw::c_char,
value_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_subdocspecs_counter(
operations: *mut lcb_SUBDOCSPECS,
index: usize,
flags: u32,
path: *const ::std::os::raw::c_char,
path_len: usize,
delta: i64,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_subdocspecs_remove(
operations: *mut lcb_SUBDOCSPECS,
index: usize,
flags: u32,
path: *const ::std::os::raw::c_char,
path_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_subdocspecs_get_count(
operations: *mut lcb_SUBDOCSPECS,
index: usize,
flags: u32,
path: *const ::std::os::raw::c_char,
path_len: usize,
) -> lcb_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lcb_CMDSUBDOC_ {
_unused: [u8; 0],
}
pub type lcb_CMDSUBDOC = lcb_CMDSUBDOC_;
extern "C" {
pub fn lcb_cmdsubdoc_create(cmd: *mut *mut lcb_CMDSUBDOC) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsubdoc_destroy(cmd: *mut lcb_CMDSUBDOC) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsubdoc_parent_span(
cmd: *mut lcb_CMDSUBDOC,
span: *mut lcbtrace_SPAN,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsubdoc_collection(
cmd: *mut lcb_CMDSUBDOC,
scope: *const ::std::os::raw::c_char,
scope_len: usize,
collection: *const ::std::os::raw::c_char,
collection_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsubdoc_key(
cmd: *mut lcb_CMDSUBDOC,
key: *const ::std::os::raw::c_char,
key_len: usize,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsubdoc_cas(cmd: *mut lcb_CMDSUBDOC, cas: u64) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsubdoc_specs(
cmd: *mut lcb_CMDSUBDOC,
operations: *const lcb_SUBDOCSPECS,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsubdoc_expiry(cmd: *mut lcb_CMDSUBDOC, expiration: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsubdoc_durability(
cmd: *mut lcb_CMDSUBDOC,
level: lcb_DURABILITY_LEVEL,
) -> lcb_STATUS;
}
pub const lcb_SUBDOC_STORE_SEMANTICS_LCB_SUBDOC_STORE_REPLACE: lcb_SUBDOC_STORE_SEMANTICS = 0;
pub const lcb_SUBDOC_STORE_SEMANTICS_LCB_SUBDOC_STORE_UPSERT: lcb_SUBDOC_STORE_SEMANTICS = 1;
pub const lcb_SUBDOC_STORE_SEMANTICS_LCB_SUBDOC_STORE_INSERT: lcb_SUBDOC_STORE_SEMANTICS = 2;
pub type lcb_SUBDOC_STORE_SEMANTICS = u32;
extern "C" {
pub fn lcb_cmdsubdoc_store_semantics(
cmd: *mut lcb_CMDSUBDOC,
mode: lcb_SUBDOC_STORE_SEMANTICS,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsubdoc_access_deleted(
cmd: *mut lcb_CMDSUBDOC,
flag: ::std::os::raw::c_int,
) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_cmdsubdoc_timeout(cmd: *mut lcb_CMDSUBDOC, timeout: u32) -> lcb_STATUS;
}
extern "C" {
pub fn lcb_subdoc(
instance: *mut lcb_INSTANCE,
cookie: *mut ::std::os::raw::c_void,
cmd: *const lcb_CMDSUBDOC,
) -> lcb_STATUS;
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
pub gp_offset: ::std::os::raw::c_uint,
pub fp_offset: ::std::os::raw::c_uint,
pub overflow_arg_area: *mut ::std::os::raw::c_void,
pub reg_save_area: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout___va_list_tag() {
assert_eq!(
::std::mem::size_of::<__va_list_tag>(),
24usize,
concat!("Size of: ", stringify!(__va_list_tag))
);
assert_eq!(
::std::mem::align_of::<__va_list_tag>(),
8usize,
concat!("Alignment of ", stringify!(__va_list_tag))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).gp_offset as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(gp_offset)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).fp_offset as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(fp_offset)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).overflow_arg_area as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(overflow_arg_area)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).reg_save_area as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(reg_save_area)
)
);
}