/* automatically generated by rust-bindgen */ #![allow(bad_style)] pub const KNOT_VERSION_MAJOR : u32 = 2 ; pub const KNOT_VERSION_MINOR : u32 = 6 ; pub const KNOT_VERSION_PATCH : u32 = 8 ; pub const KNOT_VERSION_EXTRA : & 'static [ u8 ; 1usize ] = b"\0" ; pub const KNOT_VERSION_HEX : u32 = 132616 ; pub const KNOT_DNAME_MAXLEN : u32 = 255 ; pub const KNOT_DNAME_MAXLABELS : u32 = 127 ; pub const KNOT_DNAME_MAXLABELLEN : u32 = 63 ; pub const KNOT_DNAME_TXT_MAXLEN : u32 = 1005 ; pub const KNOT_MAX_RDATA_BLOCKS : u32 = 8 ; pub const KNOT_MAX_RDATA_DNAMES : u32 = 2 ; pub const KNOT_DB_LMDB_MAPSIZE : u32 = 104857600 ; pub const KNOT_PKT_SECTIONS : u32 = 3 ; pub const KNOT_RDATA_DNSKEY_FLAG_KSK : u32 = 1 ; pub const KNOT_NSEC3_ALGORITHM_SHA1 : u32 = 1 ; pub const KNOT_NSEC3_FLAG_OPT_OUT : u32 = 1 ; 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 __uint32_t = :: std :: os :: raw :: c_uint ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_binary { pub data : * mut u8 , pub size : usize , } # [ test ] fn bindgen_test_layout_knot_binary ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_binary > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( knot_binary ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_binary > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_binary ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_binary > ( ) ) ) . data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_binary ) , "::" , stringify ! ( data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_binary > ( ) ) ) . size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_binary ) , "::" , stringify ! ( size ) ) ) ; } pub type knot_binary_t = knot_binary ; extern "C" { pub fn knot_binary_from_base64 ( base64 : * const :: std :: os :: raw :: c_char , to : * mut knot_binary_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_binary_from_string ( data : * const u8 , size : usize , to : * mut knot_binary_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_binary_free ( binary : * mut knot_binary_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_binary_dup ( from : * const knot_binary_t , to : * mut knot_binary_t ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_lookup { pub id : :: std :: os :: raw :: c_int , pub name : * const :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_knot_lookup ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_lookup > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( knot_lookup ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_lookup > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_lookup ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_lookup > ( ) ) ) . id as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_lookup ) , "::" , stringify ! ( id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_lookup > ( ) ) ) . name as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_lookup ) , "::" , stringify ! ( name ) ) ) ; } pub type knot_lookup_t = knot_lookup ; extern "C" { # [ link_name = "\u{1}knot_opcode_names" ] pub static mut knot_opcode_names : [ knot_lookup_t ; 0usize ] ; } extern "C" { # [ link_name = "\u{1}knot_rcode_names" ] pub static mut knot_rcode_names : [ knot_lookup_t ; 0usize ] ; } extern "C" { # [ link_name = "\u{1}knot_tsig_rcode_names" ] pub static mut knot_tsig_rcode_names : [ knot_lookup_t ; 0usize ] ; } extern "C" { # [ link_name = "\u{1}knot_dnssec_alg_names" ] pub static mut knot_dnssec_alg_names : [ knot_lookup_t ; 0usize ] ; } pub const knot_addr_family_t_KNOT_ADDR_FAMILY_IPV4 : knot_addr_family_t = 1 ; pub const knot_addr_family_t_KNOT_ADDR_FAMILY_IPV6 : knot_addr_family_t = 2 ; pub type knot_addr_family_t = u32 ; pub const knot_opcode_t_KNOT_OPCODE_QUERY : knot_opcode_t = 0 ; pub const knot_opcode_t_KNOT_OPCODE_IQUERY : knot_opcode_t = 1 ; pub const knot_opcode_t_KNOT_OPCODE_STATUS : knot_opcode_t = 2 ; pub const knot_opcode_t_KNOT_OPCODE_NOTIFY : knot_opcode_t = 4 ; pub const knot_opcode_t_KNOT_OPCODE_UPDATE : knot_opcode_t = 5 ; pub type knot_opcode_t = u32 ; pub const knot_rcode_t_KNOT_RCODE_NOERROR : knot_rcode_t = 0 ; pub const knot_rcode_t_KNOT_RCODE_FORMERR : knot_rcode_t = 1 ; pub const knot_rcode_t_KNOT_RCODE_SERVFAIL : knot_rcode_t = 2 ; pub const knot_rcode_t_KNOT_RCODE_NXDOMAIN : knot_rcode_t = 3 ; pub const knot_rcode_t_KNOT_RCODE_NOTIMPL : knot_rcode_t = 4 ; pub const knot_rcode_t_KNOT_RCODE_REFUSED : knot_rcode_t = 5 ; pub const knot_rcode_t_KNOT_RCODE_YXDOMAIN : knot_rcode_t = 6 ; pub const knot_rcode_t_KNOT_RCODE_YXRRSET : knot_rcode_t = 7 ; pub const knot_rcode_t_KNOT_RCODE_NXRRSET : knot_rcode_t = 8 ; pub const knot_rcode_t_KNOT_RCODE_NOTAUTH : knot_rcode_t = 9 ; pub const knot_rcode_t_KNOT_RCODE_NOTZONE : knot_rcode_t = 10 ; pub const knot_rcode_t_KNOT_RCODE_BADVERS : knot_rcode_t = 16 ; pub const knot_rcode_t_KNOT_RCODE_BADSIG : knot_rcode_t = 16 ; pub const knot_rcode_t_KNOT_RCODE_BADKEY : knot_rcode_t = 17 ; pub const knot_rcode_t_KNOT_RCODE_BADTIME : knot_rcode_t = 18 ; pub const knot_rcode_t_KNOT_RCODE_BADMODE : knot_rcode_t = 19 ; pub const knot_rcode_t_KNOT_RCODE_BADNAME : knot_rcode_t = 20 ; pub const knot_rcode_t_KNOT_RCODE_BADALG : knot_rcode_t = 21 ; pub const knot_rcode_t_KNOT_RCODE_BADTRUNC : knot_rcode_t = 22 ; pub const knot_rcode_t_KNOT_RCODE_BADCOOKIE : knot_rcode_t = 23 ; pub type knot_rcode_t = u32 ; pub const knot_section_t_KNOT_ANSWER : knot_section_t = 0 ; pub const knot_section_t_KNOT_AUTHORITY : knot_section_t = 1 ; pub const knot_section_t_KNOT_ADDITIONAL : knot_section_t = 2 ; pub type knot_section_t = u32 ; pub const knot_ds_algorithm_len_KNOT_DS_DIGEST_LEN_SHA1 : knot_ds_algorithm_len = 20 ; pub const knot_ds_algorithm_len_KNOT_DS_DIGEST_LEN_SHA256 : knot_ds_algorithm_len = 32 ; pub const knot_ds_algorithm_len_KNOT_DS_DIGEST_LEN_GOST : knot_ds_algorithm_len = 32 ; pub const knot_ds_algorithm_len_KNOT_DS_DIGEST_LEN_SHA384 : knot_ds_algorithm_len = 48 ; pub type knot_ds_algorithm_len = u32 ; pub const knot_ds_algorithm_t_KNOT_DS_ALG_SHA1 : knot_ds_algorithm_t = 1 ; pub const knot_ds_algorithm_t_KNOT_DS_ALG_SHA256 : knot_ds_algorithm_t = 2 ; pub const knot_ds_algorithm_t_KNOT_DS_ALG_GOST : knot_ds_algorithm_t = 3 ; pub const knot_ds_algorithm_t_KNOT_DS_ALG_SHA384 : knot_ds_algorithm_t = 4 ; pub type knot_ds_algorithm_t = u32 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_RSAMD5 : knot_dnssec_algorithm_t = 1 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_DH : knot_dnssec_algorithm_t = 2 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_DSA : knot_dnssec_algorithm_t = 3 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_RSASHA1 : knot_dnssec_algorithm_t = 5 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_DSA_NSEC3_SHA1 : knot_dnssec_algorithm_t = 6 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_RSASHA1_NSEC3_SHA1 : knot_dnssec_algorithm_t = 7 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_RSASHA256 : knot_dnssec_algorithm_t = 8 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_RSASHA512 : knot_dnssec_algorithm_t = 10 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_ECC_GOST : knot_dnssec_algorithm_t = 12 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_ECDSAP256SHA256 : knot_dnssec_algorithm_t = 13 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_ECDSAP384SHA384 : knot_dnssec_algorithm_t = 14 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_ED25519 : knot_dnssec_algorithm_t = 15 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_ED448 : knot_dnssec_algorithm_t = 16 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_INDIRECT : knot_dnssec_algorithm_t = 252 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_PRIVATEDNS : knot_dnssec_algorithm_t = 253 ; pub const knot_dnssec_algorithm_t_KNOT_DNSSEC_ALG_PRIVATEOID : knot_dnssec_algorithm_t = 254 ; pub type knot_dnssec_algorithm_t = u32 ; pub const knot_rr_class_KNOT_CLASS_IN : knot_rr_class = 1 ; pub const knot_rr_class_KNOT_CLASS_CH : knot_rr_class = 3 ; pub const knot_rr_class_KNOT_CLASS_NONE : knot_rr_class = 254 ; pub const knot_rr_class_KNOT_CLASS_ANY : knot_rr_class = 255 ; pub type knot_rr_class = u32 ; pub const knot_rr_type_KNOT_RRTYPE_A : knot_rr_type = 1 ; pub const knot_rr_type_KNOT_RRTYPE_NS : knot_rr_type = 2 ; pub const knot_rr_type_KNOT_RRTYPE_CNAME : knot_rr_type = 5 ; pub const knot_rr_type_KNOT_RRTYPE_SOA : knot_rr_type = 6 ; pub const knot_rr_type_KNOT_RRTYPE_NULL : knot_rr_type = 10 ; pub const knot_rr_type_KNOT_RRTYPE_PTR : knot_rr_type = 12 ; pub const knot_rr_type_KNOT_RRTYPE_HINFO : knot_rr_type = 13 ; pub const knot_rr_type_KNOT_RRTYPE_MINFO : knot_rr_type = 14 ; pub const knot_rr_type_KNOT_RRTYPE_MX : knot_rr_type = 15 ; pub const knot_rr_type_KNOT_RRTYPE_TXT : knot_rr_type = 16 ; pub const knot_rr_type_KNOT_RRTYPE_RP : knot_rr_type = 17 ; pub const knot_rr_type_KNOT_RRTYPE_AFSDB : knot_rr_type = 18 ; pub const knot_rr_type_KNOT_RRTYPE_RT : knot_rr_type = 21 ; pub const knot_rr_type_KNOT_RRTYPE_SIG : knot_rr_type = 24 ; pub const knot_rr_type_KNOT_RRTYPE_KEY : knot_rr_type = 25 ; pub const knot_rr_type_KNOT_RRTYPE_AAAA : knot_rr_type = 28 ; pub const knot_rr_type_KNOT_RRTYPE_LOC : knot_rr_type = 29 ; pub const knot_rr_type_KNOT_RRTYPE_SRV : knot_rr_type = 33 ; pub const knot_rr_type_KNOT_RRTYPE_NAPTR : knot_rr_type = 35 ; pub const knot_rr_type_KNOT_RRTYPE_KX : knot_rr_type = 36 ; pub const knot_rr_type_KNOT_RRTYPE_CERT : knot_rr_type = 37 ; pub const knot_rr_type_KNOT_RRTYPE_DNAME : knot_rr_type = 39 ; pub const knot_rr_type_KNOT_RRTYPE_OPT : knot_rr_type = 41 ; pub const knot_rr_type_KNOT_RRTYPE_APL : knot_rr_type = 42 ; pub const knot_rr_type_KNOT_RRTYPE_DS : knot_rr_type = 43 ; pub const knot_rr_type_KNOT_RRTYPE_SSHFP : knot_rr_type = 44 ; pub const knot_rr_type_KNOT_RRTYPE_IPSECKEY : knot_rr_type = 45 ; pub const knot_rr_type_KNOT_RRTYPE_RRSIG : knot_rr_type = 46 ; pub const knot_rr_type_KNOT_RRTYPE_NSEC : knot_rr_type = 47 ; pub const knot_rr_type_KNOT_RRTYPE_DNSKEY : knot_rr_type = 48 ; pub const knot_rr_type_KNOT_RRTYPE_DHCID : knot_rr_type = 49 ; pub const knot_rr_type_KNOT_RRTYPE_NSEC3 : knot_rr_type = 50 ; pub const knot_rr_type_KNOT_RRTYPE_NSEC3PARAM : knot_rr_type = 51 ; pub const knot_rr_type_KNOT_RRTYPE_TLSA : knot_rr_type = 52 ; pub const knot_rr_type_KNOT_RRTYPE_CDS : knot_rr_type = 59 ; pub const knot_rr_type_KNOT_RRTYPE_CDNSKEY : knot_rr_type = 60 ; pub const knot_rr_type_KNOT_RRTYPE_SPF : knot_rr_type = 99 ; pub const knot_rr_type_KNOT_RRTYPE_NID : knot_rr_type = 104 ; pub const knot_rr_type_KNOT_RRTYPE_L32 : knot_rr_type = 105 ; pub const knot_rr_type_KNOT_RRTYPE_L64 : knot_rr_type = 106 ; pub const knot_rr_type_KNOT_RRTYPE_LP : knot_rr_type = 107 ; pub const knot_rr_type_KNOT_RRTYPE_EUI48 : knot_rr_type = 108 ; pub const knot_rr_type_KNOT_RRTYPE_EUI64 : knot_rr_type = 109 ; pub const knot_rr_type_KNOT_RRTYPE_TKEY : knot_rr_type = 249 ; pub const knot_rr_type_KNOT_RRTYPE_TSIG : knot_rr_type = 250 ; pub const knot_rr_type_KNOT_RRTYPE_IXFR : knot_rr_type = 251 ; pub const knot_rr_type_KNOT_RRTYPE_AXFR : knot_rr_type = 252 ; pub const knot_rr_type_KNOT_RRTYPE_ANY : knot_rr_type = 255 ; pub const knot_rr_type_KNOT_RRTYPE_URI : knot_rr_type = 256 ; pub const knot_rr_type_KNOT_RRTYPE_CAA : knot_rr_type = 257 ; pub type knot_rr_type = u32 ; pub const knot_obsolete_rr_type_KNOT_RRTYPE_MD : knot_obsolete_rr_type = 3 ; pub const knot_obsolete_rr_type_KNOT_RRTYPE_MF : knot_obsolete_rr_type = 4 ; pub const knot_obsolete_rr_type_KNOT_RRTYPE_MB : knot_obsolete_rr_type = 7 ; pub const knot_obsolete_rr_type_KNOT_RRTYPE_MG : knot_obsolete_rr_type = 8 ; pub const knot_obsolete_rr_type_KNOT_RRTYPE_MR : knot_obsolete_rr_type = 9 ; pub const knot_obsolete_rr_type_KNOT_RRTYPE_PX : knot_obsolete_rr_type = 26 ; pub const knot_obsolete_rr_type_KNOT_RRTYPE_NXT : knot_obsolete_rr_type = 30 ; pub type knot_obsolete_rr_type = u32 ; pub const knot_rdata_wireformat_KNOT_RDATA_WF_FIXED_DNAME : knot_rdata_wireformat = -10 ; pub const knot_rdata_wireformat_KNOT_RDATA_WF_COMPRESSIBLE_DNAME : knot_rdata_wireformat = -9 ; pub const knot_rdata_wireformat_KNOT_RDATA_WF_DECOMPRESSIBLE_DNAME : knot_rdata_wireformat = -8 ; pub const knot_rdata_wireformat_KNOT_RDATA_WF_NAPTR_HEADER : knot_rdata_wireformat = -7 ; pub const knot_rdata_wireformat_KNOT_RDATA_WF_REMAINDER : knot_rdata_wireformat = -6 ; pub const knot_rdata_wireformat_KNOT_RDATA_WF_END : knot_rdata_wireformat = 0 ; pub type knot_rdata_wireformat = i32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_rdata_descriptor_t { pub block_types : [ :: std :: os :: raw :: c_int ; 8usize ] , pub type_name : * const :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_knot_rdata_descriptor_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_rdata_descriptor_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( knot_rdata_descriptor_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_rdata_descriptor_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_rdata_descriptor_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_rdata_descriptor_t > ( ) ) ) . block_types as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_rdata_descriptor_t ) , "::" , stringify ! ( block_types ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_rdata_descriptor_t > ( ) ) ) . type_name as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( knot_rdata_descriptor_t ) , "::" , stringify ! ( type_name ) ) ) ; } extern "C" { pub fn knot_get_rdata_descriptor ( type_ : u16 ) -> * const knot_rdata_descriptor_t ; } extern "C" { pub fn knot_get_obsolete_rdata_descriptor ( type_ : u16 ) -> * const knot_rdata_descriptor_t ; } extern "C" { pub fn knot_rrtype_to_string ( rrtype : u16 , out : * mut :: std :: os :: raw :: c_char , out_len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rrtype_from_string ( name : * const :: std :: os :: raw :: c_char , num : * mut u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rrclass_to_string ( rrclass : u16 , out : * mut :: std :: os :: raw :: c_char , out_len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rrclass_from_string ( name : * const :: std :: os :: raw :: c_char , num : * mut u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rrtype_is_metatype ( type_ : u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rrtype_is_dnssec ( type_ : u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rrtype_additional_needed ( type_ : u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rrtype_should_be_lowercased ( type_ : u16 ) -> bool ; } extern "C" { pub fn knot_opt_code_to_string ( code : u16 , out : * mut :: std :: os :: raw :: c_char , out_len : usize ) -> :: std :: os :: raw :: c_int ; } pub type knot_mm_alloc_t = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut :: std :: os :: raw :: c_void , len : usize ) -> * mut :: std :: os :: raw :: c_void > ; pub type knot_mm_free_t = :: std :: option :: Option < unsafe extern "C" fn ( p : * mut :: std :: os :: raw :: c_void ) > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_mm { pub ctx : * mut :: std :: os :: raw :: c_void , pub alloc : knot_mm_alloc_t , pub free : knot_mm_free_t , } # [ test ] fn bindgen_test_layout_knot_mm ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_mm > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( knot_mm ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_mm > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_mm ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_mm > ( ) ) ) . ctx as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_mm ) , "::" , stringify ! ( ctx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_mm > ( ) ) ) . alloc as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_mm ) , "::" , stringify ! ( alloc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_mm > ( ) ) ) . free as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( knot_mm ) , "::" , stringify ! ( free ) ) ) ; } pub type knot_mm_t = knot_mm ; pub type knot_dname_t = u8 ; extern "C" { pub fn knot_dname_wire_check ( name : * const u8 , endp : * const u8 , pkt : * const u8 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_dname_parse ( pkt : * const u8 , pos : * mut usize , maxpos : usize , mm : * mut knot_mm_t ) -> * mut knot_dname_t ; } extern "C" { pub fn knot_dname_copy ( name : * const knot_dname_t , mm : * mut knot_mm_t ) -> * mut knot_dname_t ; } extern "C" { pub fn knot_dname_copy_part ( name : * const knot_dname_t , len : :: std :: os :: raw :: c_uint , mm : * mut knot_mm_t ) -> * mut knot_dname_t ; } extern "C" { pub fn knot_dname_to_wire ( dst : * mut u8 , src : * const knot_dname_t , maxlen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_dname_unpack ( dst : * mut u8 , src : * const knot_dname_t , maxlen : usize , pkt : * const u8 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_dname_to_str ( dst : * mut :: std :: os :: raw :: c_char , name : * const knot_dname_t , maxlen : usize ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn knot_dname_from_str ( dst : * mut u8 , name : * const :: std :: os :: raw :: c_char , maxlen : usize ) -> * mut knot_dname_t ; } extern "C" { pub fn knot_dname_to_lower ( name : * mut knot_dname_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_dname_size ( name : * const knot_dname_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_dname_realsize ( name : * const knot_dname_t , pkt : * const u8 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_dname_is_sub ( sub : * const knot_dname_t , domain : * const knot_dname_t ) -> bool ; } extern "C" { pub fn knot_dname_in ( domain : * const knot_dname_t , sub : * const knot_dname_t ) -> bool ; } extern "C" { pub fn knot_dname_is_wildcard ( name : * const knot_dname_t ) -> bool ; } extern "C" { pub fn knot_dname_matched_labels ( d1 : * const knot_dname_t , d2 : * const knot_dname_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_dname_replace_suffix ( name : * const knot_dname_t , labels : :: std :: os :: raw :: c_uint , suffix : * const knot_dname_t ) -> * mut knot_dname_t ; } extern "C" { pub fn knot_dname_free ( name : * mut * mut knot_dname_t , mm : * mut knot_mm_t ) ; } extern "C" { pub fn knot_dname_cmp ( d1 : * const knot_dname_t , d2 : * const knot_dname_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_dname_is_equal ( d1 : * const knot_dname_t , d2 : * const knot_dname_t ) -> bool ; } extern "C" { pub fn knot_dname_label_is_equal ( label1 : * const u8 , label2 : * const u8 ) -> bool ; } extern "C" { pub fn knot_dname_cat ( d1 : * mut knot_dname_t , d2 : * const knot_dname_t ) -> * mut knot_dname_t ; } extern "C" { pub fn knot_dname_prefixlen ( name : * const u8 , nlabels : :: std :: os :: raw :: c_uint , pkt : * const u8 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_dname_labels ( name : * const u8 , pkt : * const u8 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_dname_align ( d1 : * mut * const u8 , d1_labels : u8 , d2 : * mut * const u8 , d2_labels : u8 , wire : * mut u8 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_dname_lf ( dst : * mut u8 , src : * const knot_dname_t , pkt : * const u8 ) -> :: std :: os :: raw :: c_int ; } pub const knot_error_KNOT_EOK : knot_error = 0 ; pub const knot_error_KNOT_ENOMEM : knot_error = -12 ; pub const knot_error_KNOT_EINVAL : knot_error = -22 ; pub const knot_error_KNOT_ENOTSUP : knot_error = -95 ; pub const knot_error_KNOT_EBUSY : knot_error = -16 ; pub const knot_error_KNOT_EAGAIN : knot_error = -11 ; pub const knot_error_KNOT_EACCES : knot_error = -13 ; pub const knot_error_KNOT_ECONNREFUSED : knot_error = -111 ; pub const knot_error_KNOT_EISCONN : knot_error = -106 ; pub const knot_error_KNOT_EADDRINUSE : knot_error = -98 ; pub const knot_error_KNOT_ENOENT : knot_error = -2 ; pub const knot_error_KNOT_EEXIST : knot_error = -17 ; pub const knot_error_KNOT_ERANGE : knot_error = -34 ; pub const knot_error_KNOT_EADDRNOTAVAIL : knot_error = -99 ; pub const knot_error_KNOT_ERROR_MIN : knot_error = -1000 ; pub const knot_error_KNOT_ERROR : knot_error = -1000 ; pub const knot_error_KNOT_ENOTRUNNING : knot_error = -999 ; pub const knot_error_KNOT_EPARSEFAIL : knot_error = -998 ; pub const knot_error_KNOT_ESEMCHECK : knot_error = -997 ; pub const knot_error_KNOT_EEXPIRED : knot_error = -996 ; pub const knot_error_KNOT_EUPTODATE : knot_error = -995 ; pub const knot_error_KNOT_EFEWDATA : knot_error = -994 ; pub const knot_error_KNOT_ESPACE : knot_error = -993 ; pub const knot_error_KNOT_EMALF : knot_error = -992 ; pub const knot_error_KNOT_ECRYPTO : knot_error = -991 ; pub const knot_error_KNOT_ENSEC3PAR : knot_error = -990 ; pub const knot_error_KNOT_ENSEC3CHAIN : knot_error = -989 ; pub const knot_error_KNOT_EOUTOFZONE : knot_error = -988 ; pub const knot_error_KNOT_EHASH : knot_error = -987 ; pub const knot_error_KNOT_EZONEINVAL : knot_error = -986 ; pub const knot_error_KNOT_EZONENOENT : knot_error = -985 ; pub const knot_error_KNOT_ENOZONE : knot_error = -984 ; pub const knot_error_KNOT_ENONODE : knot_error = -983 ; pub const knot_error_KNOT_ENORECORD : knot_error = -982 ; pub const knot_error_KNOT_ENOMASTER : knot_error = -981 ; pub const knot_error_KNOT_EDNAMEPTR : knot_error = -980 ; pub const knot_error_KNOT_EPAYLOAD : knot_error = -979 ; pub const knot_error_KNOT_EPREREQ : knot_error = -978 ; pub const knot_error_KNOT_ETTL : knot_error = -977 ; pub const knot_error_KNOT_ENOXFR : knot_error = -976 ; pub const knot_error_KNOT_ENOIXFR : knot_error = -975 ; pub const knot_error_KNOT_EXFRREFUSED : knot_error = -974 ; pub const knot_error_KNOT_EDENIED : knot_error = -973 ; pub const knot_error_KNOT_ECONN : knot_error = -972 ; pub const knot_error_KNOT_ETIMEOUT : knot_error = -971 ; pub const knot_error_KNOT_EIXFRSPACE : knot_error = -970 ; pub const knot_error_KNOT_ECNAME : knot_error = -969 ; pub const knot_error_KNOT_ENODIFF : knot_error = -968 ; pub const knot_error_KNOT_EDSDIGESTLEN : knot_error = -967 ; pub const knot_error_KNOT_ENOTSIG : knot_error = -966 ; pub const knot_error_KNOT_ELIMIT : knot_error = -965 ; pub const knot_error_KNOT_EZONESIZE : knot_error = -964 ; pub const knot_error_KNOT_EWRITABLE : knot_error = -963 ; pub const knot_error_KNOT_EOF : knot_error = -962 ; pub const knot_error_KNOT_ESYSTEM : knot_error = -961 ; pub const knot_error_KNOT_EFILE : knot_error = -960 ; pub const knot_error_KNOT_ESOAINVAL : knot_error = -959 ; pub const knot_error_KNOT_CTL_ESTOP : knot_error = -958 ; pub const knot_error_KNOT_NET_EADDR : knot_error = -957 ; pub const knot_error_KNOT_NET_ESOCKET : knot_error = -956 ; pub const knot_error_KNOT_NET_ECONNECT : knot_error = -955 ; pub const knot_error_KNOT_NET_ESEND : knot_error = -954 ; pub const knot_error_KNOT_NET_ERECV : knot_error = -953 ; pub const knot_error_KNOT_NET_ETIMEOUT : knot_error = -952 ; pub const knot_error_KNOT_BASE64_ESIZE : knot_error = -951 ; pub const knot_error_KNOT_BASE64_ECHAR : knot_error = -950 ; pub const knot_error_KNOT_BASE32HEX_ESIZE : knot_error = -949 ; pub const knot_error_KNOT_BASE32HEX_ECHAR : knot_error = -948 ; pub const knot_error_KNOT_TSIG_EBADSIG : knot_error = -947 ; pub const knot_error_KNOT_TSIG_EBADKEY : knot_error = -946 ; pub const knot_error_KNOT_TSIG_EBADTIME : knot_error = -945 ; pub const knot_error_KNOT_TSIG_EBADTRUNC : knot_error = -944 ; pub const knot_error_KNOT_KEY_EPUBLIC_KEY_OPEN : knot_error = -943 ; pub const knot_error_KNOT_KEY_EPRIVATE_KEY_OPEN : knot_error = -942 ; pub const knot_error_KNOT_KEY_EPUBLIC_KEY_INVALID : knot_error = -941 ; pub const knot_error_KNOT_DNSSEC_EMISSINGKEYTYPE : knot_error = -940 ; pub const knot_error_KNOT_DNSSEC_ENOKEY : knot_error = -939 ; pub const knot_error_KNOT_YP_ECHAR_TAB : knot_error = -938 ; pub const knot_error_KNOT_YP_EINVAL_ITEM : knot_error = -937 ; pub const knot_error_KNOT_YP_EINVAL_ID : knot_error = -936 ; pub const knot_error_KNOT_YP_EINVAL_DATA : knot_error = -935 ; pub const knot_error_KNOT_YP_EINVAL_INDENT : knot_error = -934 ; pub const knot_error_KNOT_YP_ENOTSUP_DATA : knot_error = -933 ; pub const knot_error_KNOT_YP_ENOTSUP_ID : knot_error = -932 ; pub const knot_error_KNOT_YP_ENODATA : knot_error = -931 ; pub const knot_error_KNOT_YP_ENOID : knot_error = -930 ; pub const knot_error_KNOT_CONF_ENOTINIT : knot_error = -929 ; pub const knot_error_KNOT_CONF_EVERSION : knot_error = -928 ; pub const knot_error_KNOT_CONF_EREDEFINE : knot_error = -927 ; pub const knot_error_KNOT_TXN_EEXISTS : knot_error = -926 ; pub const knot_error_KNOT_TXN_ENOTEXISTS : knot_error = -925 ; pub const knot_error_KNOT_LAYER_ERROR : knot_error = -924 ; pub const knot_error_KNOT_INVALID_PUBLIC_KEY : knot_error = -923 ; pub const knot_error_KNOT_INVALID_PRIVATE_KEY : knot_error = -922 ; pub const knot_error_KNOT_INVALID_KEY_ALGORITHM : knot_error = -921 ; pub const knot_error_KNOT_INVALID_KEY_SIZE : knot_error = -920 ; pub const knot_error_KNOT_INVALID_KEY_ID : knot_error = -919 ; pub const knot_error_KNOT_INVALID_KEY_NAME : knot_error = -918 ; pub const knot_error_KNOT_NO_PUBLIC_KEY : knot_error = -917 ; pub const knot_error_KNOT_NO_PRIVATE_KEY : knot_error = -916 ; pub const knot_error_KNOT_ETRAIL : knot_error = -915 ; pub const knot_error_KNOT_ERROR_MAX : knot_error = -501 ; pub type knot_error = i32 ; extern "C" { pub fn knot_strerror ( code : :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn knot_error_from_libdnssec ( libdnssec_errcode : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } pub type knot_rdata_t = u8 ; extern "C" { pub fn knot_rdata_init ( rdata : * mut knot_rdata_t , rdlen : u16 , data : * const u8 , ttl : u32 ) ; } extern "C" { pub fn knot_rdata_rdlen ( rr : * const knot_rdata_t ) -> u16 ; } extern "C" { pub fn knot_rdata_set_rdlen ( rr : * mut knot_rdata_t , size : u16 ) ; } extern "C" { pub fn knot_rdata_ttl ( rr : * const knot_rdata_t ) -> u32 ; } extern "C" { pub fn knot_rdata_set_ttl ( rr : * mut knot_rdata_t , ttl : u32 ) ; } extern "C" { pub fn knot_rdata_data ( rr : * const knot_rdata_t ) -> * mut u8 ; } extern "C" { pub fn knot_rdata_array_size ( size : u16 ) -> usize ; } extern "C" { pub fn knot_rdata_cmp ( rr1 : * const knot_rdata_t , rr2 : * const knot_rdata_t ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_rdataset { pub rr_count : u16 , pub data : * mut knot_rdata_t , } # [ test ] fn bindgen_test_layout_knot_rdataset ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_rdataset > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( knot_rdataset ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_rdataset > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_rdataset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_rdataset > ( ) ) ) . rr_count as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_rdataset ) , "::" , stringify ! ( rr_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_rdataset > ( ) ) ) . data as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_rdataset ) , "::" , stringify ! ( data ) ) ) ; } pub type knot_rdataset_t = knot_rdataset ; extern "C" { pub fn knot_rdataset_init ( rrs : * mut knot_rdataset_t ) ; } extern "C" { pub fn knot_rdataset_clear ( rrs : * mut knot_rdataset_t , mm : * mut knot_mm_t ) ; } extern "C" { pub fn knot_rdataset_copy ( dst : * mut knot_rdataset_t , src : * const knot_rdataset_t , mm : * mut knot_mm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rdataset_at ( rrs : * const knot_rdataset_t , pos : usize ) -> * mut knot_rdata_t ; } extern "C" { pub fn knot_rdataset_gather ( dst : * mut knot_rdataset_t , src : * mut * mut knot_rdata_t , count : u16 , mm : * mut knot_mm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rdataset_size ( rrs : * const knot_rdataset_t ) -> usize ; } extern "C" { pub fn knot_rdataset_ttl ( rrs : * const knot_rdataset_t ) -> u32 ; } extern "C" { pub fn knot_rdataset_set_ttl ( rrs : * mut knot_rdataset_t , ttl : u32 ) ; } extern "C" { pub fn knot_rdataset_add ( rrs : * mut knot_rdataset_t , rr : * const knot_rdata_t , mm : * mut knot_mm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rdataset_reserve ( rrs : * mut knot_rdataset_t , size : usize , mm : * mut knot_mm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rdataset_unreserve ( rrs : * mut knot_rdataset_t , mm : * mut knot_mm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rdataset_eq ( rrs1 : * const knot_rdataset_t , rrs2 : * const knot_rdataset_t ) -> bool ; } extern "C" { pub fn knot_rdataset_member ( rrs : * const knot_rdataset_t , rr : * const knot_rdata_t , cmp_ttl : bool ) -> bool ; } extern "C" { pub fn knot_rdataset_merge ( rrs1 : * mut knot_rdataset_t , rrs2 : * const knot_rdataset_t , mm : * mut knot_mm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rdataset_intersect ( a : * const knot_rdataset_t , b : * const knot_rdataset_t , out : * mut knot_rdataset_t , mm : * mut knot_mm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rdataset_subtract ( from : * mut knot_rdataset_t , what : * const knot_rdataset_t , cmp_ttl : bool , mm : * mut knot_mm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rdataset_sort_at ( rrs : * mut knot_rdataset_t , pos : usize , mm : * mut knot_mm_t ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_rrset { pub owner : * mut knot_dname_t , pub type_ : u16 , pub rclass : u16 , pub rrs : knot_rdataset_t , pub additional : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout_knot_rrset ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_rrset > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( knot_rrset ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_rrset > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_rrset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_rrset > ( ) ) ) . owner as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_rrset ) , "::" , stringify ! ( owner ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_rrset > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_rrset ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_rrset > ( ) ) ) . rclass as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( knot_rrset ) , "::" , stringify ! ( rclass ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_rrset > ( ) ) ) . rrs as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( knot_rrset ) , "::" , stringify ! ( rrs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_rrset > ( ) ) ) . additional as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( knot_rrset ) , "::" , stringify ! ( additional ) ) ) ; } pub type knot_rrset_t = knot_rrset ; pub const knot_rrset_compare_type_t_KNOT_RRSET_COMPARE_PTR : knot_rrset_compare_type_t = 0 ; pub const knot_rrset_compare_type_t_KNOT_RRSET_COMPARE_HEADER : knot_rrset_compare_type_t = 1 ; pub const knot_rrset_compare_type_t_KNOT_RRSET_COMPARE_WHOLE : knot_rrset_compare_type_t = 2 ; pub type knot_rrset_compare_type_t = u32 ; extern "C" { pub fn knot_rrset_new ( owner : * const knot_dname_t , type_ : u16 , rclass : u16 , mm : * mut knot_mm_t ) -> * mut knot_rrset_t ; } extern "C" { pub fn knot_rrset_init ( rrset : * mut knot_rrset_t , owner : * mut knot_dname_t , type_ : u16 , rclass : u16 ) ; } extern "C" { pub fn knot_rrset_init_empty ( rrset : * mut knot_rrset_t ) ; } extern "C" { pub fn knot_rrset_copy ( src : * const knot_rrset_t , mm : * mut knot_mm_t ) -> * mut knot_rrset_t ; } extern "C" { pub fn knot_rrset_free ( rrset : * mut * mut knot_rrset_t , mm : * mut knot_mm_t ) ; } extern "C" { pub fn knot_rrset_clear ( rrset : * mut knot_rrset_t , mm : * mut knot_mm_t ) ; } extern "C" { pub fn knot_rrset_add_rdata ( rrset : * mut knot_rrset_t , rdata : * const u8 , size : u16 , ttl : u32 , mm : * mut knot_mm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rrset_equal ( r1 : * const knot_rrset_t , r2 : * const knot_rrset_t , cmp : knot_rrset_compare_type_t ) -> bool ; } extern "C" { pub fn knot_rrset_empty ( rrset : * const knot_rrset_t ) -> bool ; } extern "C" { pub fn knot_rrset_ttl ( rrset : * const knot_rrset_t ) -> u32 ; } extern "C" { pub fn knot_rrset_is_nsec3rel ( rr : * const knot_rrset_t ) -> bool ; } extern "C" { pub fn knot_rrset_rr_to_canonical ( rrset : * mut knot_rrset_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rrset_size ( rrset : * const knot_rrset_t ) -> usize ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_dump_style_t { pub wrap : bool , pub show_class : bool , pub show_ttl : bool , pub verbose : bool , pub empty_ttl : bool , pub human_ttl : bool , pub human_tmstamp : bool , pub generic : bool , pub hide_crypto : bool , pub ascii_to_idn : :: std :: option :: Option < unsafe extern "C" fn ( name : * mut * mut :: std :: os :: raw :: c_char ) > , } # [ test ] fn bindgen_test_layout_knot_dump_style_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_dump_style_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( knot_dump_style_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_dump_style_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_dump_style_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_dump_style_t > ( ) ) ) . wrap as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_dump_style_t ) , "::" , stringify ! ( wrap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_dump_style_t > ( ) ) ) . show_class as * const _ as usize } , 1usize , concat ! ( "Offset of field: " , stringify ! ( knot_dump_style_t ) , "::" , stringify ! ( show_class ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_dump_style_t > ( ) ) ) . show_ttl as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( knot_dump_style_t ) , "::" , stringify ! ( show_ttl ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_dump_style_t > ( ) ) ) . verbose as * const _ as usize } , 3usize , concat ! ( "Offset of field: " , stringify ! ( knot_dump_style_t ) , "::" , stringify ! ( verbose ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_dump_style_t > ( ) ) ) . empty_ttl as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( knot_dump_style_t ) , "::" , stringify ! ( empty_ttl ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_dump_style_t > ( ) ) ) . human_ttl as * const _ as usize } , 5usize , concat ! ( "Offset of field: " , stringify ! ( knot_dump_style_t ) , "::" , stringify ! ( human_ttl ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_dump_style_t > ( ) ) ) . human_tmstamp as * const _ as usize } , 6usize , concat ! ( "Offset of field: " , stringify ! ( knot_dump_style_t ) , "::" , stringify ! ( human_tmstamp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_dump_style_t > ( ) ) ) . generic as * const _ as usize } , 7usize , concat ! ( "Offset of field: " , stringify ! ( knot_dump_style_t ) , "::" , stringify ! ( generic ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_dump_style_t > ( ) ) ) . hide_crypto as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_dump_style_t ) , "::" , stringify ! ( hide_crypto ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_dump_style_t > ( ) ) ) . ascii_to_idn as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( knot_dump_style_t ) , "::" , stringify ! ( ascii_to_idn ) ) ) ; } extern "C" { # [ link_name = "\u{1}KNOT_DUMP_STYLE_DEFAULT" ] pub static mut KNOT_DUMP_STYLE_DEFAULT : knot_dump_style_t ; } extern "C" { pub fn knot_rrset_txt_dump_header ( rrset : * const knot_rrset_t , ttl : u32 , dst : * mut :: std :: os :: raw :: c_char , maxlen : usize , style : * const knot_dump_style_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rrset_txt_dump_data ( rrset : * const knot_rrset_t , pos : usize , dst : * mut :: std :: os :: raw :: c_char , maxlen : usize , style : * const knot_dump_style_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rrset_txt_dump ( rrset : * const knot_rrset_t , dst : * mut * mut :: std :: os :: raw :: c_char , dst_size : * mut usize , style : * const knot_dump_style_t ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct dnssec_binary { pub size : usize , pub data : * mut u8 , } # [ test ] fn bindgen_test_layout_dnssec_binary ( ) { assert_eq ! ( :: std :: mem :: size_of :: < dnssec_binary > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( dnssec_binary ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < dnssec_binary > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( dnssec_binary ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < dnssec_binary > ( ) ) ) . size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( dnssec_binary ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < dnssec_binary > ( ) ) ) . data as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( dnssec_binary ) , "::" , stringify ! ( data ) ) ) ; } pub type dnssec_binary_t = dnssec_binary ; pub const dnssec_tsig_algorithm_DNSSEC_TSIG_UNKNOWN : dnssec_tsig_algorithm = 0 ; pub const dnssec_tsig_algorithm_DNSSEC_TSIG_HMAC_MD5 : dnssec_tsig_algorithm = 1 ; pub const dnssec_tsig_algorithm_DNSSEC_TSIG_HMAC_SHA1 : dnssec_tsig_algorithm = 2 ; pub const dnssec_tsig_algorithm_DNSSEC_TSIG_HMAC_SHA224 : dnssec_tsig_algorithm = 3 ; pub const dnssec_tsig_algorithm_DNSSEC_TSIG_HMAC_SHA256 : dnssec_tsig_algorithm = 4 ; pub const dnssec_tsig_algorithm_DNSSEC_TSIG_HMAC_SHA384 : dnssec_tsig_algorithm = 5 ; pub const dnssec_tsig_algorithm_DNSSEC_TSIG_HMAC_SHA512 : dnssec_tsig_algorithm = 6 ; pub type dnssec_tsig_algorithm = u32 ; pub use self :: dnssec_tsig_algorithm as dnssec_tsig_algorithm_t ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_tsig_key { pub algorithm : dnssec_tsig_algorithm_t , pub name : * mut knot_dname_t , pub secret : dnssec_binary_t , } # [ test ] fn bindgen_test_layout_knot_tsig_key ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_tsig_key > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( knot_tsig_key ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_tsig_key > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_tsig_key ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_tsig_key > ( ) ) ) . algorithm as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_tsig_key ) , "::" , stringify ! ( algorithm ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_tsig_key > ( ) ) ) . name as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_tsig_key ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_tsig_key > ( ) ) ) . secret as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( knot_tsig_key ) , "::" , stringify ! ( secret ) ) ) ; } pub type knot_tsig_key_t = knot_tsig_key ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_sign_context { pub tsig_key : knot_tsig_key_t , pub tsig_buf : * mut u8 , pub tsig_digest : * mut u8 , pub tsig_buflen : usize , pub tsig_digestlen : usize , pub tsig_runlen : u8 , pub tsig_time_signed : u64 , pub pkt_count : usize , } # [ test ] fn bindgen_test_layout_knot_sign_context ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_sign_context > ( ) , 88usize , concat ! ( "Size of: " , stringify ! ( knot_sign_context ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_sign_context > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_sign_context ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_sign_context > ( ) ) ) . tsig_key as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_sign_context ) , "::" , stringify ! ( tsig_key ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_sign_context > ( ) ) ) . tsig_buf as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( knot_sign_context ) , "::" , stringify ! ( tsig_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_sign_context > ( ) ) ) . tsig_digest as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( knot_sign_context ) , "::" , stringify ! ( tsig_digest ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_sign_context > ( ) ) ) . tsig_buflen as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( knot_sign_context ) , "::" , stringify ! ( tsig_buflen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_sign_context > ( ) ) ) . tsig_digestlen as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( knot_sign_context ) , "::" , stringify ! ( tsig_digestlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_sign_context > ( ) ) ) . tsig_runlen as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( knot_sign_context ) , "::" , stringify ! ( tsig_runlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_sign_context > ( ) ) ) . tsig_time_signed as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( knot_sign_context ) , "::" , stringify ! ( tsig_time_signed ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_sign_context > ( ) ) ) . pkt_count as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( knot_sign_context ) , "::" , stringify ! ( pkt_count ) ) ) ; } pub type knot_sign_context_t = knot_sign_context ; extern "C" { pub fn knot_tsig_key_init ( key : * mut knot_tsig_key_t , algorithm : * const :: std :: os :: raw :: c_char , name : * const :: std :: os :: raw :: c_char , secret_b64 : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_key_init_str ( key : * mut knot_tsig_key_t , params : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_key_init_file ( key : * mut knot_tsig_key_t , filename : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_key_deinit ( key : * mut knot_tsig_key_t ) ; } extern "C" { pub fn knot_tsig_key_copy ( dst : * mut knot_tsig_key_t , src : * const knot_tsig_key_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_create_rdata ( rr : * mut knot_rrset_t , alg : * const knot_dname_t , maclen : u16 , tsig_err : u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_rdata_set_time_signed ( tsig : * mut knot_rrset_t , time : u64 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_rdata_store_current_time ( tsig : * mut knot_rrset_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_rdata_set_fudge ( tsig : * mut knot_rrset_t , fudge : u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_rdata_set_mac ( tsig : * mut knot_rrset_t , length : u16 , mac : * const u8 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_rdata_set_orig_id ( tsig : * mut knot_rrset_t , id : u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_rdata_set_other_data ( tsig : * mut knot_rrset_t , length : u16 , other_data : * const u8 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_rdata_alg_name ( tsig : * const knot_rrset_t ) -> * const knot_dname_t ; } extern "C" { pub fn knot_tsig_rdata_alg ( tsig : * const knot_rrset_t ) -> dnssec_tsig_algorithm_t ; } extern "C" { pub fn knot_tsig_rdata_time_signed ( tsig : * const knot_rrset_t ) -> u64 ; } extern "C" { pub fn knot_tsig_rdata_fudge ( tsig : * const knot_rrset_t ) -> u16 ; } extern "C" { pub fn knot_tsig_rdata_mac ( tsig : * const knot_rrset_t ) -> * const u8 ; } extern "C" { pub fn knot_tsig_rdata_mac_length ( tsig : * const knot_rrset_t ) -> usize ; } extern "C" { pub fn knot_tsig_rdata_orig_id ( tsig : * const knot_rrset_t ) -> u16 ; } extern "C" { pub fn knot_tsig_rdata_error ( tsig : * const knot_rrset_t ) -> u16 ; } extern "C" { pub fn knot_tsig_rdata_other_data ( tsig : * const knot_rrset_t ) -> * const u8 ; } extern "C" { pub fn knot_tsig_rdata_other_data_length ( tsig : * const knot_rrset_t ) -> u16 ; } extern "C" { pub fn knot_tsig_rdata_tsig_variables_length ( tsig : * const knot_rrset_t ) -> usize ; } extern "C" { pub fn knot_tsig_rdata_tsig_timers_length ( ) -> usize ; } extern "C" { pub fn knot_tsig_wire_size ( key : * const knot_tsig_key_t ) -> usize ; } extern "C" { pub fn knot_tsig_wire_maxsize ( key : * const knot_tsig_key_t ) -> usize ; } extern "C" { pub fn knot_tsig_rdata_is_ok ( tsig : * const knot_rrset_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_sign ( msg : * mut u8 , msg_len : * mut usize , msg_max_len : usize , request_mac : * const u8 , request_mac_len : usize , digest : * mut u8 , digest_len : * mut usize , key : * const knot_tsig_key_t , tsig_rcode : u16 , request_time_signed : u64 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_sign_next ( msg : * mut u8 , msg_len : * mut usize , msg_max_len : usize , prev_digest : * const u8 , prev_digest_len : usize , digest : * mut u8 , digest_len : * mut usize , key : * const knot_tsig_key_t , to_sign : * mut u8 , to_sign_len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_server_check ( tsig_rr : * const knot_rrset_t , wire : * const u8 , size : usize , tsig_key : * const knot_tsig_key_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_client_check ( tsig_rr : * const knot_rrset_t , wire : * const u8 , size : usize , request_mac : * const u8 , request_mac_len : usize , key : * const knot_tsig_key_t , prev_time_signed : u64 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_client_check_next ( tsig_rr : * const knot_rrset_t , wire : * const u8 , size : usize , prev_digest : * const u8 , prev_digest_len : usize , key : * const knot_tsig_key_t , prev_time_signed : u64 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_add ( msg : * mut u8 , msg_len : * mut usize , msg_max_len : usize , tsig_rcode : u16 , tsig_rr : * const knot_rrset_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_tsig_append ( msg : * mut u8 , msg_len : * mut usize , msg_max_len : usize , tsig_rr : * const knot_rrset_t ) -> :: std :: os :: raw :: c_int ; } # [ repr ( u32 ) ] # [ derive ( Debug , Copy , Clone , PartialEq , Eq , Hash ) ] pub enum knot_ctl_idx_t { KNOT_CTL_IDX_CMD = 0 , KNOT_CTL_IDX_FLAGS = 1 , KNOT_CTL_IDX_ERROR = 2 , KNOT_CTL_IDX_SECTION = 3 , KNOT_CTL_IDX_ITEM = 4 , KNOT_CTL_IDX_ID = 5 , KNOT_CTL_IDX_ZONE = 6 , KNOT_CTL_IDX_OWNER = 7 , KNOT_CTL_IDX_TTL = 8 , KNOT_CTL_IDX_TYPE = 9 , KNOT_CTL_IDX_DATA = 10 , KNOT_CTL_IDX_FILTER = 11 , KNOT_CTL_IDX__COUNT = 12 , } pub const knot_ctl_type_t_KNOT_CTL_TYPE_END : knot_ctl_type_t = 0 ; pub const knot_ctl_type_t_KNOT_CTL_TYPE_DATA : knot_ctl_type_t = 1 ; pub const knot_ctl_type_t_KNOT_CTL_TYPE_EXTRA : knot_ctl_type_t = 2 ; pub const knot_ctl_type_t_KNOT_CTL_TYPE_BLOCK : knot_ctl_type_t = 3 ; pub type knot_ctl_type_t = u32 ; pub type knot_ctl_data_t = [ * const :: std :: os :: raw :: c_char ; 12usize ] ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_ctl { _unused : [ u8 ; 0 ] , } pub type knot_ctl_t = knot_ctl ; extern "C" { pub fn knot_ctl_alloc ( ) -> * mut knot_ctl_t ; } extern "C" { pub fn knot_ctl_free ( ctx : * mut knot_ctl_t ) ; } extern "C" { pub fn knot_ctl_set_timeout ( ctx : * mut knot_ctl_t , timeout_ms : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn knot_ctl_bind ( ctx : * mut knot_ctl_t , path : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_ctl_unbind ( ctx : * mut knot_ctl_t ) ; } extern "C" { pub fn knot_ctl_connect ( ctx : * mut knot_ctl_t , path : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_ctl_accept ( ctx : * mut knot_ctl_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_ctl_close ( ctx : * mut knot_ctl_t ) ; } extern "C" { pub fn knot_ctl_send ( ctx : * mut knot_ctl_t , type_ : knot_ctl_type_t , data : * mut knot_ctl_data_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_ctl_receive ( ctx : * mut knot_ctl_t , type_ : * mut knot_ctl_type_t , data : * mut knot_ctl_data_t ) -> :: std :: os :: raw :: c_int ; } pub const KNOT_DB_RDONLY : _bindgen_ty_1 = 1 ; pub const KNOT_DB_SORTED : _bindgen_ty_1 = 2 ; pub const KNOT_DB_NOOP : _bindgen_ty_1 = 4 ; pub const KNOT_DB_FIRST : _bindgen_ty_1 = 8 ; pub const KNOT_DB_LAST : _bindgen_ty_1 = 16 ; pub const KNOT_DB_NEXT : _bindgen_ty_1 = 32 ; pub const KNOT_DB_PREV : _bindgen_ty_1 = 64 ; pub const KNOT_DB_LEQ : _bindgen_ty_1 = 128 ; pub const KNOT_DB_GEQ : _bindgen_ty_1 = 256 ; pub type _bindgen_ty_1 = u32 ; pub type knot_db_t = :: std :: os :: raw :: c_void ; pub type knot_db_iter_t = :: std :: os :: raw :: c_void ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_db_val { pub data : * mut :: std :: os :: raw :: c_void , pub len : usize , } # [ test ] fn bindgen_test_layout_knot_db_val ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_db_val > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( knot_db_val ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_db_val > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_db_val ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_val > ( ) ) ) . data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_val ) , "::" , stringify ! ( data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_val > ( ) ) ) . len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_val ) , "::" , stringify ! ( len ) ) ) ; } pub type knot_db_val_t = knot_db_val ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_db_txn { pub db : * mut knot_db_t , pub txn : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout_knot_db_txn ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_db_txn > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( knot_db_txn ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_db_txn > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_db_txn ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_txn > ( ) ) ) . db as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_txn ) , "::" , stringify ! ( db ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_txn > ( ) ) ) . txn as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_txn ) , "::" , stringify ! ( txn ) ) ) ; } pub type knot_db_txn_t = knot_db_txn ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_db_api { pub name : * const :: std :: os :: raw :: c_char , pub init : :: std :: option :: Option < unsafe extern "C" fn ( db : * mut * mut knot_db_t , mm : * mut knot_mm_t , opts : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int > , pub deinit : :: std :: option :: Option < unsafe extern "C" fn ( db : * mut knot_db_t ) > , pub txn_begin : :: std :: option :: Option < unsafe extern "C" fn ( db : * mut knot_db_t , txn : * mut knot_db_txn_t , flags : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int > , pub txn_commit : :: std :: option :: Option < unsafe extern "C" fn ( txn : * mut knot_db_txn_t ) -> :: std :: os :: raw :: c_int > , pub txn_abort : :: std :: option :: Option < unsafe extern "C" fn ( txn : * mut knot_db_txn_t ) > , pub count : :: std :: option :: Option < unsafe extern "C" fn ( txn : * mut knot_db_txn_t ) -> :: std :: os :: raw :: c_int > , pub clear : :: std :: option :: Option < unsafe extern "C" fn ( txn : * mut knot_db_txn_t ) -> :: std :: os :: raw :: c_int > , pub find : :: std :: option :: Option < unsafe extern "C" fn ( txn : * mut knot_db_txn_t , key : * mut knot_db_val_t , val : * mut knot_db_val_t , flags : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int > , pub insert : :: std :: option :: Option < unsafe extern "C" fn ( txn : * mut knot_db_txn_t , key : * mut knot_db_val_t , val : * mut knot_db_val_t , flags : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int > , pub del : :: std :: option :: Option < unsafe extern "C" fn ( txn : * mut knot_db_txn_t , key : * mut knot_db_val_t ) -> :: std :: os :: raw :: c_int > , pub iter_begin : :: std :: option :: Option < unsafe extern "C" fn ( txn : * mut knot_db_txn_t , flags : :: std :: os :: raw :: c_uint ) -> * mut knot_db_iter_t > , pub iter_seek : :: std :: option :: Option < unsafe extern "C" fn ( iter : * mut knot_db_iter_t , key : * mut knot_db_val_t , flags : :: std :: os :: raw :: c_uint ) -> * mut knot_db_iter_t > , pub iter_next : :: std :: option :: Option < unsafe extern "C" fn ( iter : * mut knot_db_iter_t ) -> * mut knot_db_iter_t > , pub iter_key : :: std :: option :: Option < unsafe extern "C" fn ( iter : * mut knot_db_iter_t , key : * mut knot_db_val_t ) -> :: std :: os :: raw :: c_int > , pub iter_val : :: std :: option :: Option < unsafe extern "C" fn ( iter : * mut knot_db_iter_t , val : * mut knot_db_val_t ) -> :: std :: os :: raw :: c_int > , pub iter_finish : :: std :: option :: Option < unsafe extern "C" fn ( iter : * mut knot_db_iter_t ) > , } # [ test ] fn bindgen_test_layout_knot_db_api ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_db_api > ( ) , 136usize , concat ! ( "Size of: " , stringify ! ( knot_db_api ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_db_api > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_db_api ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . name as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . init as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( init ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . deinit as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( deinit ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . txn_begin as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( txn_begin ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . txn_commit as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( txn_commit ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . txn_abort as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( txn_abort ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . count as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . clear as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( clear ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . find as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( find ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . insert as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( insert ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . del as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( del ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . iter_begin as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( iter_begin ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . iter_seek as * const _ as usize } , 96usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( iter_seek ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . iter_next as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( iter_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . iter_key as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( iter_key ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . iter_val as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( iter_val ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_api > ( ) ) ) . iter_finish as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_api ) , "::" , stringify ! ( iter_finish ) ) ) ; } pub type knot_db_api_t = knot_db_api ; extern "C" { # [ link_name = "\u{1}KNOT_DB_LMDB_NOTLS" ] pub static mut KNOT_DB_LMDB_NOTLS : :: std :: os :: raw :: c_uint ; } extern "C" { # [ link_name = "\u{1}KNOT_DB_LMDB_RDONLY" ] pub static mut KNOT_DB_LMDB_RDONLY : :: std :: os :: raw :: c_uint ; } extern "C" { # [ link_name = "\u{1}KNOT_DB_LMDB_INTEGERKEY" ] pub static mut KNOT_DB_LMDB_INTEGERKEY : :: std :: os :: raw :: c_uint ; } extern "C" { # [ link_name = "\u{1}KNOT_DB_LMDB_NOSYNC" ] pub static mut KNOT_DB_LMDB_NOSYNC : :: std :: os :: raw :: c_uint ; } extern "C" { # [ link_name = "\u{1}KNOT_DB_LMDB_WRITEMAP" ] pub static mut KNOT_DB_LMDB_WRITEMAP : :: std :: os :: raw :: c_uint ; } extern "C" { # [ link_name = "\u{1}KNOT_DB_LMDB_MAPASYNC" ] pub static mut KNOT_DB_LMDB_MAPASYNC : :: std :: os :: raw :: c_uint ; } extern "C" { # [ link_name = "\u{1}KNOT_DB_LMDB_DUPSORT" ] pub static mut KNOT_DB_LMDB_DUPSORT : :: std :: os :: raw :: c_uint ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_db_lmdb_opts { pub path : * const :: std :: os :: raw :: c_char , pub dbname : * const :: std :: os :: raw :: c_char , pub mapsize : usize , pub maxdbs : :: std :: os :: raw :: c_uint , pub maxreaders : :: std :: os :: raw :: c_uint , pub flags : knot_db_lmdb_opts__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_db_lmdb_opts__bindgen_ty_1 { pub env : :: std :: os :: raw :: c_uint , pub db : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout_knot_db_lmdb_opts__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_db_lmdb_opts__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( knot_db_lmdb_opts__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_db_lmdb_opts__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( knot_db_lmdb_opts__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_lmdb_opts__bindgen_ty_1 > ( ) ) ) . env as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_lmdb_opts__bindgen_ty_1 ) , "::" , stringify ! ( env ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_lmdb_opts__bindgen_ty_1 > ( ) ) ) . db as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_lmdb_opts__bindgen_ty_1 ) , "::" , stringify ! ( db ) ) ) ; } # [ test ] fn bindgen_test_layout_knot_db_lmdb_opts ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_db_lmdb_opts > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( knot_db_lmdb_opts ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_db_lmdb_opts > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_db_lmdb_opts ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_lmdb_opts > ( ) ) ) . path as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_lmdb_opts ) , "::" , stringify ! ( path ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_lmdb_opts > ( ) ) ) . dbname as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_lmdb_opts ) , "::" , stringify ! ( dbname ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_lmdb_opts > ( ) ) ) . mapsize as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_lmdb_opts ) , "::" , stringify ! ( mapsize ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_lmdb_opts > ( ) ) ) . maxdbs as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_lmdb_opts ) , "::" , stringify ! ( maxdbs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_lmdb_opts > ( ) ) ) . maxreaders as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_lmdb_opts ) , "::" , stringify ! ( maxreaders ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_lmdb_opts > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_lmdb_opts ) , "::" , stringify ! ( flags ) ) ) ; } extern "C" { pub fn knot_db_lmdb_api ( ) -> * const knot_db_api_t ; } extern "C" { pub fn knot_db_lmdb_del_exact ( txn : * mut knot_db_txn_t , key : * mut knot_db_val_t , val : * mut knot_db_val_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_db_lmdb_txn_begin ( db : * mut knot_db_t , txn : * mut knot_db_txn_t , parent : * mut knot_db_txn_t , flags : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_db_lmdb_iter_del ( iter : * mut knot_db_iter_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_db_lmdb_get_mapsize ( db : * mut knot_db_t ) -> usize ; } extern "C" { pub fn knot_db_lmdb_get_usage ( db : * mut knot_db_t ) -> usize ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_db_trie_opts { pub unused : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout_knot_db_trie_opts ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_db_trie_opts > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( knot_db_trie_opts ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_db_trie_opts > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( knot_db_trie_opts ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_db_trie_opts > ( ) ) ) . unused as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_db_trie_opts ) , "::" , stringify ! ( unused ) ) ) ; } extern "C" { pub fn knot_db_trie_api ( ) -> * const knot_db_api_t ; } pub const knot_wire_offsets_KNOT_WIRE_OFFSET_ID : knot_wire_offsets = 0 ; pub const knot_wire_offsets_KNOT_WIRE_OFFSET_FLAGS1 : knot_wire_offsets = 2 ; pub const knot_wire_offsets_KNOT_WIRE_OFFSET_FLAGS2 : knot_wire_offsets = 3 ; pub const knot_wire_offsets_KNOT_WIRE_OFFSET_QDCOUNT : knot_wire_offsets = 4 ; pub const knot_wire_offsets_KNOT_WIRE_OFFSET_ANCOUNT : knot_wire_offsets = 6 ; pub const knot_wire_offsets_KNOT_WIRE_OFFSET_NSCOUNT : knot_wire_offsets = 8 ; pub const knot_wire_offsets_KNOT_WIRE_OFFSET_ARCOUNT : knot_wire_offsets = 10 ; pub type knot_wire_offsets = u32 ; pub const knot_wire_sizes_KNOT_WIRE_HEADER_SIZE : knot_wire_sizes = 12 ; pub const knot_wire_sizes_KNOT_WIRE_QUESTION_MIN_SIZE : knot_wire_sizes = 5 ; pub const knot_wire_sizes_KNOT_WIRE_RR_MIN_SIZE : knot_wire_sizes = 11 ; pub const knot_wire_sizes_KNOT_WIRE_MIN_PKTSIZE : knot_wire_sizes = 512 ; pub const knot_wire_sizes_KNOT_WIRE_MAX_PKTSIZE : knot_wire_sizes = 65535 ; pub const knot_wire_sizes_KNOT_WIRE_MAX_PAYLOAD : knot_wire_sizes = 65518 ; pub type knot_wire_sizes = u32 ; extern "C" { pub fn knot_wire_get_id ( packet : * const u8 ) -> u16 ; } extern "C" { pub fn knot_wire_set_id ( packet : * mut u8 , id : u16 ) ; } extern "C" { pub fn knot_wire_get_qdcount ( packet : * const u8 ) -> u16 ; } extern "C" { pub fn knot_wire_set_qdcount ( packet : * mut u8 , qdcount : u16 ) ; } extern "C" { pub fn knot_wire_add_qdcount ( packet : * mut u8 , n : i16 ) ; } extern "C" { pub fn knot_wire_get_ancount ( packet : * const u8 ) -> u16 ; } extern "C" { pub fn knot_wire_set_ancount ( packet : * mut u8 , ancount : u16 ) ; } extern "C" { pub fn knot_wire_add_ancount ( packet : * mut u8 , n : i16 ) ; } extern "C" { pub fn knot_wire_get_nscount ( packet : * const u8 ) -> u16 ; } extern "C" { pub fn knot_wire_set_nscount ( packet : * mut u8 , nscount : u16 ) ; } extern "C" { pub fn knot_wire_add_nscount ( packet : * mut u8 , n : i16 ) ; } extern "C" { pub fn knot_wire_get_arcount ( packet : * const u8 ) -> u16 ; } extern "C" { pub fn knot_wire_set_arcount ( packet : * mut u8 , arcount : u16 ) ; } extern "C" { pub fn knot_wire_add_arcount ( packet : * mut u8 , n : i16 ) ; } pub const knot_wire_flags1_consts_KNOT_WIRE_RD_MASK : knot_wire_flags1_consts = 1 ; pub const knot_wire_flags1_consts_KNOT_WIRE_RD_SHIFT : knot_wire_flags1_consts = 0 ; pub const knot_wire_flags1_consts_KNOT_WIRE_TC_MASK : knot_wire_flags1_consts = 2 ; pub const knot_wire_flags1_consts_KNOT_WIRE_TC_SHIFT : knot_wire_flags1_consts = 1 ; pub const knot_wire_flags1_consts_KNOT_WIRE_AA_MASK : knot_wire_flags1_consts = 4 ; pub const knot_wire_flags1_consts_KNOT_WIRE_AA_SHIFT : knot_wire_flags1_consts = 2 ; pub const knot_wire_flags1_consts_KNOT_WIRE_OPCODE_MASK : knot_wire_flags1_consts = 120 ; pub const knot_wire_flags1_consts_KNOT_WIRE_OPCODE_SHIFT : knot_wire_flags1_consts = 3 ; pub const knot_wire_flags1_consts_KNOT_WIRE_QR_MASK : knot_wire_flags1_consts = 128 ; pub const knot_wire_flags1_consts_KNOT_WIRE_QR_SHIFT : knot_wire_flags1_consts = 7 ; pub type knot_wire_flags1_consts = u32 ; pub const knot_wire_flags2_consts_KNOT_WIRE_RCODE_MASK : knot_wire_flags2_consts = 15 ; pub const knot_wire_flags2_consts_KNOT_WIRE_RCODE_SHIFT : knot_wire_flags2_consts = 0 ; pub const knot_wire_flags2_consts_KNOT_WIRE_CD_MASK : knot_wire_flags2_consts = 16 ; pub const knot_wire_flags2_consts_KNOT_WIRE_CD_SHIFT : knot_wire_flags2_consts = 4 ; pub const knot_wire_flags2_consts_KNOT_WIRE_AD_MASK : knot_wire_flags2_consts = 32 ; pub const knot_wire_flags2_consts_KNOT_WIRE_AD_SHIFT : knot_wire_flags2_consts = 5 ; pub const knot_wire_flags2_consts_KNOT_WIRE_Z_MASK : knot_wire_flags2_consts = 64 ; pub const knot_wire_flags2_consts_KNOT_WIRE_Z_SHIFT : knot_wire_flags2_consts = 6 ; pub const knot_wire_flags2_consts_KNOT_WIRE_RA_MASK : knot_wire_flags2_consts = 128 ; pub const knot_wire_flags2_consts_KNOT_WIRE_RA_SHIFT : knot_wire_flags2_consts = 7 ; pub type knot_wire_flags2_consts = u32 ; pub const knot_wire_pointer_consts_KNOT_WIRE_PTR : knot_wire_pointer_consts = 192 ; pub const knot_wire_pointer_consts_KNOT_WIRE_PTR_BASE : knot_wire_pointer_consts = 49152 ; pub const knot_wire_pointer_consts_KNOT_WIRE_PTR_MAX : knot_wire_pointer_consts = 16383 ; pub type knot_wire_pointer_consts = u32 ; extern "C" { pub fn knot_wire_put_pointer ( pos : * mut u8 , ptr : u16 ) ; } extern "C" { pub fn knot_wire_get_pointer ( pos : * const u8 ) -> u16 ; } pub const knot_compr_hint_KNOT_COMPR_HINT_NONE : knot_compr_hint = 0 ; pub const knot_compr_hint_KNOT_COMPR_HINT_NOCOMP : knot_compr_hint = 1 ; pub const knot_compr_hint_KNOT_COMPR_HINT_QNAME : knot_compr_hint = 12 ; pub type knot_compr_hint = u32 ; pub const knot_compr_offset_KNOT_COMPR_HINT_OWNER : knot_compr_offset = 0 ; pub const knot_compr_offset_KNOT_COMPR_HINT_RDATA : knot_compr_offset = 1 ; pub const knot_compr_offset_KNOT_COMPR_HINT_COUNT : knot_compr_offset = 16 ; pub type knot_compr_offset = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_rrinfo_t { pub pos : u16 , pub flags : u16 , pub compress_ptr : [ u16 ; 16usize ] , } # [ test ] fn bindgen_test_layout_knot_rrinfo_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_rrinfo_t > ( ) , 36usize , concat ! ( "Size of: " , stringify ! ( knot_rrinfo_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_rrinfo_t > ( ) , 2usize , concat ! ( "Alignment of " , stringify ! ( knot_rrinfo_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_rrinfo_t > ( ) ) ) . pos as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_rrinfo_t ) , "::" , stringify ! ( pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_rrinfo_t > ( ) ) ) . flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( knot_rrinfo_t ) , "::" , stringify ! ( flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_rrinfo_t > ( ) ) ) . compress_ptr as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( knot_rrinfo_t ) , "::" , stringify ! ( compress_ptr ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_compr { pub wire : * mut u8 , pub rrinfo : * mut knot_rrinfo_t , pub suffix : knot_compr__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_compr__bindgen_ty_1 { pub pos : u16 , pub labels : u8 , } # [ test ] fn bindgen_test_layout_knot_compr__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_compr__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( knot_compr__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_compr__bindgen_ty_1 > ( ) , 2usize , concat ! ( "Alignment of " , stringify ! ( knot_compr__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_compr__bindgen_ty_1 > ( ) ) ) . pos as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_compr__bindgen_ty_1 ) , "::" , stringify ! ( pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_compr__bindgen_ty_1 > ( ) ) ) . labels as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( knot_compr__bindgen_ty_1 ) , "::" , stringify ! ( labels ) ) ) ; } # [ test ] fn bindgen_test_layout_knot_compr ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_compr > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( knot_compr ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_compr > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_compr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_compr > ( ) ) ) . wire as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_compr ) , "::" , stringify ! ( wire ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_compr > ( ) ) ) . rrinfo as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_compr ) , "::" , stringify ! ( rrinfo ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_compr > ( ) ) ) . suffix as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( knot_compr ) , "::" , stringify ! ( suffix ) ) ) ; } pub type knot_compr_t = knot_compr ; extern "C" { pub fn knot_compr_put_dname ( dname : * const knot_dname_t , dst : * mut u8 , max : u16 , compr : * mut knot_compr_t ) -> :: std :: os :: raw :: c_int ; } pub type knot_pkt_t = knot_pkt ; pub const knot_edns_const_KNOT_EDNS_VERSION : knot_edns_const = 0 ; pub const knot_edns_const_KNOT_EDNS_MIN_UDP_PAYLOAD : knot_edns_const = 512 ; pub const knot_edns_const_KNOT_EDNS_MIN_DNSSEC_PAYLOAD : knot_edns_const = 1220 ; pub const knot_edns_const_KNOT_EDNS_MAX_UDP_PAYLOAD : knot_edns_const = 4096 ; pub const knot_edns_const_KNOT_EDNS_MIN_SIZE : knot_edns_const = 11 ; pub const knot_edns_const_KNOT_EDNS_EXT_RCODE_POS : knot_edns_const = 5 ; pub const knot_edns_const_KNOT_EDNS_OPTION_HDRLEN : knot_edns_const = 4 ; pub const knot_edns_const_KNOT_EDNS_MAX_OPTION_CLIENT_SUBNET : knot_edns_const = 20 ; pub const knot_edns_const_KNOT_EDNS_CLIENT_SUBNET_ADDRESS_MAXLEN : knot_edns_const = 16 ; pub const knot_edns_const_KNOT_EDNS_OPTION_NSID : knot_edns_const = 3 ; pub const knot_edns_const_KNOT_EDNS_OPTION_CLIENT_SUBNET : knot_edns_const = 8 ; pub const knot_edns_const_KNOT_EDNS_OPTION_COOKIE : knot_edns_const = 10 ; pub const knot_edns_const_KNOT_EDNS_OPTION_TCP_KEEPALIVE : knot_edns_const = 11 ; pub const knot_edns_const_KNOT_EDNS_OPTION_PADDING : knot_edns_const = 12 ; pub const knot_edns_const_KNOT_EDNS_OPTION_CHAIN : knot_edns_const = 13 ; pub const knot_edns_const_KNOT_EDNS_MAX_OPTION_CODE : knot_edns_const = 14 ; pub type knot_edns_const = u32 ; extern "C" { pub fn knot_edns_init ( opt_rr : * mut knot_rrset_t , max_pld : u16 , ext_rcode : u8 , ver : u8 , mm : * mut knot_mm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_edns_wire_size ( opt_rr : * mut knot_rrset_t ) -> usize ; } extern "C" { pub fn knot_edns_get_payload ( opt_rr : * const knot_rrset_t ) -> u16 ; } extern "C" { pub fn knot_edns_set_payload ( opt_rr : * mut knot_rrset_t , payload : u16 ) ; } extern "C" { pub fn knot_edns_get_ext_rcode ( opt_rr : * const knot_rrset_t ) -> u8 ; } extern "C" { pub fn knot_edns_set_ext_rcode ( opt_rr : * mut knot_rrset_t , ext_rcode : u8 ) ; } extern "C" { pub fn knot_edns_get_version ( opt_rr : * const knot_rrset_t ) -> u8 ; } extern "C" { pub fn knot_edns_set_version ( opt_rr : * mut knot_rrset_t , version : u8 ) ; } extern "C" { pub fn knot_edns_do ( opt_rr : * const knot_rrset_t ) -> bool ; } extern "C" { pub fn knot_edns_set_do ( opt_rr : * mut knot_rrset_t ) ; } extern "C" { pub fn knot_edns_remove_options ( opt_rr : * mut knot_rrset_t , code : u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_edns_reserve_unique_option ( opt_rr : * mut knot_rrset_t , code : u16 , size : u16 , wire_ptr : * mut * mut u8 , mm : * mut knot_mm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_edns_reserve_option ( opt_rr : * mut knot_rrset_t , code : u16 , size : u16 , wire_ptr : * mut * mut u8 , mm : * mut knot_mm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_edns_add_option ( opt_rr : * mut knot_rrset_t , code : u16 , size : u16 , data : * const u8 , mm : * mut knot_mm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_edns_has_option ( opt_rr : * const knot_rrset_t , code : u16 ) -> bool ; } extern "C" { pub fn knot_edns_get_option ( opt_rr : * const knot_rrset_t , code : u16 ) -> * mut u8 ; } extern "C" { pub fn knot_edns_opt_get_code ( opt : * const u8 ) -> u16 ; } extern "C" { pub fn knot_edns_opt_get_length ( opt : * const u8 ) -> u16 ; } extern "C" { pub fn knot_edns_check_record ( opt_rr : * mut knot_rrset_t ) -> bool ; } extern "C" { pub fn knot_edns_default_padding_size ( pkt : * const knot_pkt_t , opt_rr : * const knot_rrset_t ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_edns_client_subnet { pub family : u16 , pub source_len : u8 , pub scope_len : u8 , pub address : [ u8 ; 16usize ] , } # [ test ] fn bindgen_test_layout_knot_edns_client_subnet ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_edns_client_subnet > ( ) , 20usize , concat ! ( "Size of: " , stringify ! ( knot_edns_client_subnet ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_edns_client_subnet > ( ) , 2usize , concat ! ( "Alignment of " , stringify ! ( knot_edns_client_subnet ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_edns_client_subnet > ( ) ) ) . family as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_edns_client_subnet ) , "::" , stringify ! ( family ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_edns_client_subnet > ( ) ) ) . source_len as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( knot_edns_client_subnet ) , "::" , stringify ! ( source_len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_edns_client_subnet > ( ) ) ) . scope_len as * const _ as usize } , 3usize , concat ! ( "Offset of field: " , stringify ! ( knot_edns_client_subnet ) , "::" , stringify ! ( scope_len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_edns_client_subnet > ( ) ) ) . address as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( knot_edns_client_subnet ) , "::" , stringify ! ( address ) ) ) ; } pub type knot_edns_client_subnet_t = knot_edns_client_subnet ; extern "C" { pub fn knot_edns_client_subnet_size ( ecs : * const knot_edns_client_subnet_t ) -> usize ; } extern "C" { pub fn knot_edns_client_subnet_write ( option : * mut u8 , option_len : usize , ecs : * const knot_edns_client_subnet_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_edns_client_subnet_parse ( ecs : * mut knot_edns_client_subnet_t , option : * const u8 , option_len : u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_edns_client_subnet_set_addr ( ecs : * mut knot_edns_client_subnet_t , addr : * const sockaddr_storage ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_edns_client_subnet_get_addr ( addr : * mut sockaddr_storage , ecs : * const knot_edns_client_subnet_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_edns_keepalive_size ( timeout : u16 ) -> usize ; } extern "C" { pub fn knot_edns_keepalive_write ( option : * mut u8 , option_len : usize , timeout : u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_edns_keepalive_parse ( timeout : * mut u16 , option : * const u8 , option_len : u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_edns_chain_size ( point : * const knot_dname_t ) -> usize ; } extern "C" { pub fn knot_edns_chain_write ( option : * mut u8 , option_len : usize , point : * const knot_dname_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_edns_chain_parse ( point : * mut * mut knot_dname_t , option : * const u8 , option_len : u16 ) -> :: std :: os :: raw :: c_int ; } pub const KNOT_PF_NULL : _bindgen_ty_2 = 0 ; pub const KNOT_PF_FREE : _bindgen_ty_2 = 2 ; pub const KNOT_PF_NOTRUNC : _bindgen_ty_2 = 4 ; pub const KNOT_PF_CHECKDUP : _bindgen_ty_2 = 8 ; pub const KNOT_PF_KEEPWIRE : _bindgen_ty_2 = 16 ; pub const KNOT_PF_NOCANON : _bindgen_ty_2 = 32 ; pub type _bindgen_ty_2 = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_pktsection_t { pub pkt : * mut knot_pkt , pub pos : u16 , pub count : u16 , } # [ test ] fn bindgen_test_layout_knot_pktsection_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_pktsection_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( knot_pktsection_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_pktsection_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_pktsection_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pktsection_t > ( ) ) ) . pkt as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_pktsection_t ) , "::" , stringify ! ( pkt ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pktsection_t > ( ) ) ) . pos as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_pktsection_t ) , "::" , stringify ! ( pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pktsection_t > ( ) ) ) . count as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( knot_pktsection_t ) , "::" , stringify ! ( count ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_pkt { pub wire : * mut u8 , pub size : usize , pub max_size : usize , pub parsed : usize , pub reserved : u16 , pub qname_size : u16 , pub rrset_count : u16 , pub flags : u16 , pub opt_rr : * mut knot_rrset_t , pub tsig_rr : * mut knot_rrset_t , pub tsig_wire : knot_pkt__bindgen_ty_1 , pub current : knot_section_t , pub sections : [ knot_pktsection_t ; 3usize ] , pub rrset_allocd : usize , pub rr_info : * mut knot_rrinfo_t , pub rr : * mut knot_rrset_t , pub mm : knot_mm_t , pub compr : knot_compr_t , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct knot_pkt__bindgen_ty_1 { pub pos : * mut u8 , pub len : usize , } # [ test ] fn bindgen_test_layout_knot_pkt__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_pkt__bindgen_ty_1 > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( knot_pkt__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_pkt__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_pkt__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt__bindgen_ty_1 > ( ) ) ) . pos as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt__bindgen_ty_1 ) , "::" , stringify ! ( pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt__bindgen_ty_1 > ( ) ) ) . len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt__bindgen_ty_1 ) , "::" , stringify ! ( len ) ) ) ; } # [ test ] fn bindgen_test_layout_knot_pkt ( ) { assert_eq ! ( :: std :: mem :: size_of :: < knot_pkt > ( ) , 200usize , concat ! ( "Size of: " , stringify ! ( knot_pkt ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < knot_pkt > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( knot_pkt ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . wire as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( wire ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . max_size as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( max_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . parsed as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( parsed ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . reserved as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( reserved ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . qname_size as * const _ as usize } , 34usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( qname_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . rrset_count as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( rrset_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . flags as * const _ as usize } , 38usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . opt_rr as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( opt_rr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . tsig_rr as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( tsig_rr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . tsig_wire as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( tsig_wire ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . current as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( current ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . sections as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( sections ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . rrset_allocd as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( rrset_allocd ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . rr_info as * const _ as usize } , 136usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( rr_info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . rr as * const _ as usize } , 144usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( rr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . mm as * const _ as usize } , 152usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( mm ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < knot_pkt > ( ) ) ) . compr as * const _ as usize } , 176usize , concat ! ( "Offset of field: " , stringify ! ( knot_pkt ) , "::" , stringify ! ( compr ) ) ) ; } extern "C" { pub fn knot_pkt_new ( wire : * mut :: std :: os :: raw :: c_void , len : u16 , mm : * mut knot_mm_t ) -> * mut knot_pkt_t ; } extern "C" { pub fn knot_pkt_copy ( dst : * mut knot_pkt_t , src : * const knot_pkt_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_pkt_init_response ( pkt : * mut knot_pkt_t , query : * const knot_pkt_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_pkt_clear_payload ( pkt : * mut knot_pkt_t ) ; } extern "C" { pub fn knot_pkt_clear ( pkt : * mut knot_pkt_t ) ; } extern "C" { pub fn knot_pkt_free ( pkt : * mut * mut knot_pkt_t ) ; } extern "C" { pub fn knot_pkt_reserve ( pkt : * mut knot_pkt_t , size : u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_pkt_reclaim ( pkt : * mut knot_pkt_t , size : u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_pkt_question_size ( pkt : * const knot_pkt_t ) -> u16 ; } extern "C" { pub fn knot_pkt_qname ( pkt : * const knot_pkt_t ) -> * const knot_dname_t ; } extern "C" { pub fn knot_pkt_qtype ( pkt : * const knot_pkt_t ) -> u16 ; } extern "C" { pub fn knot_pkt_qclass ( pkt : * const knot_pkt_t ) -> u16 ; } extern "C" { pub fn knot_pkt_begin ( pkt : * mut knot_pkt_t , section_id : knot_section_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_pkt_put_question ( pkt : * mut knot_pkt_t , qname : * const knot_dname_t , qclass : u16 , qtype : u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_pkt_put ( pkt : * mut knot_pkt_t , compr_hint : u16 , rr : * const knot_rrset_t , flags : u16 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_pkt_section ( pkt : * const knot_pkt_t , section_id : knot_section_t ) -> * const knot_pktsection_t ; } extern "C" { pub fn knot_pkt_rr ( section : * const knot_pktsection_t , i : u16 ) -> * const knot_rrset_t ; } extern "C" { pub fn knot_pkt_rr_offset ( section : * const knot_pktsection_t , i : u16 ) -> u16 ; } extern "C" { pub fn knot_pkt_parse ( pkt : * mut knot_pkt_t , flags : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_pkt_parse_question ( pkt : * mut knot_pkt_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_pkt_parse_rr ( pkt : * mut knot_pkt_t , flags : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_pkt_parse_section ( pkt : * mut knot_pkt_t , flags : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_pkt_parse_payload ( pkt : * mut knot_pkt_t , flags : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_pkt_ext_rcode ( pkt : * const knot_pkt_t ) -> u16 ; } extern "C" { pub fn knot_pkt_ext_rcode_name ( pkt : * const knot_pkt_t ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn knot_rrset_to_wire ( rrset : * const knot_rrset_t , wire : * mut u8 , max_size : u16 , compr : * mut knot_compr ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_rrset_rr_from_wire ( pkt_wire : * const u8 , pos : * mut usize , pkt_size : usize , mm : * mut knot_mm_t , rrset : * mut knot_rrset_t , canonical : bool ) -> :: std :: os :: raw :: c_int ; } pub type sa_family_t = :: std :: os :: raw :: c_ushort ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct sockaddr_storage { pub ss_family : sa_family_t , pub __ss_padding : [ :: std :: os :: raw :: c_char ; 118usize ] , pub __ss_align : :: std :: os :: raw :: c_ulong , } # [ test ] fn bindgen_test_layout_sockaddr_storage ( ) { assert_eq ! ( :: std :: mem :: size_of :: < sockaddr_storage > ( ) , 128usize , concat ! ( "Size of: " , stringify ! ( sockaddr_storage ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < sockaddr_storage > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( sockaddr_storage ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockaddr_storage > ( ) ) ) . ss_family as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( sockaddr_storage ) , "::" , stringify ! ( ss_family ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockaddr_storage > ( ) ) ) . __ss_padding as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( sockaddr_storage ) , "::" , stringify ! ( __ss_padding ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockaddr_storage > ( ) ) ) . __ss_align as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( sockaddr_storage ) , "::" , stringify ! ( __ss_align ) ) ) ; } pub type in_addr_t = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct in_addr { pub s_addr : in_addr_t , } # [ test ] fn bindgen_test_layout_in_addr ( ) { assert_eq ! ( :: std :: mem :: size_of :: < in_addr > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( in_addr ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < in_addr > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( in_addr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < in_addr > ( ) ) ) . s_addr as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( in_addr ) , "::" , stringify ! ( s_addr ) ) ) ; } pub type in_port_t = u16 ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct in6_addr { pub __in6_u : in6_addr__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union in6_addr__bindgen_ty_1 { pub __u6_addr8 : [ u8 ; 16usize ] , pub __u6_addr16 : [ u16 ; 8usize ] , pub __u6_addr32 : [ u32 ; 4usize ] , _bindgen_union_align : [ u32 ; 4usize ] , } # [ test ] fn bindgen_test_layout_in6_addr__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < in6_addr__bindgen_ty_1 > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( in6_addr__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < in6_addr__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( in6_addr__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < in6_addr__bindgen_ty_1 > ( ) ) ) . __u6_addr8 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( in6_addr__bindgen_ty_1 ) , "::" , stringify ! ( __u6_addr8 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < in6_addr__bindgen_ty_1 > ( ) ) ) . __u6_addr16 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( in6_addr__bindgen_ty_1 ) , "::" , stringify ! ( __u6_addr16 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < in6_addr__bindgen_ty_1 > ( ) ) ) . __u6_addr32 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( in6_addr__bindgen_ty_1 ) , "::" , stringify ! ( __u6_addr32 ) ) ) ; } # [ test ] fn bindgen_test_layout_in6_addr ( ) { assert_eq ! ( :: std :: mem :: size_of :: < in6_addr > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( in6_addr ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < in6_addr > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( in6_addr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < in6_addr > ( ) ) ) . __in6_u as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( in6_addr ) , "::" , stringify ! ( __in6_u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct sockaddr_in { pub sin_family : sa_family_t , pub sin_port : in_port_t , pub sin_addr : in_addr , pub sin_zero : [ :: std :: os :: raw :: c_uchar ; 8usize ] , } # [ test ] fn bindgen_test_layout_sockaddr_in ( ) { assert_eq ! ( :: std :: mem :: size_of :: < sockaddr_in > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( sockaddr_in ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < sockaddr_in > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( sockaddr_in ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockaddr_in > ( ) ) ) . sin_family as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( sockaddr_in ) , "::" , stringify ! ( sin_family ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockaddr_in > ( ) ) ) . sin_port as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( sockaddr_in ) , "::" , stringify ! ( sin_port ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockaddr_in > ( ) ) ) . sin_addr as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( sockaddr_in ) , "::" , stringify ! ( sin_addr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockaddr_in > ( ) ) ) . sin_zero as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( sockaddr_in ) , "::" , stringify ! ( sin_zero ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct sockaddr_in6 { pub sin6_family : sa_family_t , pub sin6_port : in_port_t , pub sin6_flowinfo : u32 , pub sin6_addr : in6_addr , pub sin6_scope_id : u32 , } # [ test ] fn bindgen_test_layout_sockaddr_in6 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < sockaddr_in6 > ( ) , 28usize , concat ! ( "Size of: " , stringify ! ( sockaddr_in6 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < sockaddr_in6 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( sockaddr_in6 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockaddr_in6 > ( ) ) ) . sin6_family as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( sockaddr_in6 ) , "::" , stringify ! ( sin6_family ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockaddr_in6 > ( ) ) ) . sin6_port as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( sockaddr_in6 ) , "::" , stringify ! ( sin6_port ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockaddr_in6 > ( ) ) ) . sin6_flowinfo as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( sockaddr_in6 ) , "::" , stringify ! ( sin6_flowinfo ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockaddr_in6 > ( ) ) ) . sin6_addr as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( sockaddr_in6 ) , "::" , stringify ! ( sin6_addr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < sockaddr_in6 > ( ) ) ) . sin6_scope_id as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( sockaddr_in6 ) , "::" , stringify ! ( sin6_scope_id ) ) ) ; } extern "C" { pub fn knot_a_addr ( rrs : * const knot_rdataset_t , pos : usize , dst : * mut sockaddr_in ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_aaaa_addr ( rrs : * const knot_rdataset_t , pos : usize , dst : * mut sockaddr_in6 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_dnskey_flags ( rrs : * const knot_rdataset_t , pos : usize ) -> u16 ; } extern "C" { pub fn knot_ds_key_tag ( rrs : * const knot_rdataset_t , pos : usize ) -> u16 ; } extern "C" { pub fn knot_ds_alg ( rrs : * const knot_rdataset_t , pos : usize ) -> u8 ; } extern "C" { pub fn knot_ds_digest_type ( rrs : * const knot_rdataset_t , pos : usize ) -> u8 ; } extern "C" { pub fn knot_ds_digest ( rrs : * const knot_rdataset_t , pos : usize , digest : * mut * mut u8 , digest_size : * mut u16 ) ; } extern "C" { pub fn knot_naptr_header_size ( naptr : * const u8 , maxp : * const u8 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn knot_nsec3param_algorithm ( rrs : * const knot_rdataset_t , pos : usize ) -> u8 ; } extern "C" { pub fn knot_nsec3param_flags ( rrs : * const knot_rdataset_t , pos : usize ) -> u8 ; } extern "C" { pub fn knot_nsec3param_iterations ( rrs : * const knot_rdataset_t , pos : usize ) -> u16 ; } extern "C" { pub fn knot_nsec3param_salt_length ( rrs : * const knot_rdataset_t , pos : usize ) -> u8 ; } extern "C" { pub fn knot_nsec3param_salt ( rrs : * const knot_rdataset_t , pos : usize ) -> * const u8 ; } extern "C" { pub fn knot_nsec3_iterations ( rrs : * const knot_rdataset_t , pos : usize ) -> u16 ; } extern "C" { pub fn knot_nsec3_bitmap ( rrs : * const knot_rdataset_t , pos : usize , bitmap : * mut * mut u8 , size : * mut u16 ) ; } extern "C" { pub fn knot_rrsig_type_covered ( rrs : * const knot_rdataset_t , pos : usize ) -> u16 ; } extern "C" { pub fn knot_rrsig_original_ttl ( rrs : * const knot_rdataset_t , pos : usize ) -> u32 ; } extern "C" { pub fn knot_rrsig_sig_expiration ( rrs : * const knot_rdataset_t , pos : usize ) -> u32 ; } extern "C" { pub fn knot_rrsig_sig_inception ( rrs : * const knot_rdataset_t , pos : usize ) -> u32 ; } extern "C" { pub fn knot_rrsig_key_tag ( rrs : * const knot_rdataset_t , pos : usize ) -> u16 ; } extern "C" { pub fn knot_soa_serial ( rrs : * const knot_rdataset_t ) -> u32 ; } extern "C" { pub fn knot_soa_serial_set ( rrs : * mut knot_rdataset_t , serial : u32 ) ; } extern "C" { pub fn knot_soa_refresh ( rrs : * const knot_rdataset_t ) -> u32 ; } extern "C" { pub fn knot_soa_retry ( rrs : * const knot_rdataset_t ) -> u32 ; } extern "C" { pub fn knot_soa_expire ( rrs : * const knot_rdataset_t ) -> u32 ; } extern "C" { pub fn knot_soa_minimum ( rrs : * const knot_rdataset_t ) -> u32 ; }