1
2
3
/* automatically generated by rust-bindgen */

pub const LIBCOUCHBASE_COUCHBASE_H : u32 = 1 ; pub const LCB_CONFIG_MCD_PORT : u32 = 11210 ; pub const LCB_CONFIG_MCD_SSL_PORT : u32 = 11207 ; pub const LCB_CONFIG_HTTP_PORT : u32 = 8091 ; pub const LCB_CONFIG_HTTP_SSL_PORT : u32 = 18091 ; pub const LCB_CONFIG_MCCOMPAT_PORT : u32 = 11211 ; pub const _TIME_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __STDC_NO_THREADS__ : u32 = 1 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 27 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const _BITS_TIME_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const CLOCK_REALTIME : u32 = 0 ; pub const CLOCK_MONOTONIC : u32 = 1 ; pub const CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const CLOCK_MONOTONIC_RAW : u32 = 4 ; pub const CLOCK_REALTIME_COARSE : u32 = 5 ; pub const CLOCK_MONOTONIC_COARSE : u32 = 6 ; pub const CLOCK_BOOTTIME : u32 = 7 ; pub const CLOCK_REALTIME_ALARM : u32 = 8 ; pub const CLOCK_BOOTTIME_ALARM : u32 = 9 ; pub const CLOCK_TAI : u32 = 11 ; pub const TIMER_ABSTIME : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __struct_tm_defined : u32 = 1 ; pub const __timespec_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __itimerspec_defined : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const TIME_UTC : u32 = 1 ; pub const __GNUC_VA_LIST : u32 = 1 ; pub const _STDIO_H : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const _BITS_LIBIO_H : u32 = 1 ; pub const _BITS_G_CONFIG_H : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _G_HAVE_MMAP : u32 = 1 ; pub const _G_HAVE_MREMAP : u32 = 1 ; pub const _G_IO_IO_FILE_VERSION : u32 = 131073 ; pub const _G_BUFSIZ : u32 = 8192 ; pub const _IO_BUFSIZ : u32 = 8192 ; pub const _IO_UNIFIED_JUMPTABLES : u32 = 1 ; pub const EOF : i32 = -1 ; pub const _IOS_INPUT : u32 = 1 ; pub const _IOS_OUTPUT : u32 = 2 ; pub const _IOS_ATEND : u32 = 4 ; pub const _IOS_APPEND : u32 = 8 ; pub const _IOS_TRUNC : u32 = 16 ; pub const _IOS_NOCREATE : u32 = 32 ; pub const _IOS_NOREPLACE : u32 = 64 ; pub const _IOS_BIN : u32 = 128 ; pub const _IO_MAGIC : u32 = 4222418944 ; pub const _OLD_STDIO_MAGIC : u32 = 4206624768 ; pub const _IO_MAGIC_MASK : u32 = 4294901760 ; pub const _IO_USER_BUF : u32 = 1 ; pub const _IO_UNBUFFERED : u32 = 2 ; pub const _IO_NO_READS : u32 = 4 ; pub const _IO_NO_WRITES : u32 = 8 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_DELETE_DONT_CLOSE : u32 = 64 ; pub const _IO_LINKED : u32 = 128 ; pub const _IO_IN_BACKUP : u32 = 256 ; pub const _IO_LINE_BUF : u32 = 512 ; pub const _IO_TIED_PUT_GET : u32 = 1024 ; pub const _IO_CURRENTLY_PUTTING : u32 = 2048 ; pub const _IO_IS_APPENDING : u32 = 4096 ; pub const _IO_IS_FILEBUF : u32 = 8192 ; pub const _IO_BAD_SEEN : u32 = 16384 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const _IO_FLAGS2_MMAP : u32 = 1 ; pub const _IO_FLAGS2_NOTCANCEL : u32 = 2 ; pub const _IO_FLAGS2_USER_WBUF : u32 = 8 ; pub const _IO_SKIPWS : u32 = 1 ; pub const _IO_LEFT : u32 = 2 ; pub const _IO_RIGHT : u32 = 4 ; pub const _IO_INTERNAL : u32 = 8 ; pub const _IO_DEC : u32 = 16 ; pub const _IO_OCT : u32 = 32 ; pub const _IO_HEX : u32 = 64 ; pub const _IO_SHOWBASE : u32 = 128 ; pub const _IO_SHOWPOINT : u32 = 256 ; pub const _IO_UPPERCASE : u32 = 512 ; pub const _IO_SHOWPOS : u32 = 1024 ; pub const _IO_SCIENTIFIC : u32 = 2048 ; pub const _IO_FIXED : u32 = 4096 ; pub const _IO_UNITBUF : u32 = 8192 ; pub const _IO_STDIO : u32 = 16384 ; pub const _IO_DONT_CLOSE : u32 = 32768 ; pub const _IO_BOOLALPHA : u32 = 65536 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & 'static [ u8 ; 5usize ] = b"/tmp\0" ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __FD_ZERO_STOS : & 'static [ u8 ; 6usize ] = b"stosq\0" ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _SYS_SYSMACROS_H : u32 = 1 ; pub const _BITS_SYSMACROS_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const __PTHREAD_MUTEX_LOCK_ELISION : u32 = 1 ; pub const __PTHREAD_MUTEX_NUSERS_AFTER_KIND : u32 = 0 ; pub const __PTHREAD_MUTEX_USE_UNION : u32 = 0 ; pub const __PTHREAD_RWLOCK_INT_FLAGS_SHARED : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = -128 ; pub const INT16_MIN : i32 = -32768 ; pub const INT32_MIN : i32 = -2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = -128 ; pub const INT_LEAST16_MIN : i32 = -32768 ; pub const INT_LEAST32_MIN : i32 = -2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = -128 ; pub const INT_FAST16_MIN : i64 = -9223372036854775808 ; pub const INT_FAST32_MIN : i64 = -9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = -1 ; pub const UINT_FAST32_MAX : i32 = -1 ; pub const INTPTR_MIN : i64 = -9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = -1 ; pub const PTRDIFF_MIN : i64 = -9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = -2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = -1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const LIBCOUCHBASE_ASSERT_H : u32 = 1 ; pub const _ASSERT_H : u32 = 1 ; pub const LIBCOUCHBASE_ERROR_H : u32 = 1 ; pub const LCB__ERR_USEDETAILS : & 'static [ u8 ; 160usize ] = b"Enable detailed error codes (via LCB_CNTL_DETAILED_ERRCODES, or via `detailed_errcodes` in the connection string) and/or enable logging to get more information\0" ; 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 LIBCOUCHBASE_CONFIGURATION_H : u32 = 1 ; pub const LCB_VERSION_STRING : & 'static [ u8 ; 14usize ] = b"3.0.0-alpha.2\0" ; pub const LCB_VERSION : u32 = 0 ; pub const LCB_VERSION_CHANGESET : & 'static [ u8 ; 11usize ] = b"0xdeadbeef\0" ; pub const LCBTRACE_F_THRESHOLD : u32 = 1 ; pub const LCBTRACE_NOW : u32 = 0 ; pub const LCBTRACE_OP_REQUEST_ENCODING : & 'static [ u8 ; 17usize ] = b"request_encoding\0" ; pub const LCBTRACE_OP_DISPATCH_TO_SERVER : & 'static [ u8 ; 19usize ] = b"dispatch_to_server\0" ; pub const LCBTRACE_OP_RESPONSE_DECODING : & 'static [ u8 ; 18usize ] = b"response_decoding\0" ; pub const LCBTRACE_OP_ADD : & 'static [ u8 ; 4usize ] = b"add\0" ; pub const LCBTRACE_OP_APPEND : & 'static [ u8 ; 7usize ] = b"append\0" ; pub const LCBTRACE_OP_COUNTER : & 'static [ u8 ; 8usize ] = b"counter\0" ; pub const LCBTRACE_OP_GET : & 'static [ u8 ; 4usize ] = b"get\0" ; pub const LCBTRACE_OP_GET_FROM_REPLICA : & 'static [ u8 ; 17usize ] = b"get_from_replica\0" ; pub const LCBTRACE_OP_INSERT : & 'static [ u8 ; 7usize ] = b"insert\0" ; pub const LCBTRACE_OP_OBSERVE_CAS : & 'static [ u8 ; 12usize ] = b"observe_cas\0" ; pub const LCBTRACE_OP_OBSERVE_CAS_ROUND : & 'static [ u8 ; 18usize ] = b"observe_cas_round\0" ; pub const LCBTRACE_OP_OBSERVE_SEQNO : & 'static [ u8 ; 14usize ] = b"observe_seqno\0" ; pub const LCBTRACE_OP_PREPEND : & 'static [ u8 ; 8usize ] = b"prepend\0" ; pub const LCBTRACE_OP_REMOVE : & 'static [ u8 ; 7usize ] = b"remove\0" ; pub const LCBTRACE_OP_REPLACE : & 'static [ u8 ; 8usize ] = b"replace\0" ; pub const LCBTRACE_OP_TOUCH : & 'static [ u8 ; 6usize ] = b"touch\0" ; pub const LCBTRACE_OP_UNLOCK : & 'static [ u8 ; 7usize ] = b"unlock\0" ; pub const LCBTRACE_OP_UPSERT : & 'static [ u8 ; 7usize ] = b"upsert\0" ; pub const LCBTRACE_OP_EXISTS : & 'static [ u8 ; 7usize ] = b"exists\0" ; pub const LCBTRACE_TAG_DB_TYPE : & 'static [ u8 ; 8usize ] = b"db.type\0" ; pub const LCBTRACE_TAG_SPAN_KIND : & 'static [ u8 ; 10usize ] = b"span.kind\0" ; pub const LCBTRACE_TAG_DB_INSTANCE : & 'static [ u8 ; 12usize ] = b"db.instance\0" ; pub const LCBTRACE_TAG_COMPONENT : & 'static [ u8 ; 10usize ] = b"component\0" ; pub const LCBTRACE_TAG_OPERATION_ID : & 'static [ u8 ; 23usize ] = b"couchbase.operation_id\0" ; pub const LCBTRACE_TAG_SERVICE : & 'static [ u8 ; 18usize ] = b"couchbase.service\0" ; pub const LCBTRACE_TAG_SERVICE_KV : & 'static [ u8 ; 3usize ] = b"kv\0" ; pub const LCBTRACE_TAG_SERVICE_VIEW : & 'static [ u8 ; 5usize ] = b"view\0" ; pub const LCBTRACE_TAG_SERVICE_N1QL : & 'static [ u8 ; 5usize ] = b"n1ql\0" ; pub const LCBTRACE_TAG_SERVICE_SEARCH : & 'static [ u8 ; 7usize ] = b"search\0" ; pub const LCBTRACE_TAG_SERVICE_ANALYTICS : & 'static [ u8 ; 10usize ] = b"analytics\0" ; pub const LCBTRACE_TAG_LOCAL_ID : & 'static [ u8 ; 19usize ] = b"couchbase.local_id\0" ; pub const LCBTRACE_TAG_LOCAL_ADDRESS : & 'static [ u8 ; 14usize ] = b"local.address\0" ; pub const LCBTRACE_TAG_PEER_ADDRESS : & 'static [ u8 ; 13usize ] = b"peer.address\0" ; pub const LCBTRACE_TAG_PEER_LATENCY : & 'static [ u8 ; 13usize ] = b"peer.latency\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_N1QL_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_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_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_FETCH_MUTATION_TOKENS : u32 = 52 ; pub const LCB_CNTL_DURABILITY_MUTATION_TOKENS : u32 = 53 ; pub const LCB_CNTL_MUTATION_TOKENS_SUPPORTED : u32 = 56 ; pub const LCB_CNTL_RESET_TIMEOUT_ON_WAIT : u32 = 58 ; pub const LCB_CNTL_N1QL_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_ENABLE_ERRMAP : u32 = 67 ; 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_SEND_HELLO : u32 = 71 ; 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_N1QL : u32 = 84 ; pub const LCB_CNTL_TRACING_THRESHOLD_VIEW : u32 = 85 ; pub const LCB_CNTL_TRACING_THRESHOLD_FTS : 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__MAX : u32 = 96 ; 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_CONFIG_ALL_NODES : u32 = 32 ; 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_N1QL : i32 = -2 ; pub const LCB_CALLBACK_IXMGMT : i32 = -3 ; pub const LCB_CALLBACK_ANALYTICS : i32 = -4 ; pub const LCB_DATATYPE_JSON : u32 = 1 ; pub const LCB_GETNODE_UNAVAILABLE : & 'static [ u8 ; 15usize ] = b"invalid_host:0\0" ; pub const LCB_SUPPORTS_SSL : u32 = 1 ; pub const LCB_SUPPORTS_SNAPPY : u32 = 2 ; pub const LCB_SUPPORTS_TRACING : u32 = 3 ; pub const LCB_SUBDOCOPS_F_MKINTERMEDIATES : u32 = 65536 ; pub const LCB_SUBDOCOPS_F_XATTRPATH : u32 = 262144 ; pub const LCB_SUBDOCOPS_F_XATTR_MACROVALUES : u32 = 524288 ; pub const LCB_SUBDOCOPS_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 wchar_t = :: std :: os :: raw :: c_int ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; 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 __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __fsid_t { pub __val : [ :: std :: os :: raw :: c_int ; 2usize ] , } # [ test ] fn bindgen_test_layout___fsid_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __fsid_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __fsid_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __fsid_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __fsid_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __fsid_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __fsid_t ) , "::" , stringify ! ( __val ) ) ) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type clock_t = __clock_t ; pub type time_t = __time_t ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct tm { pub tm_sec : :: std :: os :: raw :: c_int , pub tm_min : :: std :: os :: raw :: c_int , pub tm_hour : :: std :: os :: raw :: c_int , pub tm_mday : :: std :: os :: raw :: c_int , pub tm_mon : :: std :: os :: raw :: c_int , pub tm_year : :: std :: os :: raw :: c_int , pub tm_wday : :: std :: os :: raw :: c_int , pub tm_yday : :: std :: os :: raw :: c_int , pub tm_isdst : :: std :: os :: raw :: c_int , pub tm_gmtoff : :: std :: os :: raw :: c_long , pub tm_zone : * const :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_tm ( ) { assert_eq ! ( :: std :: mem :: size_of :: < tm > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( tm ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < tm > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( tm ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_sec as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_sec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_min as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_min ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_hour as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_hour ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_mday as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_mday ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_mon as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_mon ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_year as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_year ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_wday as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_wday ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_yday as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_yday ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_isdst as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_isdst ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_gmtoff as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_gmtoff ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_zone as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_zone ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [ test ] fn bindgen_test_layout_timespec ( ) { assert_eq ! ( :: std :: mem :: size_of :: < timespec > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( timespec ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < timespec > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( timespec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < timespec > ( ) ) ) . tv_sec as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( timespec ) , "::" , stringify ! ( tv_sec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < timespec > ( ) ) ) . tv_nsec as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( timespec ) , "::" , stringify ! ( tv_nsec ) ) ) ; } pub type clockid_t = __clockid_t ; pub type timer_t = __timer_t ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct itimerspec { pub it_interval : timespec , pub it_value : timespec , } # [ test ] fn bindgen_test_layout_itimerspec ( ) { assert_eq ! ( :: std :: mem :: size_of :: < itimerspec > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( itimerspec ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < itimerspec > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( itimerspec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < itimerspec > ( ) ) ) . it_interval as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( itimerspec ) , "::" , stringify ! ( it_interval ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < itimerspec > ( ) ) ) . it_value as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( itimerspec ) , "::" , stringify ! ( it_value ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct sigevent { _unused : [ u8 ; 0 ] , } pub type pid_t = __pid_t ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __locale_struct { pub __locales : [ * mut __locale_data ; 13usize ] , pub __ctype_b : * const :: std :: os :: raw :: c_ushort , pub __ctype_tolower : * const :: std :: os :: raw :: c_int , pub __ctype_toupper : * const :: std :: os :: raw :: c_int , pub __names : [ * const :: std :: os :: raw :: c_char ; 13usize ] , } # [ test ] fn bindgen_test_layout___locale_struct ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __locale_struct > ( ) , 232usize , concat ! ( "Size of: " , stringify ! ( __locale_struct ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __locale_struct > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __locale_struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __locales as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __locales ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __ctype_b as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __ctype_b ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __ctype_tolower as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __ctype_tolower ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __ctype_toupper as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __ctype_toupper ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __names as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __names ) ) ) ; } pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn clock ( ) -> clock_t ; } extern "C" { pub fn time ( __timer : * mut time_t ) -> time_t ; } extern "C" { pub fn difftime ( __time1 : time_t , __time0 : time_t ) -> f64 ; } extern "C" { pub fn mktime ( __tp : * mut tm ) -> time_t ; } extern "C" { pub fn strftime ( __s : * mut :: std :: os :: raw :: c_char , __maxsize : usize , __format : * const :: std :: os :: raw :: c_char , __tp : * const tm ) -> usize ; } extern "C" { pub fn strftime_l ( __s : * mut :: std :: os :: raw :: c_char , __maxsize : usize , __format : * const :: std :: os :: raw :: c_char , __tp : * const tm , __loc : locale_t ) -> usize ; } extern "C" { pub fn gmtime ( __timer : * const time_t ) -> * mut tm ; } extern "C" { pub fn localtime ( __timer : * const time_t ) -> * mut tm ; } extern "C" { pub fn gmtime_r ( __timer : * const time_t , __tp : * mut tm ) -> * mut tm ; } extern "C" { pub fn localtime_r ( __timer : * const time_t , __tp : * mut tm ) -> * mut tm ; } extern "C" { pub fn asctime ( __tp : * const tm ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ctime ( __timer : * const time_t ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn asctime_r ( __tp : * const tm , __buf : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ctime_r ( __timer : * const time_t , __buf : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { # [ link_name = "\u{1}__tzname" ] pub static mut __tzname : [ * mut :: std :: os :: raw :: c_char ; 2usize ] ; } extern "C" { # [ link_name = "\u{1}__daylight" ] pub static mut __daylight : :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__timezone" ] pub static mut __timezone : :: std :: os :: raw :: c_long ; } extern "C" { # [ link_name = "\u{1}tzname" ] pub static mut tzname : [ * mut :: std :: os :: raw :: c_char ; 2usize ] ; } extern "C" { pub fn tzset ( ) ; } extern "C" { # [ link_name = "\u{1}daylight" ] pub static mut daylight : :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}timezone" ] pub static mut timezone : :: std :: os :: raw :: c_long ; } extern "C" { pub fn stime ( __when : * const time_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn timegm ( __tp : * mut tm ) -> time_t ; } extern "C" { pub fn timelocal ( __tp : * mut tm ) -> time_t ; } extern "C" { pub fn dysize ( __year : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nanosleep ( __requested_time : * const timespec , __remaining : * mut timespec ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clock_getres ( __clock_id : clockid_t , __res : * mut timespec ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clock_gettime ( __clock_id : clockid_t , __tp : * mut timespec ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clock_settime ( __clock_id : clockid_t , __tp : * const timespec ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clock_nanosleep ( __clock_id : clockid_t , __flags : :: std :: os :: raw :: c_int , __req : * const timespec , __rem : * mut timespec ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clock_getcpuclockid ( __pid : pid_t , __clock_id : * mut clockid_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn timer_create ( __clock_id : clockid_t , __evp : * mut sigevent , __timerid : * mut timer_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn timer_delete ( __timerid : timer_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn timer_settime ( __timerid : timer_t , __flags : :: std :: os :: raw :: c_int , __value : * const itimerspec , __ovalue : * mut itimerspec ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn timer_gettime ( __timerid : timer_t , __value : * mut itimerspec ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn timer_getoverrun ( __timerid : timer_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn timespec_get ( __ts : * mut timespec , __base : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } pub type va_list = __builtin_va_list ; pub type __gnuc_va_list = __builtin_va_list ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [ :: std :: os :: raw :: c_char ; 4usize ] , _bindgen_union_align : u32 , } # [ test ] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __mbstate_t__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __mbstate_t__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mbstate_t__bindgen_ty_1 > ( ) ) ) . __wch as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __mbstate_t__bindgen_ty_1 ) , "::" , stringify ! ( __wch ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mbstate_t__bindgen_ty_1 > ( ) ) ) . __wchb as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __mbstate_t__bindgen_ty_1 ) , "::" , stringify ! ( __wchb ) ) ) ; } # [ test ] fn bindgen_test_layout___mbstate_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __mbstate_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __mbstate_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __mbstate_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __mbstate_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mbstate_t > ( ) ) ) . __count as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __mbstate_t ) , "::" , stringify ! ( __count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mbstate_t > ( ) ) ) . __value as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __mbstate_t ) , "::" , stringify ! ( __value ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [ test ] fn bindgen_test_layout__G_fpos_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _G_fpos_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( _G_fpos_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _G_fpos_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _G_fpos_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _G_fpos_t > ( ) ) ) . __pos as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _G_fpos_t ) , "::" , stringify ! ( __pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _G_fpos_t > ( ) ) ) . __state as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _G_fpos_t ) , "::" , stringify ! ( __state ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [ test ] fn bindgen_test_layout__G_fpos64_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _G_fpos64_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( _G_fpos64_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _G_fpos64_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _G_fpos64_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _G_fpos64_t > ( ) ) ) . __pos as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _G_fpos64_t ) , "::" , stringify ! ( __pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _G_fpos64_t > ( ) ) ) . __state as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _G_fpos64_t ) , "::" , stringify ! ( __state ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _IO_jump_t { _unused : [ u8 ; 0 ] , } pub type _IO_lock_t = :: std :: os :: raw :: c_void ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _IO_marker { pub _next : * mut _IO_marker , pub _sbuf : * mut _IO_FILE , pub _pos : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout__IO_marker ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _IO_marker > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( _IO_marker ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _IO_marker > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _IO_marker ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_marker > ( ) ) ) . _next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _IO_marker ) , "::" , stringify ! ( _next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_marker > ( ) ) ) . _sbuf as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _IO_marker ) , "::" , stringify ! ( _sbuf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_marker > ( ) ) ) . _pos as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( _IO_marker ) , "::" , stringify ! ( _pos ) ) ) ; } pub const __codecvt_result___codecvt_ok : __codecvt_result = 0 ; pub const __codecvt_result___codecvt_partial : __codecvt_result = 1 ; pub const __codecvt_result___codecvt_error : __codecvt_result = 2 ; pub const __codecvt_result___codecvt_noconv : __codecvt_result = 3 ; pub type __codecvt_result = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _flags2 : :: std :: os :: raw :: c_int , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [ :: std :: os :: raw :: c_char ; 1usize ] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub __pad1 : * mut :: std :: os :: raw :: c_void , pub __pad2 : * mut :: std :: os :: raw :: c_void , pub __pad3 : * mut :: std :: os :: raw :: c_void , pub __pad4 : * mut :: std :: os :: raw :: c_void , pub __pad5 : usize , pub _mode : :: std :: os :: raw :: c_int , pub _unused2 : [ :: std :: os :: raw :: c_char ; 20usize ] , } # [ test ] fn bindgen_test_layout__IO_FILE ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _IO_FILE > ( ) , 216usize , concat ! ( "Size of: " , stringify ! ( _IO_FILE ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _IO_FILE > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _IO_FILE ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _flags as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_read_ptr as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_read_ptr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_read_end as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_read_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_read_base as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_read_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_write_base as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_write_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_write_ptr as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_write_ptr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_write_end as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_write_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_buf_base as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_buf_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_buf_end as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_buf_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_save_base as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_save_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_backup_base as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_backup_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_save_end as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_save_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _markers as * const _ as usize } , 96usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _markers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _chain as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _chain ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _fileno as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _fileno ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _flags2 as * const _ as usize } , 116usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _flags2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _old_offset as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _old_offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _cur_column as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _cur_column ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _vtable_offset as * const _ as usize } , 130usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _vtable_offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _shortbuf as * const _ as usize } , 131usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _shortbuf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _lock as * const _ as usize } , 136usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _offset as * const _ as usize } , 144usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . __pad1 as * const _ as usize } , 152usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . __pad2 as * const _ as usize } , 160usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . __pad3 as * const _ as usize } , 168usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . __pad4 as * const _ as usize } , 176usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . __pad5 as * const _ as usize } , 184usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( __pad5 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _mode as * const _ as usize } , 192usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _mode ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _unused2 as * const _ as usize } , 196usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _unused2 ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _IO_FILE_plus { _unused : [ u8 ; 0 ] , } extern "C" { # [ link_name = "\u{1}_IO_2_1_stdin_" ] pub static mut _IO_2_1_stdin_ : _IO_FILE_plus ; } extern "C" { # [ link_name = "\u{1}_IO_2_1_stdout_" ] pub static mut _IO_2_1_stdout_ : _IO_FILE_plus ; } extern "C" { # [ link_name = "\u{1}_IO_2_1_stderr_" ] pub static mut _IO_2_1_stderr_ : _IO_FILE_plus ; } pub type __io_read_fn = :: std :: option :: Option < unsafe extern "C" fn ( __cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize ) -> __ssize_t > ; pub type __io_write_fn = :: std :: option :: Option < unsafe extern "C" fn ( __cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __n : usize ) -> __ssize_t > ; pub type __io_seek_fn = :: std :: option :: Option < unsafe extern "C" fn ( __cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int > ; pub type __io_close_fn = :: std :: option :: Option < unsafe extern "C" fn ( __cookie : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn __underflow ( arg1 : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __uflow ( arg1 : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow ( arg1 : * mut _IO_FILE , arg2 : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_getc ( __fp : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_putc ( __c : :: std :: os :: raw :: c_int , __fp : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_feof ( __fp : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_ferror ( __fp : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_peekc_locked ( __fp : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_flockfile ( arg1 : * mut _IO_FILE ) ; } extern "C" { pub fn _IO_funlockfile ( arg1 : * mut _IO_FILE ) ; } extern "C" { pub fn _IO_ftrylockfile ( arg1 : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_vfscanf ( arg1 : * mut _IO_FILE , arg2 : * const :: std :: os :: raw :: c_char , arg3 : * mut __va_list_tag , arg4 : * mut :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_vfprintf ( arg1 : * mut _IO_FILE , arg2 : * const :: std :: os :: raw :: c_char , arg3 : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_padn ( arg1 : * mut _IO_FILE , arg2 : :: std :: os :: raw :: c_int , arg3 : __ssize_t ) -> __ssize_t ; } extern "C" { pub fn _IO_sgetn ( arg1 : * mut _IO_FILE , arg2 : * mut :: std :: os :: raw :: c_void , arg3 : usize ) -> usize ; } extern "C" { pub fn _IO_seekoff ( arg1 : * mut _IO_FILE , arg2 : __off64_t , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int ) -> __off64_t ; } extern "C" { pub fn _IO_seekpos ( arg1 : * mut _IO_FILE , arg2 : __off64_t , arg3 : :: std :: os :: raw :: c_int ) -> __off64_t ; } extern "C" { pub fn _IO_free_backup_area ( arg1 : * mut _IO_FILE ) ; } pub type off_t = __off_t ; pub type fpos_t = _G_fpos_t ; extern "C" { # [ link_name = "\u{1}stdin" ] pub static mut stdin : * mut _IO_FILE ; } extern "C" { # [ link_name = "\u{1}stdout" ] pub static mut stdout : * mut _IO_FILE ; } extern "C" { # [ link_name = "\u{1}stderr" ] pub static mut stderr : * mut _IO_FILE ; } extern "C" { pub fn remove ( __filename : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename ( __old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat ( __oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile ( ) -> * mut FILE ; } extern "C" { pub fn tmpnam ( __s : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r ( __s : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam ( __dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fclose ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen ( __filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char ) -> * mut FILE ; } extern "C" { pub fn freopen ( __filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE ) -> * mut FILE ; } extern "C" { pub fn fdopen ( __fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char ) -> * mut FILE ; } extern "C" { pub fn fmemopen ( __s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char ) -> * mut FILE ; } extern "C" { pub fn open_memstream ( __bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize ) -> * mut FILE ; } extern "C" { pub fn setbuf ( __stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn setvbuf ( __stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer ( __stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize ) ; } extern "C" { pub fn setlinebuf ( __stream : * mut FILE ) ; } extern "C" { pub fn fprintf ( __stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf ( __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf ( __s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf ( __s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf ( __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf ( __s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf ( __s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf ( __s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf ( __fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf ( __fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf ( __stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf ( __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf ( __s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_fscanf" ] pub fn fscanf1 ( __stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_scanf" ] pub fn scanf1 ( __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_sscanf" ] pub fn sscanf1 ( __s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf ( __s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf ( __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf ( __s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_vfscanf" ] pub fn vfscanf1 ( __s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_vscanf" ] pub fn vscanf1 ( __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_vsscanf" ] pub fn vsscanf1 ( __s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar ( __c : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked ( __c : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw ( __w : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets ( __s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim ( __lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> __ssize_t ; } extern "C" { pub fn getdelim ( __lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> __ssize_t ; } extern "C" { pub fn getline ( __lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE ) -> __ssize_t ; } extern "C" { pub fn fputs ( __s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts ( __s : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread ( __ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE ) -> usize ; } extern "C" { pub fn fwrite ( __ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __s : * mut FILE ) -> usize ; } extern "C" { pub fn fread_unlocked ( __ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE ) -> usize ; } extern "C" { pub fn fwrite_unlocked ( __ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE ) -> usize ; } extern "C" { pub fn fseek ( __stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind ( __stream : * mut FILE ) ; } extern "C" { pub fn fseeko ( __stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello ( __stream : * mut FILE ) -> __off_t ; } extern "C" { pub fn fgetpos ( __stream : * mut FILE , __pos : * mut fpos_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos ( __stream : * mut FILE , __pos : * const fpos_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr ( __stream : * mut FILE ) ; } extern "C" { pub fn feof ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked ( __stream : * mut FILE ) ; } extern "C" { pub fn feof_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror ( __s : * const :: std :: os :: raw :: c_char ) ; } extern "C" { # [ link_name = "\u{1}sys_nerr" ] pub static mut sys_nerr : :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}sys_errlist" ] pub static mut sys_errlist : [ * const :: std :: os :: raw :: c_char ; 0usize ] ; } extern "C" { pub fn fileno ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen ( __command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char ) -> * mut FILE ; } extern "C" { pub fn pclose ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ctermid ( __s : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile ( __stream : * mut FILE ) ; } extern "C" { pub fn ftrylockfile ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile ( __stream : * mut FILE ) ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = :: std :: os :: raw :: c_uchar ; pub type u_int16_t = :: std :: os :: raw :: c_ushort ; pub type u_int32_t = :: std :: os :: raw :: c_uint ; pub type u_int64_t = :: std :: os :: raw :: c_ulong ; pub type register_t = :: std :: os :: raw :: c_long ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __sigset_t { pub __val : [ :: std :: os :: raw :: c_ulong ; 16usize ] , } # [ test ] fn bindgen_test_layout___sigset_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __sigset_t > ( ) , 128usize , concat ! ( "Size of: " , stringify ! ( __sigset_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __sigset_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __sigset_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __sigset_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __sigset_t ) , "::" , stringify ! ( __val ) ) ) ; } pub type sigset_t = __sigset_t ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [ test ] fn bindgen_test_layout_timeval ( ) { assert_eq ! ( :: std :: mem :: size_of :: < timeval > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( timeval ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < timeval > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( timeval ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < timeval > ( ) ) ) . tv_sec as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( timeval ) , "::" , stringify ! ( tv_sec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < timeval > ( ) ) ) . tv_usec as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( timeval ) , "::" , stringify ! ( tv_usec ) ) ) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_set { pub __fds_bits : [ __fd_mask ; 16usize ] , } # [ test ] fn bindgen_test_layout_fd_set ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_set > ( ) , 128usize , concat ! ( "Size of: " , stringify ! ( fd_set ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_set > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_set ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_set > ( ) ) ) . __fds_bits as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_set ) , "::" , stringify ! ( __fds_bits ) ) ) ; } pub type fd_mask = __fd_mask ; extern "C" { pub fn select ( __nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect ( __nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn gnu_dev_major ( __dev : __dev_t ) -> :: std :: os :: raw :: c_uint ; } extern "C" { pub fn gnu_dev_minor ( __dev : __dev_t ) -> :: std :: os :: raw :: c_uint ; } extern "C" { pub fn gnu_dev_makedev ( __major : :: std :: os :: raw :: c_uint , __minor : :: std :: os :: raw :: c_uint ) -> __dev_t ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [ test ] fn bindgen_test_layout___pthread_internal_list ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_internal_list > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __pthread_internal_list ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_internal_list > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_internal_list ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_internal_list > ( ) ) ) . __prev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_internal_list ) , "::" , stringify ! ( __prev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_internal_list > ( ) ) ) . __next as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_internal_list ) , "::" , stringify ! ( __next ) ) ) ; } pub type __pthread_list_t = __pthread_internal_list ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __elision : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [ test ] fn bindgen_test_layout___pthread_mutex_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_mutex_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __pthread_mutex_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_mutex_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_mutex_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __count as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __owner as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __owner ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __nusers as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __nusers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __kind as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __kind ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __spins as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __spins ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __elision as * const _ as usize } , 22usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __elision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __list as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __list ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __pthread_cond_s { pub __bindgen_anon_1 : __pthread_cond_s__bindgen_ty_1 , pub __bindgen_anon_2 : __pthread_cond_s__bindgen_ty_2 , pub __g_refs : [ :: std :: os :: raw :: c_uint ; 2usize ] , pub __g_size : [ :: std :: os :: raw :: c_uint ; 2usize ] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [ :: std :: os :: raw :: c_uint ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __pthread_cond_s__bindgen_ty_1 { pub __wseq : :: std :: os :: raw :: c_ulonglong , pub __wseq32 : __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_cond_s__bindgen_ty_1__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . __low as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( __low ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . __high as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( __high ) ) ) ; } # [ test ] fn bindgen_test_layout___pthread_cond_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_cond_s__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __pthread_cond_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_cond_s__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_cond_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_1 > ( ) ) ) . __wseq as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_cond_s__bindgen_ty_1 ) , "::" , stringify ! ( __wseq ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_1 > ( ) ) ) . __wseq32 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_cond_s__bindgen_ty_1 ) , "::" , stringify ! ( __wseq32 ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __pthread_cond_s__bindgen_ty_2 { pub __g1_start : :: std :: os :: raw :: c_ulonglong , pub __g1_start32 : __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_cond_s__bindgen_ty_2__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 > ( ) ) ) . __low as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 ) , "::" , stringify ! ( __low ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 > ( ) ) ) . __high as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 ) , "::" , stringify ! ( __high ) ) ) ; } # [ test ] fn bindgen_test_layout___pthread_cond_s__bindgen_ty_2 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_cond_s__bindgen_ty_2 > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __pthread_cond_s__bindgen_ty_2 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_cond_s__bindgen_ty_2 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_cond_s__bindgen_ty_2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_2 > ( ) ) ) . __g1_start as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_cond_s__bindgen_ty_2 ) , "::" , stringify ! ( __g1_start ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_2 > ( ) ) ) . __g1_start32 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_cond_s__bindgen_ty_2 ) , "::" , stringify ! ( __g1_start32 ) ) ) ; } # [ test ] fn bindgen_test_layout___pthread_cond_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_cond_s > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( __pthread_cond_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_cond_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_cond_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_cond_s > ( ) ) ) . __g_refs as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_cond_s ) , "::" , stringify ! ( __g_refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_cond_s > ( ) ) ) . __g_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_cond_s ) , "::" , stringify ! ( __g_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_cond_s > ( ) ) ) . __g1_orig_size as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_cond_s ) , "::" , stringify ! ( __g1_orig_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_cond_s > ( ) ) ) . __wrefs as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_cond_s ) , "::" , stringify ! ( __wrefs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_cond_s > ( ) ) ) . __g_signals as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_cond_s ) , "::" , stringify ! ( __g_signals ) ) ) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_mutexattr_t { pub __size : [ :: std :: os :: raw :: c_char ; 4usize ] , pub __align : :: std :: os :: raw :: c_int , _bindgen_union_align : u32 , } # [ test ] fn bindgen_test_layout_pthread_mutexattr_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_mutexattr_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( pthread_mutexattr_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_mutexattr_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( pthread_mutexattr_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_mutexattr_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_mutexattr_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_mutexattr_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_mutexattr_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_condattr_t { pub __size : [ :: std :: os :: raw :: c_char ; 4usize ] , pub __align : :: std :: os :: raw :: c_int , _bindgen_union_align : u32 , } # [ test ] fn bindgen_test_layout_pthread_condattr_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_condattr_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( pthread_condattr_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_condattr_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( pthread_condattr_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_condattr_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_condattr_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_condattr_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_condattr_t ) , "::" , stringify ! ( __align ) ) ) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_attr_t { pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_attr_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_attr_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_attr_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_attr_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_attr_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_attr_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_attr_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_attr_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_attr_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [ :: std :: os :: raw :: c_char ; 40usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 5usize ] , } # [ test ] fn bindgen_test_layout_pthread_mutex_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_mutex_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( pthread_mutex_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_mutex_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_mutex_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_mutex_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_mutex_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_mutex_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_mutex_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_mutex_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_mutex_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [ :: std :: os :: raw :: c_char ; 48usize ] , pub __align : :: std :: os :: raw :: c_longlong , _bindgen_union_align : [ u64 ; 6usize ] , } # [ test ] fn bindgen_test_layout_pthread_cond_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_cond_t > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( pthread_cond_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_cond_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_cond_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_cond_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_cond_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_cond_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_cond_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_cond_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_cond_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlockattr_t { pub __size : [ :: std :: os :: raw :: c_char ; 8usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : u64 , } # [ test ] fn bindgen_test_layout_pthread_rwlockattr_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlockattr_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlockattr_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlockattr_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlockattr_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlockattr_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlockattr_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlockattr_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlockattr_t ) , "::" , stringify ! ( __align ) ) ) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_barrier_t { pub __size : [ :: std :: os :: raw :: c_char ; 32usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 4usize ] , } # [ test ] fn bindgen_test_layout_pthread_barrier_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_barrier_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( pthread_barrier_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_barrier_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_barrier_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_barrier_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_barrier_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_barrier_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_barrier_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_barrierattr_t { pub __size : [ :: std :: os :: raw :: c_char ; 4usize ] , pub __align : :: std :: os :: raw :: c_int , _bindgen_union_align : u32 , } # [ test ] fn bindgen_test_layout_pthread_barrierattr_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_barrierattr_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( pthread_barrierattr_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_barrierattr_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( pthread_barrierattr_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_barrierattr_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_barrierattr_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_barrierattr_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_barrierattr_t ) , "::" , stringify ! ( __align ) ) ) ; } pub type int_least8_t = :: std :: os :: raw :: c_schar ; pub type int_least16_t = :: std :: os :: raw :: c_short ; pub type int_least32_t = :: std :: os :: raw :: c_int ; pub type int_least64_t = :: std :: os :: raw :: c_long ; pub type uint_least8_t = :: std :: os :: raw :: c_uchar ; pub type uint_least16_t = :: std :: os :: raw :: c_ushort ; pub type uint_least32_t = :: std :: os :: raw :: c_uint ; pub type uint_least64_t = :: std :: os :: raw :: c_ulong ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; 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_cas_t = u64 ; 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 type lcb_CAS = lcb_cas_t ; extern "C" { pub fn __assert_fail ( __assertion : * const :: std :: os :: raw :: c_char , __file : * const :: std :: os :: raw :: c_char , __line : :: std :: os :: raw :: c_uint , __function : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn __assert_perror_fail ( __errnum : :: std :: os :: raw :: c_int , __file : * const :: std :: os :: raw :: c_char , __line : :: std :: os :: raw :: c_uint , __function : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn __assert ( __assertion : * const :: std :: os :: raw :: c_char , __file : * const :: std :: os :: raw :: c_char , __line : :: std :: os :: raw :: c_int ) ; } pub const lcb_errflags_t_LCB_ERRTYPE_INPUT : lcb_errflags_t = 1 ; pub const lcb_errflags_t_LCB_ERRTYPE_NETWORK : lcb_errflags_t = 2 ; pub const lcb_errflags_t_LCB_ERRTYPE_FATAL : lcb_errflags_t = 4 ; pub const lcb_errflags_t_LCB_ERRTYPE_TRANSIENT : lcb_errflags_t = 8 ; pub const lcb_errflags_t_LCB_ERRTYPE_DATAOP : lcb_errflags_t = 16 ; pub const lcb_errflags_t_LCB_ERRTYPE_INTERNAL : lcb_errflags_t = 32 ; pub const lcb_errflags_t_LCB_ERRTYPE_PLUGIN : lcb_errflags_t = 64 ; pub const lcb_errflags_t_LCB_ERRTYPE_SRVLOAD : lcb_errflags_t = 128 ; pub const lcb_errflags_t_LCB_ERRTYPE_SRVGEN : lcb_errflags_t = 256 ; pub const lcb_errflags_t_LCB_ERRTYPE_SUBDOC : lcb_errflags_t = 512 ; pub const lcb_errflags_t_LCB_ERRTYPE_DURABILITY : lcb_errflags_t = 1024 ; pub type lcb_errflags_t = u32 ; pub const lcb_STATUS_LCB_SUCCESS : lcb_STATUS = 0 ; pub const lcb_STATUS_LCB_AUTH_CONTINUE : lcb_STATUS = 1 ; pub const lcb_STATUS_LCB_AUTH_ERROR : lcb_STATUS = 2 ; pub const lcb_STATUS_LCB_DELTA_BADVAL : lcb_STATUS = 3 ; pub const lcb_STATUS_LCB_E2BIG : lcb_STATUS = 4 ; pub const lcb_STATUS_LCB_EBUSY : lcb_STATUS = 5 ; pub const lcb_STATUS_LCB_EINTERNAL : lcb_STATUS = 6 ; pub const lcb_STATUS_LCB_EINVAL : lcb_STATUS = 7 ; pub const lcb_STATUS_LCB_ENOMEM : lcb_STATUS = 8 ; pub const lcb_STATUS_LCB_ERANGE : lcb_STATUS = 9 ; pub const lcb_STATUS_LCB_ERROR : lcb_STATUS = 10 ; pub const lcb_STATUS_LCB_ETMPFAIL : lcb_STATUS = 11 ; pub const lcb_STATUS_LCB_KEY_EEXISTS : lcb_STATUS = 12 ; pub const lcb_STATUS_LCB_KEY_ENOENT : lcb_STATUS = 13 ; pub const lcb_STATUS_LCB_DLOPEN_FAILED : lcb_STATUS = 14 ; pub const lcb_STATUS_LCB_DLSYM_FAILED : lcb_STATUS = 15 ; pub const lcb_STATUS_LCB_NETWORK_ERROR : lcb_STATUS = 16 ; pub const lcb_STATUS_LCB_NOT_MY_VBUCKET : lcb_STATUS = 17 ; pub const lcb_STATUS_LCB_NOT_STORED : lcb_STATUS = 18 ; pub const lcb_STATUS_LCB_NOT_SUPPORTED : lcb_STATUS = 19 ; pub const lcb_STATUS_LCB_UNKNOWN_COMMAND : lcb_STATUS = 20 ; pub const lcb_STATUS_LCB_UNKNOWN_HOST : lcb_STATUS = 21 ; pub const lcb_STATUS_LCB_PROTOCOL_ERROR : lcb_STATUS = 22 ; pub const lcb_STATUS_LCB_ETIMEDOUT : lcb_STATUS = 23 ; pub const lcb_STATUS_LCB_CONNECT_ERROR : lcb_STATUS = 24 ; pub const lcb_STATUS_LCB_BUCKET_ENOENT : lcb_STATUS = 25 ; pub const lcb_STATUS_LCB_CLIENT_ENOMEM : lcb_STATUS = 26 ; pub const lcb_STATUS_LCB_CLIENT_ENOCONF : lcb_STATUS = 27 ; pub const lcb_STATUS_LCB_EBADHANDLE : lcb_STATUS = 28 ; pub const lcb_STATUS_LCB_SERVER_BUG : lcb_STATUS = 29 ; pub const lcb_STATUS_LCB_PLUGIN_VERSION_MISMATCH : lcb_STATUS = 30 ; pub const lcb_STATUS_LCB_INVALID_HOST_FORMAT : lcb_STATUS = 31 ; pub const lcb_STATUS_LCB_INVALID_CHAR : lcb_STATUS = 32 ; pub const lcb_STATUS_LCB_DURABILITY_ETOOMANY : lcb_STATUS = 33 ; pub const lcb_STATUS_LCB_DUPLICATE_COMMANDS : lcb_STATUS = 34 ; pub const lcb_STATUS_LCB_NO_MATCHING_SERVER : lcb_STATUS = 35 ; pub const lcb_STATUS_LCB_BAD_ENVIRONMENT : lcb_STATUS = 36 ; pub const lcb_STATUS_LCB_BUSY : lcb_STATUS = 37 ; pub const lcb_STATUS_LCB_INVALID_USERNAME : lcb_STATUS = 38 ; pub const lcb_STATUS_LCB_CONFIG_CACHE_INVALID : lcb_STATUS = 39 ; pub const lcb_STATUS_LCB_SASLMECH_UNAVAILABLE : lcb_STATUS = 40 ; pub const lcb_STATUS_LCB_TOO_MANY_REDIRECTS : lcb_STATUS = 41 ; pub const lcb_STATUS_LCB_MAP_CHANGED : lcb_STATUS = 42 ; pub const lcb_STATUS_LCB_INCOMPLETE_PACKET : lcb_STATUS = 43 ; pub const lcb_STATUS_LCB_ECONNREFUSED : lcb_STATUS = 44 ; pub const lcb_STATUS_LCB_ESOCKSHUTDOWN : lcb_STATUS = 45 ; pub const lcb_STATUS_LCB_ECONNRESET : lcb_STATUS = 46 ; pub const lcb_STATUS_LCB_ECANTGETPORT : lcb_STATUS = 47 ; pub const lcb_STATUS_LCB_EFDLIMITREACHED : lcb_STATUS = 48 ; pub const lcb_STATUS_LCB_ENETUNREACH : lcb_STATUS = 49 ; pub const lcb_STATUS_LCB_ECTL_UNKNOWN : lcb_STATUS = 50 ; pub const lcb_STATUS_LCB_ECTL_UNSUPPMODE : lcb_STATUS = 51 ; pub const lcb_STATUS_LCB_ECTL_BADARG : lcb_STATUS = 52 ; pub const lcb_STATUS_LCB_EMPTY_KEY : lcb_STATUS = 53 ; pub const lcb_STATUS_LCB_SSL_ERROR : lcb_STATUS = 54 ; pub const lcb_STATUS_LCB_SSL_CANTVERIFY : lcb_STATUS = 55 ; pub const lcb_STATUS_LCB_SCHEDFAIL_INTERNAL : lcb_STATUS = 56 ; pub const lcb_STATUS_LCB_CLIENT_FEATURE_UNAVAILABLE : lcb_STATUS = 57 ; pub const lcb_STATUS_LCB_OPTIONS_CONFLICT : lcb_STATUS = 58 ; pub const lcb_STATUS_LCB_HTTP_ERROR : lcb_STATUS = 59 ; pub const lcb_STATUS_LCB_DURABILITY_NO_MUTATION_TOKENS : lcb_STATUS = 60 ; pub const lcb_STATUS_LCB_UNKNOWN_MEMCACHED_ERROR : lcb_STATUS = 61 ; pub const lcb_STATUS_LCB_MUTATION_LOST : lcb_STATUS = 62 ; pub const lcb_STATUS_LCB_SUBDOC_PATH_ENOENT : lcb_STATUS = 63 ; pub const lcb_STATUS_LCB_SUBDOC_PATH_MISMATCH : lcb_STATUS = 64 ; pub const lcb_STATUS_LCB_SUBDOC_PATH_EINVAL : lcb_STATUS = 65 ; pub const lcb_STATUS_LCB_SUBDOC_PATH_E2BIG : lcb_STATUS = 66 ; pub const lcb_STATUS_LCB_SUBDOC_DOC_E2DEEP : lcb_STATUS = 67 ; pub const lcb_STATUS_LCB_SUBDOC_VALUE_CANTINSERT : lcb_STATUS = 68 ; pub const lcb_STATUS_LCB_SUBDOC_DOC_NOTJSON : lcb_STATUS = 69 ; pub const lcb_STATUS_LCB_SUBDOC_NUM_ERANGE : lcb_STATUS = 70 ; pub const lcb_STATUS_LCB_SUBDOC_BAD_DELTA : lcb_STATUS = 71 ; pub const lcb_STATUS_LCB_SUBDOC_PATH_EEXISTS : lcb_STATUS = 72 ; pub const lcb_STATUS_LCB_SUBDOC_MULTI_FAILURE : lcb_STATUS = 73 ; pub const lcb_STATUS_LCB_SUBDOC_VALUE_E2DEEP : lcb_STATUS = 74 ; pub const lcb_STATUS_LCB_EINVAL_MCD : lcb_STATUS = 75 ; pub const lcb_STATUS_LCB_EMPTY_PATH : lcb_STATUS = 76 ; pub const lcb_STATUS_LCB_UNKNOWN_SDCMD : lcb_STATUS = 77 ; pub const lcb_STATUS_LCB_ENO_COMMANDS : lcb_STATUS = 78 ; pub const lcb_STATUS_LCB_QUERY_ERROR : lcb_STATUS = 79 ; pub const lcb_STATUS_LCB_GENERIC_TMPERR : lcb_STATUS = 80 ; pub const lcb_STATUS_LCB_GENERIC_SUBDOCERR : lcb_STATUS = 81 ; pub const lcb_STATUS_LCB_GENERIC_CONSTRAINT_ERR : lcb_STATUS = 82 ; pub const lcb_STATUS_LCB_NAMESERVER_ERROR : lcb_STATUS = 83 ; pub const lcb_STATUS_LCB_NOT_AUTHORIZED : lcb_STATUS = 84 ; pub const lcb_STATUS_LCB_SUBDOC_INVALID_COMBO : lcb_STATUS = 85 ; pub const lcb_STATUS_LCB_SUBDOC_MULTI_PATH_FAILURE : lcb_STATUS = 86 ; pub const lcb_STATUS_LCB_SUBDOC_SUCCESS_DELETED : lcb_STATUS = 87 ; pub const lcb_STATUS_LCB_SUBDOC_XATTR_INVALID_FLAG_COMBO : lcb_STATUS = 88 ; pub const lcb_STATUS_LCB_SUBDOC_XATTR_INVALID_KEY_COMBO : lcb_STATUS = 89 ; pub const lcb_STATUS_LCB_SUBDOC_XATTR_UNKNOWN_MACRO : lcb_STATUS = 90 ; pub const lcb_STATUS_LCB_SUBDOC_XATTR_UNKNOWN_VATTR : lcb_STATUS = 91 ; pub const lcb_STATUS_LCB_SUBDOC_XATTR_CANT_MODIFY_VATTR : lcb_STATUS = 92 ; pub const lcb_STATUS_LCB_SUBDOC_MULTI_PATH_FAILURE_DELETED : lcb_STATUS = 93 ; pub const lcb_STATUS_LCB_SUBDOC_INVALID_XATTR_ORDER : lcb_STATUS = 94 ; pub const lcb_STATUS_LCB_COLLECTION_UNKNOWN : lcb_STATUS = 95 ; pub const lcb_STATUS_LCB_COLLECTION_NO_MANIFEST : lcb_STATUS = 96 ; pub const lcb_STATUS_LCB_COLLECTION_CANNOT_APPLY_MANIFEST : lcb_STATUS = 97 ; pub const lcb_STATUS_LCB_COLLECTION_MANIFEST_IS_AHEAD : lcb_STATUS = 98 ; pub const lcb_STATUS_LCB_DURABILITY_INVALID_LEVEL : lcb_STATUS = 99 ; pub const lcb_STATUS_LCB_DURABILITY_IMPOSSIBLE : lcb_STATUS = 100 ; pub const lcb_STATUS_LCB_DURABILITY_SYNC_WRITE_IN_PROGRESS : lcb_STATUS = 101 ; pub const lcb_STATUS_LCB_DURABILITY_SYNC_WRITE_AMBIGUOUS : lcb_STATUS = 102 ; pub const lcb_STATUS_LCB_MAX_ERROR : lcb_STATUS = 4096 ; pub type lcb_STATUS = u32 ; extern "C" { pub fn lcb_get_errtype ( err : lcb_STATUS ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcb_strerror ( instance : * mut lcb_INSTANCE , error : lcb_STATUS ) -> * const :: std :: os :: raw :: c_char ; } 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 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 : lcb_size_t , } # [ 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 ; extern "C" { pub fn lcbauth_new ( ) -> * mut lcb_AUTHENTICATOR ; } pub const lcbauth_ADDPASSFLAGS_LCBAUTH_F_CLUSTER : lcbauth_ADDPASSFLAGS = 2 ; pub const lcbauth_ADDPASSFLAGS_LCBAUTH_F_BUCKET : lcbauth_ADDPASSFLAGS = 4 ; pub type lcbauth_ADDPASSFLAGS = u32 ; extern "C" { pub fn lcbauth_add_pass ( auth : * mut lcb_AUTHENTICATOR , user : * const :: std :: os :: raw :: c_char , pass : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int ) -> lcb_STATUS ; } extern "C" { pub fn lcbauth_ref ( auth : * mut lcb_AUTHENTICATOR ) ; } extern "C" { pub fn lcbauth_unref ( auth : * mut lcb_AUTHENTICATOR ) ; } extern "C" { pub fn lcbauth_clone ( src : * const lcb_AUTHENTICATOR ) -> * mut lcb_AUTHENTICATOR ; } 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 > ; extern "C" { pub fn lcbauth_set_callbacks ( auth : * mut lcb_AUTHENTICATOR , cookie : * mut :: std :: os :: raw :: c_void , usercb : lcb_AUTHCALLBACK , passcb : lcb_AUTHCALLBACK ) -> lcb_STATUS ; } pub const lcbauth_MODE_LCBAUTH_MODE_CLASSIC : lcbauth_MODE = 0 ; pub const lcbauth_MODE_LCBAUTH_MODE_RBAC : lcbauth_MODE = 1 ; pub const lcbauth_MODE_LCBAUTH_MODE_DYNAMIC : lcbauth_MODE = 2 ; pub type lcbauth_MODE = u32 ; extern "C" { pub fn lcbauth_set_mode ( src : * mut lcb_AUTHENTICATOR , mode : lcbauth_MODE ) -> lcb_STATUS ; } # [ 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 ) ; } extern "C" { pub fn lcbtrace_new ( instance : * mut lcb_INSTANCE , flags : lcb_U64 ) -> * mut lcbtrace_TRACER ; } extern "C" { pub fn lcbtrace_destroy ( tracer : * mut lcbtrace_TRACER ) ; } pub const lcbtrace_REF_TYPE_LCBTRACE_REF_NONE : lcbtrace_REF_TYPE = 0 ; pub const lcbtrace_REF_TYPE_LCBTRACE_REF_CHILD_OF : lcbtrace_REF_TYPE = 1 ; pub const lcbtrace_REF_TYPE_LCBTRACE_REF_FOLLOWS_FROM : lcbtrace_REF_TYPE = 2 ; pub const lcbtrace_REF_TYPE_LCBTRACE_REF__MAX : lcbtrace_REF_TYPE = 3 ; pub type lcbtrace_REF_TYPE = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct lcbtrace_REF { pub type_ : lcbtrace_REF_TYPE , pub span : * mut lcbtrace_SPAN , } # [ test ] fn bindgen_test_layout_lcbtrace_REF ( ) { assert_eq ! ( :: std :: mem :: size_of :: < lcbtrace_REF > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( lcbtrace_REF ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < lcbtrace_REF > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( lcbtrace_REF ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcbtrace_REF > ( ) ) ) . type_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcbtrace_REF ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcbtrace_REF > ( ) ) ) . span as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( lcbtrace_REF ) , "::" , stringify ! ( span ) ) ) ; } extern "C" { pub fn lcbtrace_now ( ) -> lcb_U64 ; } extern "C" { pub fn lcbtrace_span_start ( tracer : * mut lcbtrace_TRACER , operation : * const :: std :: os :: raw :: c_char , now : lcb_U64 , ref_ : * mut lcbtrace_REF ) -> * mut lcbtrace_SPAN ; } extern "C" { pub fn lcbtrace_span_finish ( span : * mut lcbtrace_SPAN , now : lcb_U64 ) ; } extern "C" { pub fn lcbtrace_span_get_start_ts ( span : * mut lcbtrace_SPAN ) -> lcb_U64 ; } extern "C" { pub fn lcbtrace_span_get_finish_ts ( span : * mut lcbtrace_SPAN ) -> lcb_U64 ; } extern "C" { pub fn lcbtrace_span_is_orphaned ( span : * mut lcbtrace_SPAN ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcbtrace_span_get_operation ( span : * mut lcbtrace_SPAN ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn lcbtrace_span_get_span_id ( span : * mut lcbtrace_SPAN ) -> lcb_U64 ; } extern "C" { pub fn lcbtrace_span_get_trace_id ( span : * mut lcbtrace_SPAN ) -> lcb_U64 ; } extern "C" { pub fn lcbtrace_span_get_parent ( span : * mut lcbtrace_SPAN ) -> * mut lcbtrace_SPAN ; } extern "C" { pub fn lcbtrace_span_get_tag_str ( span : * mut lcbtrace_SPAN , name : * const :: std :: os :: raw :: c_char , value : * mut * mut :: std :: os :: raw :: c_char , nvalue : * mut usize ) -> lcb_STATUS ; } extern "C" { pub fn lcbtrace_span_get_tag_uint64 ( span : * mut lcbtrace_SPAN , name : * const :: std :: os :: raw :: c_char , value : * mut lcb_U64 ) -> lcb_STATUS ; } extern "C" { pub fn lcbtrace_span_get_tag_double ( span : * mut lcbtrace_SPAN , name : * const :: std :: os :: raw :: c_char , value : * mut f64 ) -> lcb_STATUS ; } extern "C" { pub fn lcbtrace_span_get_tag_bool ( span : * mut lcbtrace_SPAN , name : * const :: std :: os :: raw :: c_char , value : * mut :: std :: os :: raw :: c_int ) -> lcb_STATUS ; } extern "C" { pub fn lcbtrace_span_add_tag_str ( span : * mut lcbtrace_SPAN , name : * const :: std :: os :: raw :: c_char , value : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn lcbtrace_span_add_tag_uint64 ( span : * mut lcbtrace_SPAN , name : * const :: std :: os :: raw :: c_char , value : lcb_U64 ) ; } extern "C" { pub fn lcbtrace_span_add_tag_double ( span : * mut lcbtrace_SPAN , name : * const :: std :: os :: raw :: c_char , value : f64 ) ; } extern "C" { pub fn lcbtrace_span_add_tag_bool ( span : * mut lcbtrace_SPAN , name : * const :: std :: os :: raw :: c_char , value : :: std :: os :: raw :: c_int ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct ldcptrace_REPORTER { pub state : * mut :: std :: os :: raw :: c_void , pub report : :: std :: option :: Option < unsafe extern "C" fn ( state : * mut :: std :: os :: raw :: c_void , span : * mut lcbtrace_SPAN ) > , } # [ test ] fn bindgen_test_layout_ldcptrace_REPORTER ( ) { assert_eq ! ( :: std :: mem :: size_of :: < ldcptrace_REPORTER > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( ldcptrace_REPORTER ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < ldcptrace_REPORTER > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( ldcptrace_REPORTER ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldcptrace_REPORTER > ( ) ) ) . state as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ldcptrace_REPORTER ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ldcptrace_REPORTER > ( ) ) ) . report as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( ldcptrace_REPORTER ) , "::" , stringify ! ( report ) ) ) ; } # [ 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_log_severity_t_LCB_LOG_TRACE : lcb_log_severity_t = 0 ; pub const lcb_log_severity_t_LCB_LOG_DEBUG : lcb_log_severity_t = 1 ; pub const lcb_log_severity_t_LCB_LOG_INFO : lcb_log_severity_t = 2 ; pub const lcb_log_severity_t_LCB_LOG_WARN : lcb_log_severity_t = 3 ; pub const lcb_log_severity_t_LCB_LOG_ERROR : lcb_log_severity_t = 4 ; pub const lcb_log_severity_t_LCB_LOG_FATAL : lcb_log_severity_t = 5 ; pub const lcb_log_severity_t_LCB_LOG_MAX : lcb_log_severity_t = 6 ; pub type lcb_log_severity_t = u32 ; pub type lcb_logging_callback = :: std :: option :: Option < unsafe extern "C" fn ( procs : * mut lcb_logprocs_st , iid : :: std :: os :: raw :: c_uint , subsys : * const :: std :: os :: raw :: c_char , severity : :: std :: os :: raw :: c_int , 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 ) > ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct lcb_logprocs_st { pub version : :: std :: os :: raw :: c_int , pub v : lcb_logprocs_st__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union lcb_logprocs_st__bindgen_ty_1 { pub v0 : lcb_logprocs_st__bindgen_ty_1__bindgen_ty_1 , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct lcb_logprocs_st__bindgen_ty_1__bindgen_ty_1 { pub callback : lcb_logging_callback , } # [ test ] fn bindgen_test_layout_lcb_logprocs_st__bindgen_ty_1__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < lcb_logprocs_st__bindgen_ty_1__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( lcb_logprocs_st__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < lcb_logprocs_st__bindgen_ty_1__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( lcb_logprocs_st__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_logprocs_st__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . callback as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcb_logprocs_st__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( callback ) ) ) ; } # [ test ] fn bindgen_test_layout_lcb_logprocs_st__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < lcb_logprocs_st__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( lcb_logprocs_st__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < lcb_logprocs_st__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( lcb_logprocs_st__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_logprocs_st__bindgen_ty_1 > ( ) ) ) . v0 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcb_logprocs_st__bindgen_ty_1 ) , "::" , stringify ! ( v0 ) ) ) ; } # [ test ] fn bindgen_test_layout_lcb_logprocs_st ( ) { assert_eq ! ( :: std :: mem :: size_of :: < lcb_logprocs_st > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( lcb_logprocs_st ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < lcb_logprocs_st > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( lcb_logprocs_st ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_logprocs_st > ( ) ) ) . version as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcb_logprocs_st ) , "::" , stringify ! ( version ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_logprocs_st > ( ) ) ) . v as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( lcb_logprocs_st ) , "::" , stringify ! ( v ) ) ) ; } pub type lcb_logprocs = lcb_logprocs_st ; 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 lcbtrace_THRESHOLDOPTS_LCBTRACE_THRESHOLD_KV : lcbtrace_THRESHOLDOPTS = 0 ; pub const lcbtrace_THRESHOLDOPTS_LCBTRACE_THRESHOLD_N1QL : lcbtrace_THRESHOLDOPTS = 1 ; pub const lcbtrace_THRESHOLDOPTS_LCBTRACE_THRESHOLD_VIEW : lcbtrace_THRESHOLDOPTS = 2 ; pub const lcbtrace_THRESHOLDOPTS_LCBTRACE_THRESHOLD_FTS : lcbtrace_THRESHOLDOPTS = 3 ; pub const lcbtrace_THRESHOLDOPTS_LCBTRACE_THRESHOLD_ANALYTICS : lcbtrace_THRESHOLDOPTS = 4 ; pub const lcbtrace_THRESHOLDOPTS_LCBTRACE_THRESHOLD__MAX : lcbtrace_THRESHOLDOPTS = 5 ; pub type lcbtrace_THRESHOLDOPTS = u32 ; 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 type lcb_datatype_t = lcb_U8 ; pub type lcb_USECS = lcb_U32 ; pub const lcb_type_t_LCB_TYPE_BUCKET : lcb_type_t = 0 ; pub const lcb_type_t_LCB_TYPE_CLUSTER : lcb_type_t = 1 ; pub type lcb_type_t = u32 ; 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_config_transport_t_LCB_CONFIG_TRANSPORT_LIST_END : lcb_config_transport_t = 0 ; pub const lcb_config_transport_t_LCB_CONFIG_TRANSPORT_HTTP : lcb_config_transport_t = 1 ; pub const lcb_config_transport_t_LCB_CONFIG_TRANSPORT_CCCP : lcb_config_transport_t = 2 ; pub const lcb_config_transport_t_LCB_CONFIG_TRANSPORT_MAX : lcb_config_transport_t = 3 ; pub type lcb_config_transport_t = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct lcb_create_st0 { pub host : * const :: std :: os :: raw :: c_char , pub user : * const :: std :: os :: raw :: c_char , pub passwd : * const :: std :: os :: raw :: c_char , pub bucket : * const :: std :: os :: raw :: c_char , pub io : * mut lcb_io_opt_st , } # [ test ] fn bindgen_test_layout_lcb_create_st0 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < lcb_create_st0 > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( lcb_create_st0 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < lcb_create_st0 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( lcb_create_st0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st0 > ( ) ) ) . host as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st0 ) , "::" , stringify ! ( host ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st0 > ( ) ) ) . user as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st0 ) , "::" , stringify ! ( user ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st0 > ( ) ) ) . passwd as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st0 ) , "::" , stringify ! ( passwd ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st0 > ( ) ) ) . bucket as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st0 ) , "::" , stringify ! ( bucket ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st0 > ( ) ) ) . io as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st0 ) , "::" , stringify ! ( io ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct lcb_create_st1 { pub host : * const :: std :: os :: raw :: c_char , pub user : * const :: std :: os :: raw :: c_char , pub passwd : * const :: std :: os :: raw :: c_char , pub bucket : * const :: std :: os :: raw :: c_char , pub io : * mut lcb_io_opt_st , pub type_ : lcb_type_t , } # [ test ] fn bindgen_test_layout_lcb_create_st1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < lcb_create_st1 > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( lcb_create_st1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < lcb_create_st1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( lcb_create_st1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st1 > ( ) ) ) . host as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st1 ) , "::" , stringify ! ( host ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st1 > ( ) ) ) . user as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st1 ) , "::" , stringify ! ( user ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st1 > ( ) ) ) . passwd as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st1 ) , "::" , stringify ! ( passwd ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st1 > ( ) ) ) . bucket as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st1 ) , "::" , stringify ! ( bucket ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st1 > ( ) ) ) . io as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st1 ) , "::" , stringify ! ( io ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st1 > ( ) ) ) . type_ as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st1 ) , "::" , stringify ! ( type_ ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct lcb_create_st2 { pub host : * const :: std :: os :: raw :: c_char , pub user : * const :: std :: os :: raw :: c_char , pub passwd : * const :: std :: os :: raw :: c_char , pub bucket : * const :: std :: os :: raw :: c_char , pub io : * mut lcb_io_opt_st , pub type_ : lcb_type_t , pub mchosts : * const :: std :: os :: raw :: c_char , pub transports : * const lcb_config_transport_t , } # [ test ] fn bindgen_test_layout_lcb_create_st2 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < lcb_create_st2 > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( lcb_create_st2 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < lcb_create_st2 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( lcb_create_st2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st2 > ( ) ) ) . host as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st2 ) , "::" , stringify ! ( host ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st2 > ( ) ) ) . user as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st2 ) , "::" , stringify ! ( user ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st2 > ( ) ) ) . passwd as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st2 ) , "::" , stringify ! ( passwd ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st2 > ( ) ) ) . bucket as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st2 ) , "::" , stringify ! ( bucket ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st2 > ( ) ) ) . io as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st2 ) , "::" , stringify ! ( io ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st2 > ( ) ) ) . type_ as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st2 ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st2 > ( ) ) ) . mchosts as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st2 ) , "::" , stringify ! ( mchosts ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st2 > ( ) ) ) . transports as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st2 ) , "::" , stringify ! ( transports ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct lcb_create_st3 { pub connstr : * const :: std :: os :: raw :: c_char , pub username : * const :: std :: os :: raw :: c_char , pub passwd : * const :: std :: os :: raw :: c_char , pub _pad_bucket : * mut :: std :: os :: raw :: c_void , pub io : * mut lcb_io_opt_st , pub type_ : lcb_type_t , } # [ test ] fn bindgen_test_layout_lcb_create_st3 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < lcb_create_st3 > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( lcb_create_st3 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < lcb_create_st3 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( lcb_create_st3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st3 > ( ) ) ) . connstr as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st3 ) , "::" , stringify ! ( connstr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st3 > ( ) ) ) . username as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st3 ) , "::" , stringify ! ( username ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st3 > ( ) ) ) . passwd as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st3 ) , "::" , stringify ! ( passwd ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st3 > ( ) ) ) . _pad_bucket as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st3 ) , "::" , stringify ! ( _pad_bucket ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st3 > ( ) ) ) . io as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st3 ) , "::" , stringify ! ( io ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st3 > ( ) ) ) . type_ as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st3 ) , "::" , stringify ! ( type_ ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct lcb_create_st4 { pub connstr : * const :: std :: os :: raw :: c_char , pub username : * const :: std :: os :: raw :: c_char , pub passwd : * const :: std :: os :: raw :: c_char , pub logger : * mut lcb_logprocs , pub io : * mut lcb_io_opt_st , pub type_ : lcb_type_t , } # [ test ] fn bindgen_test_layout_lcb_create_st4 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < lcb_create_st4 > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( lcb_create_st4 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < lcb_create_st4 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( lcb_create_st4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st4 > ( ) ) ) . connstr as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st4 ) , "::" , stringify ! ( connstr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st4 > ( ) ) ) . username as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st4 ) , "::" , stringify ! ( username ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st4 > ( ) ) ) . passwd as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st4 ) , "::" , stringify ! ( passwd ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st4 > ( ) ) ) . logger as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st4 ) , "::" , stringify ! ( logger ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st4 > ( ) ) ) . io as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st4 ) , "::" , stringify ! ( io ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st4 > ( ) ) ) . type_ as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st4 ) , "::" , stringify ! ( type_ ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct lcb_create_st { pub version : :: std :: os :: raw :: c_int , pub v : lcb_create_st_lcb_CRST_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union lcb_create_st_lcb_CRST_u { pub v0 : lcb_create_st0 , pub v1 : lcb_create_st1 , pub v2 : lcb_create_st2 , pub v3 : lcb_create_st3 , pub v4 : lcb_create_st4 , _bindgen_union_align : [ u64 ; 8usize ] , } # [ test ] fn bindgen_test_layout_lcb_create_st_lcb_CRST_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < lcb_create_st_lcb_CRST_u > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( lcb_create_st_lcb_CRST_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < lcb_create_st_lcb_CRST_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( lcb_create_st_lcb_CRST_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st_lcb_CRST_u > ( ) ) ) . v0 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st_lcb_CRST_u ) , "::" , stringify ! ( v0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st_lcb_CRST_u > ( ) ) ) . v1 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st_lcb_CRST_u ) , "::" , stringify ! ( v1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st_lcb_CRST_u > ( ) ) ) . v2 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st_lcb_CRST_u ) , "::" , stringify ! ( v2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st_lcb_CRST_u > ( ) ) ) . v3 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st_lcb_CRST_u ) , "::" , stringify ! ( v3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st_lcb_CRST_u > ( ) ) ) . v4 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st_lcb_CRST_u ) , "::" , stringify ! ( v4 ) ) ) ; } # [ test ] fn bindgen_test_layout_lcb_create_st ( ) { assert_eq ! ( :: std :: mem :: size_of :: < lcb_create_st > ( ) , 72usize , concat ! ( "Size of: " , stringify ! ( lcb_create_st ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < lcb_create_st > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( lcb_create_st ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st > ( ) ) ) . version as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st ) , "::" , stringify ! ( version ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < lcb_create_st > ( ) ) ) . v as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( lcb_create_st ) , "::" , stringify ! ( v ) ) ) ; } extern "C" { pub fn lcb_create ( instance : * mut * mut lcb_INSTANCE , options : * const lcb_create_st ) -> 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_ON_MASTER : 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_callback3 ( instance : * mut lcb_INSTANCE , cbtype : :: std :: os :: raw :: c_int , cb : lcb_RESPCALLBACK ) -> lcb_RESPCALLBACK ; } extern "C" { pub fn lcb_get_callback3 ( 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 :: std :: os :: raw :: c_char , ctx_len : * mut usize ) -> lcb_STATUS ; } extern "C" { pub fn lcb_respget_error_ref ( resp : * const lcb_RESPGET , ref_ : * mut * const :: std :: os :: raw :: c_char , ref_len : * mut usize ) -> 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_expiration ( 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_durability ( cmd : * mut lcb_CMDGET , level : lcb_DURABILITY_LEVEL ) -> 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 :: std :: os :: raw :: c_char , ctx_len : * mut usize ) -> lcb_STATUS ; } extern "C" { pub fn lcb_respgetreplica_error_ref ( resp : * const lcb_RESPGETREPLICA , ref_ : * mut * const :: std :: os :: raw :: c_char , ref_len : * mut usize ) -> 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 ; } # [ 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_persisted ( resp : * const lcb_RESPEXISTS ) -> :: std :: os :: raw :: c_int ; } 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 :: std :: os :: raw :: c_char , ctx_len : * mut usize ) -> lcb_STATUS ; } extern "C" { pub fn lcb_respexists_error_ref ( resp : * const lcb_RESPEXISTS , ref_ : * mut * const :: std :: os :: raw :: c_char , ref_len : * mut usize ) -> 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_datatype ( resp : * const lcb_RESPEXISTS , datatype : * mut u8 ) -> lcb_STATUS ; } extern "C" { pub fn lcb_respexists_flags ( resp : * const lcb_RESPEXISTS , flags : * mut u32 ) -> 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_ADD : lcb_STORE_OPERATION = 1 ; pub const lcb_STORE_OPERATION_LCB_STORE_REPLACE : lcb_STORE_OPERATION = 2 ; pub const lcb_STORE_OPERATION_LCB_STORE_SET : lcb_STORE_OPERATION = 3 ; 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 :: std :: os :: raw :: c_char , ctx_len : * mut usize ) -> lcb_STATUS ; } extern "C" { pub fn lcb_respstore_error_ref ( resp : * const lcb_RESPSTORE , ref_ : * mut * const :: std :: os :: raw :: c_char , ref_len : * mut usize ) -> 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_expiration ( 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 ; } # [ 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 :: std :: os :: raw :: c_char , ctx_len : * mut usize ) -> lcb_STATUS ; } extern "C" { pub fn lcb_respremove_error_ref ( resp : * const lcb_RESPREMOVE , ref_ : * mut * const :: std :: os :: raw :: c_char , ref_len : * mut usize ) -> 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 :: std :: os :: raw :: c_char , ctx_len : * mut usize ) -> lcb_STATUS ; } extern "C" { pub fn lcb_respcounter_error_ref ( resp : * const lcb_RESPCOUNTER , ref_ : * mut * const :: std :: os :: raw :: c_char , ref_len : * mut usize ) -> 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_expiration ( 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_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 :: std :: os :: raw :: c_char , ctx_len : * mut usize ) -> lcb_STATUS ; } extern "C" { pub fn lcb_respunlock_error_ref ( resp : * const lcb_RESPUNLOCK , ref_ : * mut * const :: std :: os :: raw :: c_char , ref_len : * mut usize ) -> 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 :: std :: os :: raw :: c_char , ctx_len : * mut usize ) -> lcb_STATUS ; } extern "C" { pub fn lcb_resptouch_error_ref ( resp : * const lcb_RESPTOUCH , ref_ : * mut * const :: std :: os :: raw :: c_char , ref_len : * mut usize ) -> 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_expiration ( 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_N1QL : lcb_PING_SERVICE = 2 ; pub const lcb_PING_SERVICE_LCB_PING_SERVICE_FTS : 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_n1ql ( 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_fts ( 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_N1QL : lcb_HTTP_TYPE = 3 ; pub const lcb_HTTP_TYPE_LCB_HTTP_TYPE_FTS : lcb_HTTP_TYPE = 4 ; pub const lcb_HTTP_TYPE_LCB_HTTP_TYPE_CBAS : 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