pub const _STDINT_H: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const __GLIBC_USE_ISOC2X: u32 = 0;
pub const __USE_ISOC11: u32 = 1;
pub const __USE_ISOC99: u32 = 1;
pub const __USE_ISOC95: u32 = 1;
pub const __USE_POSIX_IMPLICITLY: u32 = 1;
pub const _POSIX_SOURCE: u32 = 1;
pub const _POSIX_C_SOURCE: u32 = 200809;
pub const __USE_POSIX: u32 = 1;
pub const __USE_POSIX2: u32 = 1;
pub const __USE_POSIX199309: u32 = 1;
pub const __USE_POSIX199506: u32 = 1;
pub const __USE_XOPEN2K: u32 = 1;
pub const __USE_XOPEN2K8: u32 = 1;
pub const _ATFILE_SOURCE: u32 = 1;
pub const __WORDSIZE: u32 = 32;
pub const __WORDSIZE32_SIZE_ULONG: u32 = 0;
pub const __WORDSIZE32_PTRDIFF_LONG: u32 = 0;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 0;
pub const __TIMESIZE: u32 = 32;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_FORTIFY_LEVEL: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
pub const _STDC_PREDEF_H: u32 = 1;
pub const __STDC_IEC_559__: u32 = 1;
pub const __STDC_IEC_60559_BFP__: u32 = 201404;
pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404;
pub const __STDC_ISO_10646__: u32 = 201706;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 35;
pub const _SYS_CDEFS_H: u32 = 1;
pub const __glibc_c99_flexarr_available: u32 = 1;
pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0;
pub const __HAVE_GENERIC_SELECTION: u32 = 1;
pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
pub const _BITS_TYPES_H: u32 = 1;
pub const _BITS_TYPESIZES_H: u32 = 1;
pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 0;
pub const __STATFS_MATCHES_STATFS64: u32 = 0;
pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 0;
pub const __FD_SETSIZE: u32 = 1024;
pub const _BITS_TIME64_H: u32 = 1;
pub const _BITS_WCHAR_H: u32 = 1;
pub const _BITS_STDINT_INTN_H: u32 = 1;
pub const _BITS_STDINT_UINTN_H: u32 = 1;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i32 = -2147483648;
pub const INT_FAST32_MIN: i32 = -2147483648;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u32 = 2147483647;
pub const INT_FAST32_MAX: u32 = 2147483647;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: u32 = 4294967295;
pub const UINT_FAST32_MAX: u32 = 4294967295;
pub const INTPTR_MIN: i32 = -2147483648;
pub const INTPTR_MAX: u32 = 2147483647;
pub const UINTPTR_MAX: u32 = 4294967295;
pub const PTRDIFF_MIN: i32 = -2147483648;
pub const PTRDIFF_MAX: u32 = 2147483647;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const SIZE_MAX: u32 = 4294967295;
pub const WINT_MIN: u32 = 0;
pub const WINT_MAX: u32 = 4294967295;
pub const kDNSServiceMaxServiceName: u32 = 64;
pub const kDNSServiceMaxDomainName: u32 = 1005;
pub const kDNSServiceInterfaceIndexAny: u32 = 0;
pub type __u_char = ::libc::c_uchar;
pub type __u_short = ::libc::c_ushort;
pub type __u_int = ::libc::c_uint;
pub type __u_long = ::libc::c_ulong;
pub type __int8_t = ::libc::c_schar;
pub type __uint8_t = ::libc::c_uchar;
pub type __int16_t = ::libc::c_short;
pub type __uint16_t = ::libc::c_ushort;
pub type __int32_t = ::libc::c_int;
pub type __uint32_t = ::libc::c_uint;
pub type __int64_t = ::libc::c_longlong;
pub type __uint64_t = ::libc::c_ulonglong;
pub type __int_least8_t = __int8_t;
pub type __uint_least8_t = __uint8_t;
pub type __int_least16_t = __int16_t;
pub type __uint_least16_t = __uint16_t;
pub type __int_least32_t = __int32_t;
pub type __uint_least32_t = __uint32_t;
pub type __int_least64_t = __int64_t;
pub type __uint_least64_t = __uint64_t;
pub type __quad_t = ::libc::c_longlong;
pub type __u_quad_t = ::libc::c_ulonglong;
pub type __intmax_t = ::libc::c_longlong;
pub type __uintmax_t = ::libc::c_ulonglong;
pub type __dev_t = __uint64_t;
pub type __uid_t = ::libc::c_uint;
pub type __gid_t = ::libc::c_uint;
pub type __ino_t = ::libc::c_ulong;
pub type __ino64_t = __uint64_t;
pub type __mode_t = ::libc::c_uint;
pub type __nlink_t = ::libc::c_uint;
pub type __off_t = ::libc::c_long;
pub type __off64_t = __int64_t;
pub type __pid_t = ::libc::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __fsid_t {
pub __val: [::libc::c_int; 2usize],
}
#[test]
fn bindgen_test_layout___fsid_t() {
const UNINIT: ::std::mem::MaybeUninit<__fsid_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__fsid_t>(),
8usize,
concat!("Size of: ", stringify!(__fsid_t))
);
assert_eq!(
::std::mem::align_of::<__fsid_t>(),
4usize,
concat!("Alignment of ", stringify!(__fsid_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__fsid_t),
"::",
stringify!(__val)
)
);
}
pub type __clock_t = ::libc::c_long;
pub type __rlim_t = ::libc::c_ulong;
pub type __rlim64_t = __uint64_t;
pub type __id_t = ::libc::c_uint;
pub type __time_t = ::libc::c_long;
pub type __useconds_t = ::libc::c_uint;
pub type __suseconds_t = ::libc::c_long;
pub type __suseconds64_t = __int64_t;
pub type __daddr_t = ::libc::c_int;
pub type __key_t = ::libc::c_int;
pub type __clockid_t = ::libc::c_int;
pub type __timer_t = *mut ::libc::c_void;
pub type __blksize_t = ::libc::c_long;
pub type __blkcnt_t = ::libc::c_long;
pub type __blkcnt64_t = __int64_t;
pub type __fsblkcnt_t = ::libc::c_ulong;
pub type __fsblkcnt64_t = __uint64_t;
pub type __fsfilcnt_t = ::libc::c_ulong;
pub type __fsfilcnt64_t = __uint64_t;
pub type __fsword_t = ::libc::c_int;
pub type __ssize_t = ::libc::c_int;
pub type __syscall_slong_t = ::libc::c_long;
pub type __syscall_ulong_t = ::libc::c_ulong;
pub type __loff_t = __off64_t;
pub type __caddr_t = *mut ::libc::c_char;
pub type __intptr_t = ::libc::c_int;
pub type __socklen_t = ::libc::c_uint;
pub type __sig_atomic_t = ::libc::c_int;
pub type __time64_t = __int64_t;
pub type int_least8_t = __int_least8_t;
pub type int_least16_t = __int_least16_t;
pub type int_least32_t = __int_least32_t;
pub type int_least64_t = __int_least64_t;
pub type uint_least8_t = __uint_least8_t;
pub type uint_least16_t = __uint_least16_t;
pub type uint_least32_t = __uint_least32_t;
pub type uint_least64_t = __uint_least64_t;
pub type int_fast8_t = ::libc::c_schar;
pub type int_fast16_t = ::libc::c_int;
pub type int_fast32_t = ::libc::c_int;
pub type int_fast64_t = ::libc::c_longlong;
pub type uint_fast8_t = ::libc::c_uchar;
pub type uint_fast16_t = ::libc::c_uint;
pub type uint_fast32_t = ::libc::c_uint;
pub type uint_fast64_t = ::libc::c_ulonglong;
pub type intmax_t = __intmax_t;
pub type uintmax_t = __uintmax_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _DNSServiceRef_t {
_unused: [u8; 0],
}
pub type DNSServiceRef = *mut _DNSServiceRef_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _DNSRecordRef_t {
_unused: [u8; 0],
}
pub type DNSRecordRef = *mut _DNSRecordRef_t;
pub const kDNSServiceFlagsMoreComing: _bindgen_ty_1 = 1;
pub const kDNSServiceFlagsAdd: _bindgen_ty_1 = 2;
pub const kDNSServiceFlagsDefault: _bindgen_ty_1 = 4;
pub const kDNSServiceFlagsNoAutoRename: _bindgen_ty_1 = 8;
pub const kDNSServiceFlagsShared: _bindgen_ty_1 = 16;
pub const kDNSServiceFlagsUnique: _bindgen_ty_1 = 32;
pub const kDNSServiceFlagsBrowseDomains: _bindgen_ty_1 = 64;
pub const kDNSServiceFlagsRegistrationDomains: _bindgen_ty_1 = 128;
pub const kDNSServiceFlagsLongLivedQuery: _bindgen_ty_1 = 256;
pub const kDNSServiceFlagsAllowRemoteQuery: _bindgen_ty_1 = 512;
pub const kDNSServiceFlagsForceMulticast: _bindgen_ty_1 = 1024;
pub const kDNSServiceFlagsReturnCNAME: _bindgen_ty_1 = 2048;
pub type _bindgen_ty_1 = ::libc::c_uint;
pub const kDNSServiceClass_IN: _bindgen_ty_2 = 1;
pub type _bindgen_ty_2 = ::libc::c_uint;
pub const kDNSServiceType_A: _bindgen_ty_3 = 1;
pub const kDNSServiceType_NS: _bindgen_ty_3 = 2;
pub const kDNSServiceType_MD: _bindgen_ty_3 = 3;
pub const kDNSServiceType_MF: _bindgen_ty_3 = 4;
pub const kDNSServiceType_CNAME: _bindgen_ty_3 = 5;
pub const kDNSServiceType_SOA: _bindgen_ty_3 = 6;
pub const kDNSServiceType_MB: _bindgen_ty_3 = 7;
pub const kDNSServiceType_MG: _bindgen_ty_3 = 8;
pub const kDNSServiceType_MR: _bindgen_ty_3 = 9;
pub const kDNSServiceType_NULL: _bindgen_ty_3 = 10;
pub const kDNSServiceType_WKS: _bindgen_ty_3 = 11;
pub const kDNSServiceType_PTR: _bindgen_ty_3 = 12;
pub const kDNSServiceType_HINFO: _bindgen_ty_3 = 13;
pub const kDNSServiceType_MINFO: _bindgen_ty_3 = 14;
pub const kDNSServiceType_MX: _bindgen_ty_3 = 15;
pub const kDNSServiceType_TXT: _bindgen_ty_3 = 16;
pub const kDNSServiceType_RP: _bindgen_ty_3 = 17;
pub const kDNSServiceType_AFSDB: _bindgen_ty_3 = 18;
pub const kDNSServiceType_X25: _bindgen_ty_3 = 19;
pub const kDNSServiceType_ISDN: _bindgen_ty_3 = 20;
pub const kDNSServiceType_RT: _bindgen_ty_3 = 21;
pub const kDNSServiceType_NSAP: _bindgen_ty_3 = 22;
pub const kDNSServiceType_NSAP_PTR: _bindgen_ty_3 = 23;
pub const kDNSServiceType_SIG: _bindgen_ty_3 = 24;
pub const kDNSServiceType_KEY: _bindgen_ty_3 = 25;
pub const kDNSServiceType_PX: _bindgen_ty_3 = 26;
pub const kDNSServiceType_GPOS: _bindgen_ty_3 = 27;
pub const kDNSServiceType_AAAA: _bindgen_ty_3 = 28;
pub const kDNSServiceType_LOC: _bindgen_ty_3 = 29;
pub const kDNSServiceType_NXT: _bindgen_ty_3 = 30;
pub const kDNSServiceType_EID: _bindgen_ty_3 = 31;
pub const kDNSServiceType_NIMLOC: _bindgen_ty_3 = 32;
pub const kDNSServiceType_SRV: _bindgen_ty_3 = 33;
pub const kDNSServiceType_ATMA: _bindgen_ty_3 = 34;
pub const kDNSServiceType_NAPTR: _bindgen_ty_3 = 35;
pub const kDNSServiceType_KX: _bindgen_ty_3 = 36;
pub const kDNSServiceType_CERT: _bindgen_ty_3 = 37;
pub const kDNSServiceType_A6: _bindgen_ty_3 = 38;
pub const kDNSServiceType_DNAME: _bindgen_ty_3 = 39;
pub const kDNSServiceType_SINK: _bindgen_ty_3 = 40;
pub const kDNSServiceType_OPT: _bindgen_ty_3 = 41;
pub const kDNSServiceType_TKEY: _bindgen_ty_3 = 249;
pub const kDNSServiceType_TSIG: _bindgen_ty_3 = 250;
pub const kDNSServiceType_IXFR: _bindgen_ty_3 = 251;
pub const kDNSServiceType_AXFR: _bindgen_ty_3 = 252;
pub const kDNSServiceType_MAILB: _bindgen_ty_3 = 253;
pub const kDNSServiceType_MAILA: _bindgen_ty_3 = 254;
pub const kDNSServiceType_ANY: _bindgen_ty_3 = 255;
pub type _bindgen_ty_3 = ::libc::c_uint;
pub const kDNSServiceErr_NoError: _bindgen_ty_4 = 0;
pub const kDNSServiceErr_Unknown: _bindgen_ty_4 = -65537;
pub const kDNSServiceErr_NoSuchName: _bindgen_ty_4 = -65538;
pub const kDNSServiceErr_NoMemory: _bindgen_ty_4 = -65539;
pub const kDNSServiceErr_BadParam: _bindgen_ty_4 = -65540;
pub const kDNSServiceErr_BadReference: _bindgen_ty_4 = -65541;
pub const kDNSServiceErr_BadState: _bindgen_ty_4 = -65542;
pub const kDNSServiceErr_BadFlags: _bindgen_ty_4 = -65543;
pub const kDNSServiceErr_Unsupported: _bindgen_ty_4 = -65544;
pub const kDNSServiceErr_NotInitialized: _bindgen_ty_4 = -65545;
pub const kDNSServiceErr_AlreadyRegistered: _bindgen_ty_4 = -65547;
pub const kDNSServiceErr_NameConflict: _bindgen_ty_4 = -65548;
pub const kDNSServiceErr_Invalid: _bindgen_ty_4 = -65549;
pub const kDNSServiceErr_Firewall: _bindgen_ty_4 = -65550;
pub const kDNSServiceErr_Incompatible: _bindgen_ty_4 = -65551;
pub const kDNSServiceErr_BadInterfaceIndex: _bindgen_ty_4 = -65552;
pub const kDNSServiceErr_Refused: _bindgen_ty_4 = -65553;
pub const kDNSServiceErr_NoSuchRecord: _bindgen_ty_4 = -65554;
pub const kDNSServiceErr_NoAuth: _bindgen_ty_4 = -65555;
pub const kDNSServiceErr_NoSuchKey: _bindgen_ty_4 = -65556;
pub const kDNSServiceErr_NATTraversal: _bindgen_ty_4 = -65557;
pub const kDNSServiceErr_DoubleNAT: _bindgen_ty_4 = -65558;
pub const kDNSServiceErr_BadTime: _bindgen_ty_4 = -65559;
pub type _bindgen_ty_4 = ::libc::c_int;
pub type DNSServiceFlags = u32;
pub type DNSServiceErrorType = i32;
extern "C" {
pub fn DNSServiceRefSockFD(sdRef: DNSServiceRef) -> ::libc::c_int;
}
extern "C" {
pub fn DNSServiceProcessResult(sdRef: DNSServiceRef) -> DNSServiceErrorType;
}
extern "C" {
pub fn DNSServiceRefDeallocate(sdRef: DNSServiceRef);
}
pub type DNSServiceDomainEnumReply = ::std::option::Option<
unsafe extern "C" fn(
sdRef: DNSServiceRef,
flags: DNSServiceFlags,
interfaceIndex: u32,
errorCode: DNSServiceErrorType,
replyDomain: *const ::libc::c_char,
context: *mut ::libc::c_void,
),
>;
extern "C" {
pub fn DNSServiceEnumerateDomains(
sdRef: *mut DNSServiceRef,
flags: DNSServiceFlags,
interfaceIndex: u32,
callBack: DNSServiceDomainEnumReply,
context: *mut ::libc::c_void,
) -> DNSServiceErrorType;
}
pub type DNSServiceRegisterReply = ::std::option::Option<
unsafe extern "C" fn(
sdRef: DNSServiceRef,
flags: DNSServiceFlags,
errorCode: DNSServiceErrorType,
name: *const ::libc::c_char,
regtype: *const ::libc::c_char,
domain: *const ::libc::c_char,
context: *mut ::libc::c_void,
),
>;
extern "C" {
pub fn DNSServiceRegister(
sdRef: *mut DNSServiceRef,
flags: DNSServiceFlags,
interfaceIndex: u32,
name: *const ::libc::c_char,
regtype: *const ::libc::c_char,
domain: *const ::libc::c_char,
host: *const ::libc::c_char,
port: u16,
txtLen: u16,
txtRecord: *const ::libc::c_void,
callBack: DNSServiceRegisterReply,
context: *mut ::libc::c_void,
) -> DNSServiceErrorType;
}
extern "C" {
pub fn DNSServiceAddRecord(
sdRef: DNSServiceRef,
RecordRef: *mut DNSRecordRef,
flags: DNSServiceFlags,
rrtype: u16,
rdlen: u16,
rdata: *const ::libc::c_void,
ttl: u32,
) -> DNSServiceErrorType;
}
extern "C" {
pub fn DNSServiceUpdateRecord(
sdRef: DNSServiceRef,
RecordRef: DNSRecordRef,
flags: DNSServiceFlags,
rdlen: u16,
rdata: *const ::libc::c_void,
ttl: u32,
) -> DNSServiceErrorType;
}
extern "C" {
pub fn DNSServiceRemoveRecord(
sdRef: DNSServiceRef,
RecordRef: DNSRecordRef,
flags: DNSServiceFlags,
) -> DNSServiceErrorType;
}
pub type DNSServiceBrowseReply = ::std::option::Option<
unsafe extern "C" fn(
sdRef: DNSServiceRef,
flags: DNSServiceFlags,
interfaceIndex: u32,
errorCode: DNSServiceErrorType,
serviceName: *const ::libc::c_char,
regtype: *const ::libc::c_char,
replyDomain: *const ::libc::c_char,
context: *mut ::libc::c_void,
),
>;
extern "C" {
pub fn DNSServiceBrowse(
sdRef: *mut DNSServiceRef,
flags: DNSServiceFlags,
interfaceIndex: u32,
regtype: *const ::libc::c_char,
domain: *const ::libc::c_char,
callBack: DNSServiceBrowseReply,
context: *mut ::libc::c_void,
) -> DNSServiceErrorType;
}
pub type DNSServiceResolveReply = ::std::option::Option<
unsafe extern "C" fn(
sdRef: DNSServiceRef,
flags: DNSServiceFlags,
interfaceIndex: u32,
errorCode: DNSServiceErrorType,
fullname: *const ::libc::c_char,
hosttarget: *const ::libc::c_char,
port: u16,
txtLen: u16,
txtRecord: *const ::libc::c_uchar,
context: *mut ::libc::c_void,
),
>;
extern "C" {
pub fn DNSServiceResolve(
sdRef: *mut DNSServiceRef,
flags: DNSServiceFlags,
interfaceIndex: u32,
name: *const ::libc::c_char,
regtype: *const ::libc::c_char,
domain: *const ::libc::c_char,
callBack: DNSServiceResolveReply,
context: *mut ::libc::c_void,
) -> DNSServiceErrorType;
}
extern "C" {
pub fn DNSServiceCreateConnection(sdRef: *mut DNSServiceRef) -> DNSServiceErrorType;
}
pub type DNSServiceRegisterRecordReply = ::std::option::Option<
unsafe extern "C" fn(
sdRef: DNSServiceRef,
RecordRef: DNSRecordRef,
flags: DNSServiceFlags,
errorCode: DNSServiceErrorType,
context: *mut ::libc::c_void,
),
>;
extern "C" {
pub fn DNSServiceRegisterRecord(
sdRef: DNSServiceRef,
RecordRef: *mut DNSRecordRef,
flags: DNSServiceFlags,
interfaceIndex: u32,
fullname: *const ::libc::c_char,
rrtype: u16,
rrclass: u16,
rdlen: u16,
rdata: *const ::libc::c_void,
ttl: u32,
callBack: DNSServiceRegisterRecordReply,
context: *mut ::libc::c_void,
) -> DNSServiceErrorType;
}
pub type DNSServiceQueryRecordReply = ::std::option::Option<
unsafe extern "C" fn(
DNSServiceRef: DNSServiceRef,
flags: DNSServiceFlags,
interfaceIndex: u32,
errorCode: DNSServiceErrorType,
fullname: *const ::libc::c_char,
rrtype: u16,
rrclass: u16,
rdlen: u16,
rdata: *const ::libc::c_void,
ttl: u32,
context: *mut ::libc::c_void,
),
>;
extern "C" {
pub fn DNSServiceQueryRecord(
sdRef: *mut DNSServiceRef,
flags: DNSServiceFlags,
interfaceIndex: u32,
fullname: *const ::libc::c_char,
rrtype: u16,
rrclass: u16,
callBack: DNSServiceQueryRecordReply,
context: *mut ::libc::c_void,
) -> DNSServiceErrorType;
}
extern "C" {
pub fn DNSServiceReconfirmRecord(
flags: DNSServiceFlags,
interfaceIndex: u32,
fullname: *const ::libc::c_char,
rrtype: u16,
rrclass: u16,
rdlen: u16,
rdata: *const ::libc::c_void,
) -> DNSServiceErrorType;
}
extern "C" {
pub fn DNSServiceConstructFullName(
fullName: *mut ::libc::c_char,
service: *const ::libc::c_char,
regtype: *const ::libc::c_char,
domain: *const ::libc::c_char,
) -> ::libc::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _TXTRecordRef_t {
pub PrivateData: [::libc::c_char; 16usize],
pub ForceNaturalAlignment: *mut ::libc::c_char,
}
#[test]
fn bindgen_test_layout__TXTRecordRef_t() {
const UNINIT: ::std::mem::MaybeUninit<_TXTRecordRef_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_TXTRecordRef_t>(),
16usize,
concat!("Size of: ", stringify!(_TXTRecordRef_t))
);
assert_eq!(
::std::mem::align_of::<_TXTRecordRef_t>(),
8usize,
concat!("Alignment of ", stringify!(_TXTRecordRef_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).PrivateData) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_TXTRecordRef_t),
"::",
stringify!(PrivateData)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ForceNaturalAlignment) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_TXTRecordRef_t),
"::",
stringify!(ForceNaturalAlignment)
)
);
}
pub type TXTRecordRef = _TXTRecordRef_t;
extern "C" {
pub fn TXTRecordCreate(
txtRecord: *mut TXTRecordRef,
bufferLen: u16,
buffer: *mut ::libc::c_void,
);
}
extern "C" {
pub fn TXTRecordDeallocate(txtRecord: *mut TXTRecordRef);
}
extern "C" {
pub fn TXTRecordSetValue(
txtRecord: *mut TXTRecordRef,
key: *const ::libc::c_char,
valueSize: u8,
value: *const ::libc::c_void,
) -> DNSServiceErrorType;
}
extern "C" {
pub fn TXTRecordRemoveValue(
txtRecord: *mut TXTRecordRef,
key: *const ::libc::c_char,
) -> DNSServiceErrorType;
}
extern "C" {
pub fn TXTRecordGetLength(txtRecord: *const TXTRecordRef) -> u16;
}
extern "C" {
pub fn TXTRecordGetBytesPtr(txtRecord: *const TXTRecordRef) -> *const ::libc::c_void;
}
extern "C" {
pub fn TXTRecordContainsKey(
txtLen: u16,
txtRecord: *const ::libc::c_void,
key: *const ::libc::c_char,
) -> ::libc::c_int;
}
extern "C" {
pub fn TXTRecordGetValuePtr(
txtLen: u16,
txtRecord: *const ::libc::c_void,
key: *const ::libc::c_char,
valueLen: *mut u8,
) -> *const ::libc::c_void;
}
extern "C" {
pub fn TXTRecordGetCount(txtLen: u16, txtRecord: *const ::libc::c_void) -> u16;
}
extern "C" {
pub fn TXTRecordGetItemAtIndex(
txtLen: u16,
txtRecord: *const ::libc::c_void,
index: u16,
keyBufLen: u16,
key: *mut ::libc::c_char,
valueLen: *mut u8,
value: *mut *const ::libc::c_void,
) -> DNSServiceErrorType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct DNS_SD_CompileTimeAssertionChecks {
pub assert0: [::libc::c_char; 1usize],
}
#[test]
fn bindgen_test_layout_DNS_SD_CompileTimeAssertionChecks() {
const UNINIT: ::std::mem::MaybeUninit<DNS_SD_CompileTimeAssertionChecks> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<DNS_SD_CompileTimeAssertionChecks>(),
1usize,
concat!("Size of: ", stringify!(DNS_SD_CompileTimeAssertionChecks))
);
assert_eq!(
::std::mem::align_of::<DNS_SD_CompileTimeAssertionChecks>(),
1usize,
concat!(
"Alignment of ",
stringify!(DNS_SD_CompileTimeAssertionChecks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).assert0) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(DNS_SD_CompileTimeAssertionChecks),
"::",
stringify!(assert0)
)
);
}