/* automatically generated by rust-bindgen 0.71.1 */
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage> {
storage: Storage,
}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
Self { storage }
}
}
impl<Storage> __BindgenBitfieldUnit<Storage>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
#[inline]
fn extract_bit(byte: u8, index: usize) -> bool {
let bit_index = if cfg!(target_endian = "big") {
7 - (index % 8)
} else {
index % 8
};
let mask = 1 << bit_index;
byte & mask == mask
}
#[inline]
pub fn get_bit(&self, index: usize) -> bool {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = self.storage.as_ref()[byte_index];
Self::extract_bit(byte, index)
}
#[inline]
pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
debug_assert!(index / 8 < core::mem::size_of::<Storage>());
let byte_index = index / 8;
let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize);
Self::extract_bit(byte, index)
}
#[inline]
fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
let bit_index = if cfg!(target_endian = "big") {
7 - (index % 8)
} else {
index % 8
};
let mask = 1 << bit_index;
if val {
byte | mask
} else {
byte & !mask
}
}
#[inline]
pub fn set_bit(&mut self, index: usize, val: bool) {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = &mut self.storage.as_mut()[byte_index];
*byte = Self::change_bit(*byte, index, val);
}
#[inline]
pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
debug_assert!(index / 8 < core::mem::size_of::<Storage>());
let byte_index = index / 8;
let byte =
(core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize);
*byte = Self::change_bit(*byte, index, val);
}
#[inline]
pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
let mut val = 0;
for i in 0..(bit_width as usize) {
if self.get_bit(i + bit_offset) {
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
val |= 1 << index;
}
}
val
}
#[inline]
pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
let mut val = 0;
for i in 0..(bit_width as usize) {
if Self::raw_get_bit(this, i + bit_offset) {
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
val |= 1 << index;
}
}
val
}
#[inline]
pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
for i in 0..(bit_width as usize) {
let mask = 1 << i;
let val_bit_is_set = val & mask == mask;
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
self.set_bit(index + bit_offset, val_bit_is_set);
}
}
#[inline]
pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
for i in 0..(bit_width as usize) {
let mask = 1 << i;
let val_bit_is_set = val & mask == mask;
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
Self::raw_set_bit(this, index + bit_offset, val_bit_is_set);
}
}
}
#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
impl<T> __IncompleteArrayField<T> {
#[inline]
pub const fn new() -> Self {
__IncompleteArrayField(::std::marker::PhantomData, [])
}
#[inline]
pub fn as_ptr(&self) -> *const T {
self as *const _ as *const T
}
#[inline]
pub fn as_mut_ptr(&mut self) -> *mut T {
self as *mut _ as *mut T
}
#[inline]
pub unsafe fn as_slice(&self, len: usize) -> &[T] {
::std::slice::from_raw_parts(self.as_ptr(), len)
}
#[inline]
pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
}
}
impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
fmt.write_str("__IncompleteArrayField")
}
}
pub const DDS_HAS_SECURITY: u32 = 1;
pub const DDS_HAS_LIFESPAN: u32 = 1;
pub const DDS_HAS_DEADLINE_MISSED: u32 = 1;
pub const DDS_HAS_NETWORK_PARTITIONS: u32 = 1;
pub const DDS_HAS_TCP_TLS: u32 = 1;
pub const DDS_HAS_TYPELIB: u32 = 1;
pub const DDS_HAS_TYPE_DISCOVERY: u32 = 1;
pub const DDS_HAS_TOPIC_DISCOVERY: u32 = 1;
pub const DDS_HAS_QOS_PROVIDER: u32 = 1;
pub const __bool_true_false_are_defined: u32 = 1;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const __WORDSIZE: u32 = 64;
pub const __has_safe_buffers: u32 = 1;
pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 1;
pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1;
pub const __DARWIN_ONLY_VERS_1050: u32 = 1;
pub const __DARWIN_UNIX03: u32 = 1;
pub const __DARWIN_64_BIT_INO_T: u32 = 1;
pub const __DARWIN_VERS_1050: u32 = 1;
pub const __DARWIN_NON_CANCELABLE: u32 = 0;
pub const __DARWIN_SUF_EXTSN: &[u8; 14] = b"$DARWIN_EXTSN\0";
pub const __DARWIN_C_ANSI: u32 = 4096;
pub const __DARWIN_C_FULL: u32 = 900000;
pub const __DARWIN_C_LEVEL: u32 = 900000;
pub const __STDC_WANT_LIB_EXT1__: u32 = 1;
pub const __DARWIN_NO_LONG_LONG: u32 = 0;
pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1;
pub const _DARWIN_FEATURE_ONLY_64_BIT_INODE: u32 = 1;
pub const _DARWIN_FEATURE_ONLY_VERS_1050: u32 = 1;
pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1;
pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3;
pub const __has_ptrcheck: u32 = 0;
pub const __has_bounds_safety_attributes: u32 = 0;
pub const USE_CLANG_TYPES: u32 = 0;
pub const __PTHREAD_SIZE__: u32 = 8176;
pub const __PTHREAD_ATTR_SIZE__: u32 = 56;
pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8;
pub const __PTHREAD_MUTEX_SIZE__: u32 = 56;
pub const __PTHREAD_CONDATTR_SIZE__: u32 = 8;
pub const __PTHREAD_COND_SIZE__: u32 = 40;
pub const __PTHREAD_ONCE_SIZE__: u32 = 8;
pub const __PTHREAD_RWLOCK_SIZE__: u32 = 192;
pub const __PTHREAD_RWLOCKATTR_SIZE__: u32 = 16;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const INT64_MAX: u64 = 9223372036854775807;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT64_MIN: i64 = -9223372036854775808;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const UINT64_MAX: i32 = -1;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST64_MIN: i64 = -9223372036854775808;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const INT_LEAST64_MAX: u64 = 9223372036854775807;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const UINT_LEAST64_MAX: i32 = -1;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i32 = -32768;
pub const INT_FAST32_MIN: i32 = -2147483648;
pub const INT_FAST64_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u32 = 32767;
pub const INT_FAST32_MAX: u32 = 2147483647;
pub const INT_FAST64_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: u32 = 65535;
pub const UINT_FAST32_MAX: u32 = 4294967295;
pub const UINT_FAST64_MAX: i32 = -1;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const UINTPTR_MAX: i32 = -1;
pub const SIZE_MAX: i32 = -1;
pub const RSIZE_MAX: i32 = -1;
pub const WINT_MIN: i32 = -2147483648;
pub const WINT_MAX: u32 = 2147483647;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const DDSRT_HAVE_DYNLIB: u32 = 1;
pub const DDSRT_HAVE_FILESYSTEM: u32 = 1;
pub const DDSRT_HAVE_NETSTAT: u32 = 1;
pub const DDSRT_HAVE_RUSAGE: u32 = 1;
pub const DDSRT_HAVE_IPV6: u32 = 1;
pub const DDSRT_HAVE_SSM: u32 = 1;
pub const DDSRT_HAVE_DNS: u32 = 1;
pub const DDSRT_HAVE_GETADDRINFO: u32 = 1;
pub const DDSRT_HAVE_GETHOSTNAME: u32 = 1;
pub const DDSRT_HAVE_INET_NTOP: u32 = 1;
pub const DDSRT_HAVE_INET_PTON: u32 = 1;
pub const __PRI_8_LENGTH_MODIFIER__: &[u8; 3] = b"hh\0";
pub const __PRI_64_LENGTH_MODIFIER__: &[u8; 3] = b"ll\0";
pub const __SCN_64_LENGTH_MODIFIER__: &[u8; 3] = b"ll\0";
pub const __PRI_MAX_LENGTH_MODIFIER__: &[u8; 2] = b"j\0";
pub const __SCN_MAX_LENGTH_MODIFIER__: &[u8; 2] = b"j\0";
pub const PRId8: &[u8; 4] = b"hhd\0";
pub const PRIi8: &[u8; 4] = b"hhi\0";
pub const PRIo8: &[u8; 4] = b"hho\0";
pub const PRIu8: &[u8; 4] = b"hhu\0";
pub const PRIx8: &[u8; 4] = b"hhx\0";
pub const PRIX8: &[u8; 4] = b"hhX\0";
pub const PRId16: &[u8; 3] = b"hd\0";
pub const PRIi16: &[u8; 3] = b"hi\0";
pub const PRIo16: &[u8; 3] = b"ho\0";
pub const PRIu16: &[u8; 3] = b"hu\0";
pub const PRIx16: &[u8; 3] = b"hx\0";
pub const PRIX16: &[u8; 3] = b"hX\0";
pub const PRId32: &[u8; 2] = b"d\0";
pub const PRIi32: &[u8; 2] = b"i\0";
pub const PRIo32: &[u8; 2] = b"o\0";
pub const PRIu32: &[u8; 2] = b"u\0";
pub const PRIx32: &[u8; 2] = b"x\0";
pub const PRIX32: &[u8; 2] = b"X\0";
pub const PRId64: &[u8; 4] = b"lld\0";
pub const PRIi64: &[u8; 4] = b"lli\0";
pub const PRIo64: &[u8; 4] = b"llo\0";
pub const PRIu64: &[u8; 4] = b"llu\0";
pub const PRIx64: &[u8; 4] = b"llx\0";
pub const PRIX64: &[u8; 4] = b"llX\0";
pub const PRIdLEAST8: &[u8; 4] = b"hhd\0";
pub const PRIiLEAST8: &[u8; 4] = b"hhi\0";
pub const PRIoLEAST8: &[u8; 4] = b"hho\0";
pub const PRIuLEAST8: &[u8; 4] = b"hhu\0";
pub const PRIxLEAST8: &[u8; 4] = b"hhx\0";
pub const PRIXLEAST8: &[u8; 4] = b"hhX\0";
pub const PRIdLEAST16: &[u8; 3] = b"hd\0";
pub const PRIiLEAST16: &[u8; 3] = b"hi\0";
pub const PRIoLEAST16: &[u8; 3] = b"ho\0";
pub const PRIuLEAST16: &[u8; 3] = b"hu\0";
pub const PRIxLEAST16: &[u8; 3] = b"hx\0";
pub const PRIXLEAST16: &[u8; 3] = b"hX\0";
pub const PRIdLEAST32: &[u8; 2] = b"d\0";
pub const PRIiLEAST32: &[u8; 2] = b"i\0";
pub const PRIoLEAST32: &[u8; 2] = b"o\0";
pub const PRIuLEAST32: &[u8; 2] = b"u\0";
pub const PRIxLEAST32: &[u8; 2] = b"x\0";
pub const PRIXLEAST32: &[u8; 2] = b"X\0";
pub const PRIdLEAST64: &[u8; 4] = b"lld\0";
pub const PRIiLEAST64: &[u8; 4] = b"lli\0";
pub const PRIoLEAST64: &[u8; 4] = b"llo\0";
pub const PRIuLEAST64: &[u8; 4] = b"llu\0";
pub const PRIxLEAST64: &[u8; 4] = b"llx\0";
pub const PRIXLEAST64: &[u8; 4] = b"llX\0";
pub const PRIdFAST8: &[u8; 4] = b"hhd\0";
pub const PRIiFAST8: &[u8; 4] = b"hhi\0";
pub const PRIoFAST8: &[u8; 4] = b"hho\0";
pub const PRIuFAST8: &[u8; 4] = b"hhu\0";
pub const PRIxFAST8: &[u8; 4] = b"hhx\0";
pub const PRIXFAST8: &[u8; 4] = b"hhX\0";
pub const PRIdFAST16: &[u8; 3] = b"hd\0";
pub const PRIiFAST16: &[u8; 3] = b"hi\0";
pub const PRIoFAST16: &[u8; 3] = b"ho\0";
pub const PRIuFAST16: &[u8; 3] = b"hu\0";
pub const PRIxFAST16: &[u8; 3] = b"hx\0";
pub const PRIXFAST16: &[u8; 3] = b"hX\0";
pub const PRIdFAST32: &[u8; 2] = b"d\0";
pub const PRIiFAST32: &[u8; 2] = b"i\0";
pub const PRIoFAST32: &[u8; 2] = b"o\0";
pub const PRIuFAST32: &[u8; 2] = b"u\0";
pub const PRIxFAST32: &[u8; 2] = b"x\0";
pub const PRIXFAST32: &[u8; 2] = b"X\0";
pub const PRIdFAST64: &[u8; 4] = b"lld\0";
pub const PRIiFAST64: &[u8; 4] = b"lli\0";
pub const PRIoFAST64: &[u8; 4] = b"llo\0";
pub const PRIuFAST64: &[u8; 4] = b"llu\0";
pub const PRIxFAST64: &[u8; 4] = b"llx\0";
pub const PRIXFAST64: &[u8; 4] = b"llX\0";
pub const PRIdPTR: &[u8; 3] = b"ld\0";
pub const PRIiPTR: &[u8; 3] = b"li\0";
pub const PRIoPTR: &[u8; 3] = b"lo\0";
pub const PRIuPTR: &[u8; 3] = b"lu\0";
pub const PRIxPTR: &[u8; 3] = b"lx\0";
pub const PRIXPTR: &[u8; 3] = b"lX\0";
pub const PRIdMAX: &[u8; 3] = b"jd\0";
pub const PRIiMAX: &[u8; 3] = b"ji\0";
pub const PRIoMAX: &[u8; 3] = b"jo\0";
pub const PRIuMAX: &[u8; 3] = b"ju\0";
pub const PRIxMAX: &[u8; 3] = b"jx\0";
pub const PRIXMAX: &[u8; 3] = b"jX\0";
pub const SCNd8: &[u8; 4] = b"hhd\0";
pub const SCNi8: &[u8; 4] = b"hhi\0";
pub const SCNo8: &[u8; 4] = b"hho\0";
pub const SCNu8: &[u8; 4] = b"hhu\0";
pub const SCNx8: &[u8; 4] = b"hhx\0";
pub const SCNd16: &[u8; 3] = b"hd\0";
pub const SCNi16: &[u8; 3] = b"hi\0";
pub const SCNo16: &[u8; 3] = b"ho\0";
pub const SCNu16: &[u8; 3] = b"hu\0";
pub const SCNx16: &[u8; 3] = b"hx\0";
pub const SCNd32: &[u8; 2] = b"d\0";
pub const SCNi32: &[u8; 2] = b"i\0";
pub const SCNo32: &[u8; 2] = b"o\0";
pub const SCNu32: &[u8; 2] = b"u\0";
pub const SCNx32: &[u8; 2] = b"x\0";
pub const SCNd64: &[u8; 4] = b"lld\0";
pub const SCNi64: &[u8; 4] = b"lli\0";
pub const SCNo64: &[u8; 4] = b"llo\0";
pub const SCNu64: &[u8; 4] = b"llu\0";
pub const SCNx64: &[u8; 4] = b"llx\0";
pub const SCNdLEAST8: &[u8; 4] = b"hhd\0";
pub const SCNiLEAST8: &[u8; 4] = b"hhi\0";
pub const SCNoLEAST8: &[u8; 4] = b"hho\0";
pub const SCNuLEAST8: &[u8; 4] = b"hhu\0";
pub const SCNxLEAST8: &[u8; 4] = b"hhx\0";
pub const SCNdLEAST16: &[u8; 3] = b"hd\0";
pub const SCNiLEAST16: &[u8; 3] = b"hi\0";
pub const SCNoLEAST16: &[u8; 3] = b"ho\0";
pub const SCNuLEAST16: &[u8; 3] = b"hu\0";
pub const SCNxLEAST16: &[u8; 3] = b"hx\0";
pub const SCNdLEAST32: &[u8; 2] = b"d\0";
pub const SCNiLEAST32: &[u8; 2] = b"i\0";
pub const SCNoLEAST32: &[u8; 2] = b"o\0";
pub const SCNuLEAST32: &[u8; 2] = b"u\0";
pub const SCNxLEAST32: &[u8; 2] = b"x\0";
pub const SCNdLEAST64: &[u8; 4] = b"lld\0";
pub const SCNiLEAST64: &[u8; 4] = b"lli\0";
pub const SCNoLEAST64: &[u8; 4] = b"llo\0";
pub const SCNuLEAST64: &[u8; 4] = b"llu\0";
pub const SCNxLEAST64: &[u8; 4] = b"llx\0";
pub const SCNdFAST8: &[u8; 4] = b"hhd\0";
pub const SCNiFAST8: &[u8; 4] = b"hhi\0";
pub const SCNoFAST8: &[u8; 4] = b"hho\0";
pub const SCNuFAST8: &[u8; 4] = b"hhu\0";
pub const SCNxFAST8: &[u8; 4] = b"hhx\0";
pub const SCNdFAST16: &[u8; 3] = b"hd\0";
pub const SCNiFAST16: &[u8; 3] = b"hi\0";
pub const SCNoFAST16: &[u8; 3] = b"ho\0";
pub const SCNuFAST16: &[u8; 3] = b"hu\0";
pub const SCNxFAST16: &[u8; 3] = b"hx\0";
pub const SCNdFAST32: &[u8; 2] = b"d\0";
pub const SCNiFAST32: &[u8; 2] = b"i\0";
pub const SCNoFAST32: &[u8; 2] = b"o\0";
pub const SCNuFAST32: &[u8; 2] = b"u\0";
pub const SCNxFAST32: &[u8; 2] = b"x\0";
pub const SCNdFAST64: &[u8; 4] = b"lld\0";
pub const SCNiFAST64: &[u8; 4] = b"lli\0";
pub const SCNoFAST64: &[u8; 4] = b"llo\0";
pub const SCNuFAST64: &[u8; 4] = b"llu\0";
pub const SCNxFAST64: &[u8; 4] = b"llx\0";
pub const SCNdPTR: &[u8; 3] = b"ld\0";
pub const SCNiPTR: &[u8; 3] = b"li\0";
pub const SCNoPTR: &[u8; 3] = b"lo\0";
pub const SCNuPTR: &[u8; 3] = b"lu\0";
pub const SCNxPTR: &[u8; 3] = b"lx\0";
pub const SCNdMAX: &[u8; 3] = b"jd\0";
pub const SCNiMAX: &[u8; 3] = b"ji\0";
pub const SCNoMAX: &[u8; 3] = b"jo\0";
pub const SCNuMAX: &[u8; 3] = b"ju\0";
pub const SCNxMAX: &[u8; 3] = b"jx\0";
pub const __API_TO_BE_DEPRECATED: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_IOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_IOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACCATALYST: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACCATALYSTAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_WATCHOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_WATCHOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_TVOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_TVOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_DRIVERKIT: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_VISIONOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_VISIONOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_KERNELKIT: u32 = 100000;
pub const __MAC_10_0: u32 = 1000;
pub const __MAC_10_1: u32 = 1010;
pub const __MAC_10_2: u32 = 1020;
pub const __MAC_10_3: u32 = 1030;
pub const __MAC_10_4: u32 = 1040;
pub const __MAC_10_5: u32 = 1050;
pub const __MAC_10_6: u32 = 1060;
pub const __MAC_10_7: u32 = 1070;
pub const __MAC_10_8: u32 = 1080;
pub const __MAC_10_9: u32 = 1090;
pub const __MAC_10_10: u32 = 101000;
pub const __MAC_10_10_2: u32 = 101002;
pub const __MAC_10_10_3: u32 = 101003;
pub const __MAC_10_11: u32 = 101100;
pub const __MAC_10_11_2: u32 = 101102;
pub const __MAC_10_11_3: u32 = 101103;
pub const __MAC_10_11_4: u32 = 101104;
pub const __MAC_10_12: u32 = 101200;
pub const __MAC_10_12_1: u32 = 101201;
pub const __MAC_10_12_2: u32 = 101202;
pub const __MAC_10_12_4: u32 = 101204;
pub const __MAC_10_13: u32 = 101300;
pub const __MAC_10_13_1: u32 = 101301;
pub const __MAC_10_13_2: u32 = 101302;
pub const __MAC_10_13_4: u32 = 101304;
pub const __MAC_10_14: u32 = 101400;
pub const __MAC_10_14_1: u32 = 101401;
pub const __MAC_10_14_4: u32 = 101404;
pub const __MAC_10_14_5: u32 = 101405;
pub const __MAC_10_14_6: u32 = 101406;
pub const __MAC_10_15: u32 = 101500;
pub const __MAC_10_15_1: u32 = 101501;
pub const __MAC_10_15_4: u32 = 101504;
pub const __MAC_10_16: u32 = 101600;
pub const __MAC_11_0: u32 = 110000;
pub const __MAC_11_1: u32 = 110100;
pub const __MAC_11_3: u32 = 110300;
pub const __MAC_11_4: u32 = 110400;
pub const __MAC_11_5: u32 = 110500;
pub const __MAC_11_6: u32 = 110600;
pub const __MAC_12_0: u32 = 120000;
pub const __MAC_12_1: u32 = 120100;
pub const __MAC_12_2: u32 = 120200;
pub const __MAC_12_3: u32 = 120300;
pub const __MAC_12_4: u32 = 120400;
pub const __MAC_12_5: u32 = 120500;
pub const __MAC_12_6: u32 = 120600;
pub const __MAC_12_7: u32 = 120700;
pub const __MAC_13_0: u32 = 130000;
pub const __MAC_13_1: u32 = 130100;
pub const __MAC_13_2: u32 = 130200;
pub const __MAC_13_3: u32 = 130300;
pub const __MAC_13_4: u32 = 130400;
pub const __MAC_13_5: u32 = 130500;
pub const __MAC_13_6: u32 = 130600;
pub const __MAC_13_7: u32 = 130700;
pub const __MAC_14_0: u32 = 140000;
pub const __MAC_14_1: u32 = 140100;
pub const __MAC_14_2: u32 = 140200;
pub const __MAC_14_3: u32 = 140300;
pub const __MAC_14_4: u32 = 140400;
pub const __MAC_14_5: u32 = 140500;
pub const __MAC_14_6: u32 = 140600;
pub const __MAC_14_7: u32 = 140700;
pub const __MAC_15_0: u32 = 150000;
pub const __MAC_15_1: u32 = 150100;
pub const __MAC_15_2: u32 = 150200;
pub const __MAC_15_3: u32 = 150300;
pub const __MAC_15_4: u32 = 150400;
pub const __MAC_15_5: u32 = 150500;
pub const __MAC_15_6: u32 = 150600;
pub const __MAC_16_0: u32 = 160000;
pub const __MAC_26_0: u32 = 260000;
pub const __MAC_26_1: u32 = 260100;
pub const __MAC_26_2: u32 = 260200;
pub const __MAC_26_3: u32 = 260300;
pub const __MAC_26_4: u32 = 260400;
pub const __IPHONE_2_0: u32 = 20000;
pub const __IPHONE_2_1: u32 = 20100;
pub const __IPHONE_2_2: u32 = 20200;
pub const __IPHONE_3_0: u32 = 30000;
pub const __IPHONE_3_1: u32 = 30100;
pub const __IPHONE_3_2: u32 = 30200;
pub const __IPHONE_4_0: u32 = 40000;
pub const __IPHONE_4_1: u32 = 40100;
pub const __IPHONE_4_2: u32 = 40200;
pub const __IPHONE_4_3: u32 = 40300;
pub const __IPHONE_5_0: u32 = 50000;
pub const __IPHONE_5_1: u32 = 50100;
pub const __IPHONE_6_0: u32 = 60000;
pub const __IPHONE_6_1: u32 = 60100;
pub const __IPHONE_7_0: u32 = 70000;
pub const __IPHONE_7_1: u32 = 70100;
pub const __IPHONE_8_0: u32 = 80000;
pub const __IPHONE_8_1: u32 = 80100;
pub const __IPHONE_8_2: u32 = 80200;
pub const __IPHONE_8_3: u32 = 80300;
pub const __IPHONE_8_4: u32 = 80400;
pub const __IPHONE_9_0: u32 = 90000;
pub const __IPHONE_9_1: u32 = 90100;
pub const __IPHONE_9_2: u32 = 90200;
pub const __IPHONE_9_3: u32 = 90300;
pub const __IPHONE_10_0: u32 = 100000;
pub const __IPHONE_10_1: u32 = 100100;
pub const __IPHONE_10_2: u32 = 100200;
pub const __IPHONE_10_3: u32 = 100300;
pub const __IPHONE_11_0: u32 = 110000;
pub const __IPHONE_11_1: u32 = 110100;
pub const __IPHONE_11_2: u32 = 110200;
pub const __IPHONE_11_3: u32 = 110300;
pub const __IPHONE_11_4: u32 = 110400;
pub const __IPHONE_12_0: u32 = 120000;
pub const __IPHONE_12_1: u32 = 120100;
pub const __IPHONE_12_2: u32 = 120200;
pub const __IPHONE_12_3: u32 = 120300;
pub const __IPHONE_12_4: u32 = 120400;
pub const __IPHONE_13_0: u32 = 130000;
pub const __IPHONE_13_1: u32 = 130100;
pub const __IPHONE_13_2: u32 = 130200;
pub const __IPHONE_13_3: u32 = 130300;
pub const __IPHONE_13_4: u32 = 130400;
pub const __IPHONE_13_5: u32 = 130500;
pub const __IPHONE_13_6: u32 = 130600;
pub const __IPHONE_13_7: u32 = 130700;
pub const __IPHONE_14_0: u32 = 140000;
pub const __IPHONE_14_1: u32 = 140100;
pub const __IPHONE_14_2: u32 = 140200;
pub const __IPHONE_14_3: u32 = 140300;
pub const __IPHONE_14_5: u32 = 140500;
pub const __IPHONE_14_6: u32 = 140600;
pub const __IPHONE_14_7: u32 = 140700;
pub const __IPHONE_14_8: u32 = 140800;
pub const __IPHONE_15_0: u32 = 150000;
pub const __IPHONE_15_1: u32 = 150100;
pub const __IPHONE_15_2: u32 = 150200;
pub const __IPHONE_15_3: u32 = 150300;
pub const __IPHONE_15_4: u32 = 150400;
pub const __IPHONE_15_5: u32 = 150500;
pub const __IPHONE_15_6: u32 = 150600;
pub const __IPHONE_15_7: u32 = 150700;
pub const __IPHONE_15_8: u32 = 150800;
pub const __IPHONE_16_0: u32 = 160000;
pub const __IPHONE_16_1: u32 = 160100;
pub const __IPHONE_16_2: u32 = 160200;
pub const __IPHONE_16_3: u32 = 160300;
pub const __IPHONE_16_4: u32 = 160400;
pub const __IPHONE_16_5: u32 = 160500;
pub const __IPHONE_16_6: u32 = 160600;
pub const __IPHONE_16_7: u32 = 160700;
pub const __IPHONE_17_0: u32 = 170000;
pub const __IPHONE_17_1: u32 = 170100;
pub const __IPHONE_17_2: u32 = 170200;
pub const __IPHONE_17_3: u32 = 170300;
pub const __IPHONE_17_4: u32 = 170400;
pub const __IPHONE_17_5: u32 = 170500;
pub const __IPHONE_17_6: u32 = 170600;
pub const __IPHONE_17_7: u32 = 170700;
pub const __IPHONE_18_0: u32 = 180000;
pub const __IPHONE_18_1: u32 = 180100;
pub const __IPHONE_18_2: u32 = 180200;
pub const __IPHONE_18_3: u32 = 180300;
pub const __IPHONE_18_4: u32 = 180400;
pub const __IPHONE_18_5: u32 = 180500;
pub const __IPHONE_18_6: u32 = 180600;
pub const __IPHONE_19_0: u32 = 190000;
pub const __IPHONE_26_0: u32 = 260000;
pub const __IPHONE_26_1: u32 = 260100;
pub const __IPHONE_26_2: u32 = 260200;
pub const __IPHONE_26_3: u32 = 260300;
pub const __IPHONE_26_4: u32 = 260400;
pub const __WATCHOS_1_0: u32 = 10000;
pub const __WATCHOS_2_0: u32 = 20000;
pub const __WATCHOS_2_1: u32 = 20100;
pub const __WATCHOS_2_2: u32 = 20200;
pub const __WATCHOS_3_0: u32 = 30000;
pub const __WATCHOS_3_1: u32 = 30100;
pub const __WATCHOS_3_1_1: u32 = 30101;
pub const __WATCHOS_3_2: u32 = 30200;
pub const __WATCHOS_4_0: u32 = 40000;
pub const __WATCHOS_4_1: u32 = 40100;
pub const __WATCHOS_4_2: u32 = 40200;
pub const __WATCHOS_4_3: u32 = 40300;
pub const __WATCHOS_5_0: u32 = 50000;
pub const __WATCHOS_5_1: u32 = 50100;
pub const __WATCHOS_5_2: u32 = 50200;
pub const __WATCHOS_5_3: u32 = 50300;
pub const __WATCHOS_6_0: u32 = 60000;
pub const __WATCHOS_6_1: u32 = 60100;
pub const __WATCHOS_6_2: u32 = 60200;
pub const __WATCHOS_7_0: u32 = 70000;
pub const __WATCHOS_7_1: u32 = 70100;
pub const __WATCHOS_7_2: u32 = 70200;
pub const __WATCHOS_7_3: u32 = 70300;
pub const __WATCHOS_7_4: u32 = 70400;
pub const __WATCHOS_7_5: u32 = 70500;
pub const __WATCHOS_7_6: u32 = 70600;
pub const __WATCHOS_8_0: u32 = 80000;
pub const __WATCHOS_8_1: u32 = 80100;
pub const __WATCHOS_8_3: u32 = 80300;
pub const __WATCHOS_8_4: u32 = 80400;
pub const __WATCHOS_8_5: u32 = 80500;
pub const __WATCHOS_8_6: u32 = 80600;
pub const __WATCHOS_8_7: u32 = 80700;
pub const __WATCHOS_8_8: u32 = 80800;
pub const __WATCHOS_9_0: u32 = 90000;
pub const __WATCHOS_9_1: u32 = 90100;
pub const __WATCHOS_9_2: u32 = 90200;
pub const __WATCHOS_9_3: u32 = 90300;
pub const __WATCHOS_9_4: u32 = 90400;
pub const __WATCHOS_9_5: u32 = 90500;
pub const __WATCHOS_9_6: u32 = 90600;
pub const __WATCHOS_10_0: u32 = 100000;
pub const __WATCHOS_10_1: u32 = 100100;
pub const __WATCHOS_10_2: u32 = 100200;
pub const __WATCHOS_10_3: u32 = 100300;
pub const __WATCHOS_10_4: u32 = 100400;
pub const __WATCHOS_10_5: u32 = 100500;
pub const __WATCHOS_10_6: u32 = 100600;
pub const __WATCHOS_10_7: u32 = 100700;
pub const __WATCHOS_11_0: u32 = 110000;
pub const __WATCHOS_11_1: u32 = 110100;
pub const __WATCHOS_11_2: u32 = 110200;
pub const __WATCHOS_11_3: u32 = 110300;
pub const __WATCHOS_11_4: u32 = 110400;
pub const __WATCHOS_11_5: u32 = 110500;
pub const __WATCHOS_11_6: u32 = 110600;
pub const __WATCHOS_12_0: u32 = 120000;
pub const __WATCHOS_26_0: u32 = 260000;
pub const __WATCHOS_26_1: u32 = 260100;
pub const __WATCHOS_26_2: u32 = 260200;
pub const __WATCHOS_26_3: u32 = 260300;
pub const __WATCHOS_26_4: u32 = 260400;
pub const __TVOS_9_0: u32 = 90000;
pub const __TVOS_9_1: u32 = 90100;
pub const __TVOS_9_2: u32 = 90200;
pub const __TVOS_10_0: u32 = 100000;
pub const __TVOS_10_0_1: u32 = 100001;
pub const __TVOS_10_1: u32 = 100100;
pub const __TVOS_10_2: u32 = 100200;
pub const __TVOS_11_0: u32 = 110000;
pub const __TVOS_11_1: u32 = 110100;
pub const __TVOS_11_2: u32 = 110200;
pub const __TVOS_11_3: u32 = 110300;
pub const __TVOS_11_4: u32 = 110400;
pub const __TVOS_12_0: u32 = 120000;
pub const __TVOS_12_1: u32 = 120100;
pub const __TVOS_12_2: u32 = 120200;
pub const __TVOS_12_3: u32 = 120300;
pub const __TVOS_12_4: u32 = 120400;
pub const __TVOS_13_0: u32 = 130000;
pub const __TVOS_13_2: u32 = 130200;
pub const __TVOS_13_3: u32 = 130300;
pub const __TVOS_13_4: u32 = 130400;
pub const __TVOS_14_0: u32 = 140000;
pub const __TVOS_14_1: u32 = 140100;
pub const __TVOS_14_2: u32 = 140200;
pub const __TVOS_14_3: u32 = 140300;
pub const __TVOS_14_5: u32 = 140500;
pub const __TVOS_14_6: u32 = 140600;
pub const __TVOS_14_7: u32 = 140700;
pub const __TVOS_15_0: u32 = 150000;
pub const __TVOS_15_1: u32 = 150100;
pub const __TVOS_15_2: u32 = 150200;
pub const __TVOS_15_3: u32 = 150300;
pub const __TVOS_15_4: u32 = 150400;
pub const __TVOS_15_5: u32 = 150500;
pub const __TVOS_15_6: u32 = 150600;
pub const __TVOS_16_0: u32 = 160000;
pub const __TVOS_16_1: u32 = 160100;
pub const __TVOS_16_2: u32 = 160200;
pub const __TVOS_16_3: u32 = 160300;
pub const __TVOS_16_4: u32 = 160400;
pub const __TVOS_16_5: u32 = 160500;
pub const __TVOS_16_6: u32 = 160600;
pub const __TVOS_17_0: u32 = 170000;
pub const __TVOS_17_1: u32 = 170100;
pub const __TVOS_17_2: u32 = 170200;
pub const __TVOS_17_3: u32 = 170300;
pub const __TVOS_17_4: u32 = 170400;
pub const __TVOS_17_5: u32 = 170500;
pub const __TVOS_17_6: u32 = 170600;
pub const __TVOS_18_0: u32 = 180000;
pub const __TVOS_18_1: u32 = 180100;
pub const __TVOS_18_2: u32 = 180200;
pub const __TVOS_18_3: u32 = 180300;
pub const __TVOS_18_4: u32 = 180400;
pub const __TVOS_18_5: u32 = 180500;
pub const __TVOS_18_6: u32 = 180600;
pub const __TVOS_19_0: u32 = 190000;
pub const __TVOS_26_0: u32 = 260000;
pub const __TVOS_26_1: u32 = 260100;
pub const __TVOS_26_2: u32 = 260200;
pub const __TVOS_26_3: u32 = 260300;
pub const __TVOS_26_4: u32 = 260400;
pub const __BRIDGEOS_2_0: u32 = 20000;
pub const __BRIDGEOS_3_0: u32 = 30000;
pub const __BRIDGEOS_3_1: u32 = 30100;
pub const __BRIDGEOS_3_4: u32 = 30400;
pub const __BRIDGEOS_4_0: u32 = 40000;
pub const __BRIDGEOS_4_1: u32 = 40100;
pub const __BRIDGEOS_5_0: u32 = 50000;
pub const __BRIDGEOS_5_1: u32 = 50100;
pub const __BRIDGEOS_5_3: u32 = 50300;
pub const __BRIDGEOS_6_0: u32 = 60000;
pub const __BRIDGEOS_6_2: u32 = 60200;
pub const __BRIDGEOS_6_4: u32 = 60400;
pub const __BRIDGEOS_6_5: u32 = 60500;
pub const __BRIDGEOS_6_6: u32 = 60600;
pub const __BRIDGEOS_7_0: u32 = 70000;
pub const __BRIDGEOS_7_1: u32 = 70100;
pub const __BRIDGEOS_7_2: u32 = 70200;
pub const __BRIDGEOS_7_3: u32 = 70300;
pub const __BRIDGEOS_7_4: u32 = 70400;
pub const __BRIDGEOS_7_6: u32 = 70600;
pub const __BRIDGEOS_8_0: u32 = 80000;
pub const __BRIDGEOS_8_1: u32 = 80100;
pub const __BRIDGEOS_8_2: u32 = 80200;
pub const __BRIDGEOS_8_3: u32 = 80300;
pub const __BRIDGEOS_8_4: u32 = 80400;
pub const __BRIDGEOS_8_5: u32 = 80500;
pub const __BRIDGEOS_8_6: u32 = 80600;
pub const __BRIDGEOS_9_0: u32 = 90000;
pub const __BRIDGEOS_9_1: u32 = 90100;
pub const __BRIDGEOS_9_2: u32 = 90200;
pub const __BRIDGEOS_9_3: u32 = 90300;
pub const __BRIDGEOS_9_4: u32 = 90400;
pub const __BRIDGEOS_9_5: u32 = 90500;
pub const __BRIDGEOS_9_6: u32 = 90600;
pub const __BRIDGEOS_10_0: u32 = 100000;
pub const __BRIDGEOS_10_1: u32 = 100100;
pub const __BRIDGEOS_10_2: u32 = 100200;
pub const __BRIDGEOS_10_3: u32 = 100300;
pub const __BRIDGEOS_10_4: u32 = 100400;
pub const __DRIVERKIT_19_0: u32 = 190000;
pub const __DRIVERKIT_20_0: u32 = 200000;
pub const __DRIVERKIT_21_0: u32 = 210000;
pub const __DRIVERKIT_22_0: u32 = 220000;
pub const __DRIVERKIT_22_4: u32 = 220400;
pub const __DRIVERKIT_22_5: u32 = 220500;
pub const __DRIVERKIT_22_6: u32 = 220600;
pub const __DRIVERKIT_23_0: u32 = 230000;
pub const __DRIVERKIT_23_1: u32 = 230100;
pub const __DRIVERKIT_23_2: u32 = 230200;
pub const __DRIVERKIT_23_3: u32 = 230300;
pub const __DRIVERKIT_23_4: u32 = 230400;
pub const __DRIVERKIT_23_5: u32 = 230500;
pub const __DRIVERKIT_23_6: u32 = 230600;
pub const __DRIVERKIT_24_0: u32 = 240000;
pub const __DRIVERKIT_24_1: u32 = 240100;
pub const __DRIVERKIT_24_2: u32 = 240200;
pub const __DRIVERKIT_24_3: u32 = 240300;
pub const __DRIVERKIT_24_4: u32 = 240400;
pub const __DRIVERKIT_24_5: u32 = 240500;
pub const __DRIVERKIT_24_6: u32 = 240600;
pub const __DRIVERKIT_25_0: u32 = 250000;
pub const __DRIVERKIT_25_1: u32 = 250100;
pub const __DRIVERKIT_25_2: u32 = 250200;
pub const __DRIVERKIT_25_3: u32 = 250300;
pub const __DRIVERKIT_25_4: u32 = 250400;
pub const __VISIONOS_1_0: u32 = 10000;
pub const __VISIONOS_1_1: u32 = 10100;
pub const __VISIONOS_1_2: u32 = 10200;
pub const __VISIONOS_1_3: u32 = 10300;
pub const __VISIONOS_2_0: u32 = 20000;
pub const __VISIONOS_2_1: u32 = 20100;
pub const __VISIONOS_2_2: u32 = 20200;
pub const __VISIONOS_2_3: u32 = 20300;
pub const __VISIONOS_2_4: u32 = 20400;
pub const __VISIONOS_2_5: u32 = 20500;
pub const __VISIONOS_2_6: u32 = 20600;
pub const __VISIONOS_3_0: u32 = 30000;
pub const __VISIONOS_26_0: u32 = 260000;
pub const __VISIONOS_26_1: u32 = 260100;
pub const __VISIONOS_26_2: u32 = 260200;
pub const __VISIONOS_26_3: u32 = 260300;
pub const __VISIONOS_26_4: u32 = 260400;
pub const MAC_OS_X_VERSION_10_0: u32 = 1000;
pub const MAC_OS_X_VERSION_10_1: u32 = 1010;
pub const MAC_OS_X_VERSION_10_2: u32 = 1020;
pub const MAC_OS_X_VERSION_10_3: u32 = 1030;
pub const MAC_OS_X_VERSION_10_4: u32 = 1040;
pub const MAC_OS_X_VERSION_10_5: u32 = 1050;
pub const MAC_OS_X_VERSION_10_6: u32 = 1060;
pub const MAC_OS_X_VERSION_10_7: u32 = 1070;
pub const MAC_OS_X_VERSION_10_8: u32 = 1080;
pub const MAC_OS_X_VERSION_10_9: u32 = 1090;
pub const MAC_OS_X_VERSION_10_10: u32 = 101000;
pub const MAC_OS_X_VERSION_10_10_2: u32 = 101002;
pub const MAC_OS_X_VERSION_10_10_3: u32 = 101003;
pub const MAC_OS_X_VERSION_10_11: u32 = 101100;
pub const MAC_OS_X_VERSION_10_11_2: u32 = 101102;
pub const MAC_OS_X_VERSION_10_11_3: u32 = 101103;
pub const MAC_OS_X_VERSION_10_11_4: u32 = 101104;
pub const MAC_OS_X_VERSION_10_12: u32 = 101200;
pub const MAC_OS_X_VERSION_10_12_1: u32 = 101201;
pub const MAC_OS_X_VERSION_10_12_2: u32 = 101202;
pub const MAC_OS_X_VERSION_10_12_4: u32 = 101204;
pub const MAC_OS_X_VERSION_10_13: u32 = 101300;
pub const MAC_OS_X_VERSION_10_13_1: u32 = 101301;
pub const MAC_OS_X_VERSION_10_13_2: u32 = 101302;
pub const MAC_OS_X_VERSION_10_13_4: u32 = 101304;
pub const MAC_OS_X_VERSION_10_14: u32 = 101400;
pub const MAC_OS_X_VERSION_10_14_1: u32 = 101401;
pub const MAC_OS_X_VERSION_10_14_4: u32 = 101404;
pub const MAC_OS_X_VERSION_10_14_5: u32 = 101405;
pub const MAC_OS_X_VERSION_10_14_6: u32 = 101406;
pub const MAC_OS_X_VERSION_10_15: u32 = 101500;
pub const MAC_OS_X_VERSION_10_15_1: u32 = 101501;
pub const MAC_OS_X_VERSION_10_15_4: u32 = 101504;
pub const MAC_OS_X_VERSION_10_16: u32 = 101600;
pub const MAC_OS_VERSION_11_0: u32 = 110000;
pub const MAC_OS_VERSION_11_1: u32 = 110100;
pub const MAC_OS_VERSION_11_3: u32 = 110300;
pub const MAC_OS_VERSION_11_4: u32 = 110400;
pub const MAC_OS_VERSION_11_5: u32 = 110500;
pub const MAC_OS_VERSION_11_6: u32 = 110600;
pub const MAC_OS_VERSION_12_0: u32 = 120000;
pub const MAC_OS_VERSION_12_1: u32 = 120100;
pub const MAC_OS_VERSION_12_2: u32 = 120200;
pub const MAC_OS_VERSION_12_3: u32 = 120300;
pub const MAC_OS_VERSION_12_4: u32 = 120400;
pub const MAC_OS_VERSION_12_5: u32 = 120500;
pub const MAC_OS_VERSION_12_6: u32 = 120600;
pub const MAC_OS_VERSION_12_7: u32 = 120700;
pub const MAC_OS_VERSION_13_0: u32 = 130000;
pub const MAC_OS_VERSION_13_1: u32 = 130100;
pub const MAC_OS_VERSION_13_2: u32 = 130200;
pub const MAC_OS_VERSION_13_3: u32 = 130300;
pub const MAC_OS_VERSION_13_4: u32 = 130400;
pub const MAC_OS_VERSION_13_5: u32 = 130500;
pub const MAC_OS_VERSION_13_6: u32 = 130600;
pub const MAC_OS_VERSION_13_7: u32 = 130700;
pub const MAC_OS_VERSION_14_0: u32 = 140000;
pub const MAC_OS_VERSION_14_1: u32 = 140100;
pub const MAC_OS_VERSION_14_2: u32 = 140200;
pub const MAC_OS_VERSION_14_3: u32 = 140300;
pub const MAC_OS_VERSION_14_4: u32 = 140400;
pub const MAC_OS_VERSION_14_5: u32 = 140500;
pub const MAC_OS_VERSION_14_6: u32 = 140600;
pub const MAC_OS_VERSION_14_7: u32 = 140700;
pub const MAC_OS_VERSION_15_0: u32 = 150000;
pub const MAC_OS_VERSION_15_1: u32 = 150100;
pub const MAC_OS_VERSION_15_2: u32 = 150200;
pub const MAC_OS_VERSION_15_3: u32 = 150300;
pub const MAC_OS_VERSION_15_4: u32 = 150400;
pub const MAC_OS_VERSION_15_5: u32 = 150500;
pub const MAC_OS_VERSION_15_6: u32 = 150600;
pub const MAC_OS_VERSION_16_0: u32 = 160000;
pub const MAC_OS_VERSION_26_0: u32 = 260000;
pub const MAC_OS_VERSION_26_1: u32 = 260100;
pub const MAC_OS_VERSION_26_2: u32 = 260200;
pub const MAC_OS_VERSION_26_3: u32 = 260300;
pub const MAC_OS_VERSION_26_4: u32 = 260400;
pub const __AVAILABILITY_VERSIONS_VERSION_HASH: u32 = 93585900;
pub const __AVAILABILITY_VERSIONS_VERSION_STRING: &[u8; 6] = b"Local\0";
pub const __AVAILABILITY_FILE: &[u8; 23] = b"AvailabilityVersions.h\0";
pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 260400;
pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1;
pub const __DARWIN_WCHAR_MIN: i32 = -2147483648;
pub const _FORTIFY_SOURCE: u32 = 2;
pub const USE_CLANG_STDDEF: u32 = 0;
pub const PRIdSIZE: &[u8; 3] = b"zd\0";
pub const PRIuSIZE: &[u8; 3] = b"zu\0";
pub const PRIxSIZE: &[u8; 3] = b"zx\0";
pub const DDSRT_RFC3339STRLEN: u32 = 25;
pub const DDS_RETCODE_OK: u32 = 0;
pub const DDS_RETCODE_ERROR: i32 = -1;
pub const DDS_RETCODE_UNSUPPORTED: i32 = -2;
pub const DDS_RETCODE_BAD_PARAMETER: i32 = -3;
pub const DDS_RETCODE_PRECONDITION_NOT_MET: i32 = -4;
pub const DDS_RETCODE_OUT_OF_RESOURCES: i32 = -5;
pub const DDS_RETCODE_NOT_ENABLED: i32 = -6;
pub const DDS_RETCODE_IMMUTABLE_POLICY: i32 = -7;
pub const DDS_RETCODE_INCONSISTENT_POLICY: i32 = -8;
pub const DDS_RETCODE_ALREADY_DELETED: i32 = -9;
pub const DDS_RETCODE_TIMEOUT: i32 = -10;
pub const DDS_RETCODE_NO_DATA: i32 = -11;
pub const DDS_RETCODE_ILLEGAL_OPERATION: i32 = -12;
pub const DDS_RETCODE_NOT_ALLOWED_BY_SECURITY: i32 = -13;
pub const DDS_XRETCODE_BASE: i32 = -50;
pub const USE_CLANG_STDARG: u32 = 0;
pub const RENAME_SECLUDE: u32 = 1;
pub const RENAME_SWAP: u32 = 2;
pub const RENAME_EXCL: u32 = 4;
pub const RENAME_RESERVED1: u32 = 8;
pub const RENAME_NOFOLLOW_ANY: u32 = 16;
pub const RENAME_RESOLVE_BENEATH: u32 = 32;
pub const SEEK_SET: u32 = 0;
pub const SEEK_CUR: u32 = 1;
pub const SEEK_END: u32 = 2;
pub const SEEK_HOLE: u32 = 3;
pub const SEEK_DATA: u32 = 4;
pub const __SLBF: u32 = 1;
pub const __SNBF: u32 = 2;
pub const __SRD: u32 = 4;
pub const __SWR: u32 = 8;
pub const __SRW: u32 = 16;
pub const __SEOF: u32 = 32;
pub const __SERR: u32 = 64;
pub const __SMBF: u32 = 128;
pub const __SAPP: u32 = 256;
pub const __SSTR: u32 = 512;
pub const __SOPT: u32 = 1024;
pub const __SNPT: u32 = 2048;
pub const __SOFF: u32 = 4096;
pub const __SMOD: u32 = 8192;
pub const __SALC: u32 = 16384;
pub const __SIGN: u32 = 32768;
pub const _IOFBF: u32 = 0;
pub const _IOLBF: u32 = 1;
pub const _IONBF: u32 = 2;
pub const BUFSIZ: u32 = 1024;
pub const EOF: i32 = -1;
pub const FOPEN_MAX: u32 = 20;
pub const FILENAME_MAX: u32 = 1024;
pub const P_tmpdir: &[u8; 10] = b"/var/tmp/\0";
pub const L_tmpnam: u32 = 1024;
pub const TMP_MAX: u32 = 308915776;
pub const L_ctermid: u32 = 1024;
pub const _USE_FORTIFY_LEVEL: u32 = 2;
pub const DDS_LC_FATAL: u32 = 1;
pub const DDS_LC_ERROR: u32 = 2;
pub const DDS_LC_WARNING: u32 = 4;
pub const DDS_LC_INFO: u32 = 8;
pub const DDS_LC_CONFIG: u32 = 16;
pub const DDS_LC_DISCOVERY: u32 = 32;
pub const DDS_LC_DATA: u32 = 64;
pub const DDS_LC_TRACE: u32 = 128;
pub const DDS_LC_RADMIN: u32 = 256;
pub const DDS_LC_TIMING: u32 = 512;
pub const DDS_LC_TRAFFIC: u32 = 1024;
pub const DDS_LC_TOPIC: u32 = 2048;
pub const DDS_LC_TCP: u32 = 4096;
pub const DDS_LC_PLIST: u32 = 8192;
pub const DDS_LC_WHC: u32 = 16384;
pub const DDS_LC_THROTTLE: u32 = 32768;
pub const DDS_LC_RHC: u32 = 65536;
pub const DDS_LC_CONTENT: u32 = 131072;
pub const DDS_LC_MALFORMED: u32 = 262144;
pub const DDS_LC_SYSDEF: u32 = 524288;
pub const DDS_LC_QOSPROV: u32 = 1048576;
pub const DDS_LC_USER1: u32 = 536870912;
pub const DDS_LC_USER2: u32 = 1073741824;
pub const DDS_LC_USER3: u32 = 2147483648;
pub const DDS_LC_USER: u32 = 3758096384;
pub const DDS_LC_ALL: u32 = 3758266111;
pub const DDS_LOG_MASK: u32 = 15;
pub const DDS_TRACE_MASK: i32 = -16;
pub const DDS_FREE_KEY_BIT: u32 = 1;
pub const DDS_FREE_CONTENTS_BIT: u32 = 2;
pub const DDS_FREE_ALL_BIT: u32 = 4;
pub const DDS_OP_MASK: u32 = 4278190080;
pub const DDS_OP_TYPE_FLAGS_MASK: u32 = 8388608;
pub const DDS_OP_TYPE_MASK: u32 = 8323072;
pub const DDS_OP_SUBTYPE_MASK: u32 = 65280;
pub const DDS_OP_JMP_MASK: u32 = 65535;
pub const DDS_OP_FLAGS_MASK: u32 = 255;
pub const DDS_JEQ_TYPE_FLAGS_MASK: u32 = 8388608;
pub const DDS_JEQ_TYPE_MASK: u32 = 8323072;
pub const DDS_PLM_FLAGS_MASK: u32 = 16711680;
pub const DDS_KOF_OFFSET_MASK: u32 = 65535;
pub const DDS_MID_OFFSET_MASK: u32 = 65535;
pub const DDS_OP_FLAG_EXT: u32 = 8388608;
pub const DDS_OP_FLAG_KEY: u32 = 1;
pub const DDS_OP_FLAG_DEF: u32 = 2;
pub const DDS_OP_FLAG_FP: u32 = 2;
pub const DDS_OP_FLAG_SGN: u32 = 4;
pub const DDS_OP_FLAG_MU: u32 = 8;
pub const DDS_OP_FLAG_BASE: u32 = 16;
pub const DDS_OP_FLAG_OPT: u32 = 32;
pub const DDS_OP_FLAG_SZ_SHIFT: u32 = 6;
pub const DDS_OP_FLAG_SZ_MASK: u32 = 192;
pub const DDS_TOPIC_NO_OPTIMIZE: u32 = 1;
pub const DDS_TOPIC_FIXED_KEY: u32 = 2;
pub const DDS_TOPIC_CONTAINS_UNION: u32 = 4;
pub const DDS_TOPIC_FIXED_SIZE: u32 = 16;
pub const DDS_TOPIC_FIXED_KEY_XCDR2: u32 = 32;
pub const DDS_TOPIC_XTYPES_METADATA: u32 = 64;
pub const DDS_TOPIC_RESTRICT_DATA_REPRESENTATION: u32 = 128;
pub const DDS_TOPIC_KEY_MUTABLE: u32 = 256;
pub const DDS_TOPIC_KEY_APPENDABLE: u32 = 512;
pub const DDS_TOPIC_FIXED_KEY_XCDR2_KEYHASH: u32 = 1024;
pub const DDS_TOPIC_KEY_SEQUENCE: u32 = 2048;
pub const DDS_TOPIC_KEY_ARRAY_NONPRIM: u32 = 4096;
pub const DDS_FIXED_KEY_MAX_SIZE: u32 = 16;
pub const DDS_DATA_REPRESENTATION_XCDR1: u32 = 0;
pub const DDS_DATA_REPRESENTATION_XML: u32 = 1;
pub const DDS_DATA_REPRESENTATION_XCDR2: u32 = 2;
pub const DDS_DATA_REPRESENTATION_FLAG_XCDR1: u32 = 1;
pub const DDS_DATA_REPRESENTATION_FLAG_XML: u32 = 2;
pub const DDS_DATA_REPRESENTATION_FLAG_XCDR2: u32 = 4;
pub const DDS_DATA_REPRESENTATION_RESTRICT_DEFAULT: u32 = 5;
pub const DDS_READ_SAMPLE_STATE: u32 = 1;
pub const DDS_NOT_READ_SAMPLE_STATE: u32 = 2;
pub const DDS_ANY_SAMPLE_STATE: u32 = 3;
pub const DDS_NEW_VIEW_STATE: u32 = 4;
pub const DDS_NOT_NEW_VIEW_STATE: u32 = 8;
pub const DDS_ANY_VIEW_STATE: u32 = 12;
pub const DDS_ALIVE_INSTANCE_STATE: u32 = 16;
pub const DDS_NOT_ALIVE_DISPOSED_INSTANCE_STATE: u32 = 32;
pub const DDS_NOT_ALIVE_NO_WRITERS_INSTANCE_STATE: u32 = 64;
pub const DDS_ANY_INSTANCE_STATE: u32 = 112;
pub const DDS_ANY_STATE: u32 = 127;
pub const DDS_HANDLE_NIL: u32 = 0;
pub const DDS_ENTITY_NIL: u32 = 0;
pub const DDS_LENGTH_UNLIMITED: i32 = -1;
pub const DDS_HAS_PROPERTY_LIST_QOS: u32 = 1;
pub const __DARWIN_CLK_TCK: u32 = 100;
pub const USE_CLANG_LIMITS: u32 = 0;
pub const MB_LEN_MAX: u32 = 6;
pub const CLK_TCK: u32 = 100;
pub const CHAR_BIT: u32 = 8;
pub const SCHAR_MAX: u32 = 127;
pub const SCHAR_MIN: i32 = -128;
pub const UCHAR_MAX: u32 = 255;
pub const CHAR_MAX: u32 = 127;
pub const CHAR_MIN: i32 = -128;
pub const USHRT_MAX: u32 = 65535;
pub const SHRT_MAX: u32 = 32767;
pub const SHRT_MIN: i32 = -32768;
pub const UINT_MAX: u32 = 4294967295;
pub const INT_MAX: u32 = 2147483647;
pub const INT_MIN: i32 = -2147483648;
pub const ULONG_MAX: i32 = -1;
pub const LONG_MAX: u64 = 9223372036854775807;
pub const LONG_MIN: i64 = -9223372036854775808;
pub const ULLONG_MAX: i32 = -1;
pub const LLONG_MAX: u64 = 9223372036854775807;
pub const LLONG_MIN: i64 = -9223372036854775808;
pub const LONG_BIT: u32 = 64;
pub const SSIZE_MAX: u64 = 9223372036854775807;
pub const WORD_BIT: u32 = 32;
pub const SIZE_T_MAX: i32 = -1;
pub const UQUAD_MAX: i32 = -1;
pub const QUAD_MAX: u64 = 9223372036854775807;
pub const QUAD_MIN: i64 = -9223372036854775808;
pub const ARG_MAX: u32 = 1048576;
pub const CHILD_MAX: u32 = 266;
pub const GID_MAX: u32 = 2147483647;
pub const LINK_MAX: u32 = 32767;
pub const MAX_CANON: u32 = 1024;
pub const MAX_INPUT: u32 = 1024;
pub const NAME_MAX: u32 = 255;
pub const NGROUPS_MAX: u32 = 16;
pub const UID_MAX: u32 = 2147483647;
pub const OPEN_MAX: u32 = 10240;
pub const PATH_MAX: u32 = 1024;
pub const PIPE_BUF: u32 = 512;
pub const BC_BASE_MAX: u32 = 99;
pub const BC_DIM_MAX: u32 = 2048;
pub const BC_SCALE_MAX: u32 = 99;
pub const BC_STRING_MAX: u32 = 1000;
pub const CHARCLASS_NAME_MAX: u32 = 14;
pub const COLL_WEIGHTS_MAX: u32 = 2;
pub const EQUIV_CLASS_MAX: u32 = 2;
pub const EXPR_NEST_MAX: u32 = 32;
pub const LINE_MAX: u32 = 2048;
pub const RE_DUP_MAX: u32 = 255;
pub const NZERO: u32 = 20;
pub const _POSIX_ARG_MAX: u32 = 4096;
pub const _POSIX_CHILD_MAX: u32 = 25;
pub const _POSIX_LINK_MAX: u32 = 8;
pub const _POSIX_MAX_CANON: u32 = 255;
pub const _POSIX_MAX_INPUT: u32 = 255;
pub const _POSIX_NAME_MAX: u32 = 14;
pub const _POSIX_NGROUPS_MAX: u32 = 8;
pub const _POSIX_OPEN_MAX: u32 = 20;
pub const _POSIX_PATH_MAX: u32 = 256;
pub const _POSIX_PIPE_BUF: u32 = 512;
pub const _POSIX_SSIZE_MAX: u32 = 32767;
pub const _POSIX_STREAM_MAX: u32 = 8;
pub const _POSIX_TZNAME_MAX: u32 = 6;
pub const _POSIX2_BC_BASE_MAX: u32 = 99;
pub const _POSIX2_BC_DIM_MAX: u32 = 2048;
pub const _POSIX2_BC_SCALE_MAX: u32 = 99;
pub const _POSIX2_BC_STRING_MAX: u32 = 1000;
pub const _POSIX2_EQUIV_CLASS_MAX: u32 = 2;
pub const _POSIX2_EXPR_NEST_MAX: u32 = 32;
pub const _POSIX2_LINE_MAX: u32 = 2048;
pub const _POSIX2_RE_DUP_MAX: u32 = 255;
pub const _POSIX_AIO_LISTIO_MAX: u32 = 2;
pub const _POSIX_AIO_MAX: u32 = 1;
pub const _POSIX_DELAYTIMER_MAX: u32 = 32;
pub const _POSIX_MQ_OPEN_MAX: u32 = 8;
pub const _POSIX_MQ_PRIO_MAX: u32 = 32;
pub const _POSIX_RTSIG_MAX: u32 = 8;
pub const _POSIX_SEM_NSEMS_MAX: u32 = 256;
pub const _POSIX_SEM_VALUE_MAX: u32 = 32767;
pub const _POSIX_SIGQUEUE_MAX: u32 = 32;
pub const _POSIX_TIMER_MAX: u32 = 32;
pub const _POSIX_CLOCKRES_MIN: u32 = 20000000;
pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
pub const _POSIX_THREAD_KEYS_MAX: u32 = 128;
pub const _POSIX_THREAD_THREADS_MAX: u32 = 64;
pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
pub const PTHREAD_KEYS_MAX: u32 = 512;
pub const PTHREAD_STACK_MIN: u32 = 16384;
pub const _POSIX_HOST_NAME_MAX: u32 = 255;
pub const _POSIX_LOGIN_NAME_MAX: u32 = 9;
pub const _POSIX_SS_REPL_MAX: u32 = 4;
pub const _POSIX_SYMLINK_MAX: u32 = 255;
pub const _POSIX_SYMLOOP_MAX: u32 = 8;
pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30;
pub const _POSIX_TRACE_NAME_MAX: u32 = 8;
pub const _POSIX_TRACE_SYS_MAX: u32 = 8;
pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32;
pub const _POSIX_TTY_NAME_MAX: u32 = 9;
pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14;
pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2;
pub const _POSIX_RE_DUP_MAX: u32 = 255;
pub const OFF_MIN: i64 = -9223372036854775808;
pub const OFF_MAX: u64 = 9223372036854775807;
pub const PASS_MAX: u32 = 128;
pub const NL_ARGMAX: u32 = 9;
pub const NL_LANGMAX: u32 = 14;
pub const NL_MSGMAX: u32 = 32767;
pub const NL_NMAX: u32 = 1;
pub const NL_SETMAX: u32 = 255;
pub const NL_TEXTMAX: u32 = 2048;
pub const _XOPEN_IOV_MAX: u32 = 16;
pub const IOV_MAX: u32 = 1024;
pub const _XOPEN_NAME_MAX: u32 = 255;
pub const _XOPEN_PATH_MAX: u32 = 1024;
pub const DDS_ERR_NR_MASK: u32 = 255;
pub const DDS_ERR_LINE_MASK: u32 = 4194048;
pub const DDS_ERR_FILE_ID_MASK: u32 = 2143289344;
pub const DDS_CHECK_REPORT: u32 = 1;
pub const DDS_CHECK_FAIL: u32 = 2;
pub const DDS_CHECK_EXIT: u32 = 4;
pub const DDS_DYNAMIC_MEMBER_ID_INVALID: u32 = 251658240;
pub const DDS_DYNAMIC_MEMBER_ID_AUTO: u32 = 251658240;
pub const DDS_DYNAMIC_MEMBER_INDEX_START: u32 = 0;
pub const DDS_DYNAMIC_MEMBER_INDEX_END: u32 = 4294967295;
pub const DDS_DYNAMIC_BITMASK_POSITION_AUTO: u32 = 65535;
pub const DDS_HAS_DDSI_SERTYPE: u32 = 1;
pub const DDS_HAS_CREATE_TOPIC_SERTYPE: u32 = 1;
pub const DDS_HAS_READCDR: u32 = 1;
pub const __DARWIN_NSIG: u32 = 32;
pub const NSIG: u32 = 32;
pub const _ARM_SIGNAL_: u32 = 1;
pub const SIGHUP: u32 = 1;
pub const SIGINT: u32 = 2;
pub const SIGQUIT: u32 = 3;
pub const SIGILL: u32 = 4;
pub const SIGTRAP: u32 = 5;
pub const SIGABRT: u32 = 6;
pub const SIGIOT: u32 = 6;
pub const SIGEMT: u32 = 7;
pub const SIGFPE: u32 = 8;
pub const SIGKILL: u32 = 9;
pub const SIGBUS: u32 = 10;
pub const SIGSEGV: u32 = 11;
pub const SIGSYS: u32 = 12;
pub const SIGPIPE: u32 = 13;
pub const SIGALRM: u32 = 14;
pub const SIGTERM: u32 = 15;
pub const SIGURG: u32 = 16;
pub const SIGSTOP: u32 = 17;
pub const SIGTSTP: u32 = 18;
pub const SIGCONT: u32 = 19;
pub const SIGCHLD: u32 = 20;
pub const SIGTTIN: u32 = 21;
pub const SIGTTOU: u32 = 22;
pub const SIGIO: u32 = 23;
pub const SIGXCPU: u32 = 24;
pub const SIGXFSZ: u32 = 25;
pub const SIGVTALRM: u32 = 26;
pub const SIGPROF: u32 = 27;
pub const SIGWINCH: u32 = 28;
pub const SIGINFO: u32 = 29;
pub const SIGUSR1: u32 = 30;
pub const SIGUSR2: u32 = 31;
pub const __DARWIN_OPAQUE_ARM_THREAD_STATE64: u32 = 0;
pub const SIGEV_NONE: u32 = 0;
pub const SIGEV_SIGNAL: u32 = 1;
pub const SIGEV_THREAD: u32 = 3;
pub const SIGEV_KEVENT: u32 = 4;
pub const ILL_NOOP: u32 = 0;
pub const ILL_ILLOPC: u32 = 1;
pub const ILL_ILLTRP: u32 = 2;
pub const ILL_PRVOPC: u32 = 3;
pub const ILL_ILLOPN: u32 = 4;
pub const ILL_ILLADR: u32 = 5;
pub const ILL_PRVREG: u32 = 6;
pub const ILL_COPROC: u32 = 7;
pub const ILL_BADSTK: u32 = 8;
pub const FPE_NOOP: u32 = 0;
pub const FPE_FLTDIV: u32 = 1;
pub const FPE_FLTOVF: u32 = 2;
pub const FPE_FLTUND: u32 = 3;
pub const FPE_FLTRES: u32 = 4;
pub const FPE_FLTINV: u32 = 5;
pub const FPE_FLTSUB: u32 = 6;
pub const FPE_INTDIV: u32 = 7;
pub const FPE_INTOVF: u32 = 8;
pub const SEGV_NOOP: u32 = 0;
pub const SEGV_MAPERR: u32 = 1;
pub const SEGV_ACCERR: u32 = 2;
pub const BUS_NOOP: u32 = 0;
pub const BUS_ADRALN: u32 = 1;
pub const BUS_ADRERR: u32 = 2;
pub const BUS_OBJERR: u32 = 3;
pub const TRAP_BRKPT: u32 = 1;
pub const TRAP_TRACE: u32 = 2;
pub const CLD_NOOP: u32 = 0;
pub const CLD_EXITED: u32 = 1;
pub const CLD_KILLED: u32 = 2;
pub const CLD_DUMPED: u32 = 3;
pub const CLD_TRAPPED: u32 = 4;
pub const CLD_STOPPED: u32 = 5;
pub const CLD_CONTINUED: u32 = 6;
pub const POLL_IN: u32 = 1;
pub const POLL_OUT: u32 = 2;
pub const POLL_MSG: u32 = 3;
pub const POLL_ERR: u32 = 4;
pub const POLL_PRI: u32 = 5;
pub const POLL_HUP: u32 = 6;
pub const SA_ONSTACK: u32 = 1;
pub const SA_RESTART: u32 = 2;
pub const SA_RESETHAND: u32 = 4;
pub const SA_NOCLDSTOP: u32 = 8;
pub const SA_NODEFER: u32 = 16;
pub const SA_NOCLDWAIT: u32 = 32;
pub const SA_SIGINFO: u32 = 64;
pub const SA_USERTRAMP: u32 = 256;
pub const SA_64REGSET: u32 = 512;
pub const SA_USERSPACE_MASK: u32 = 127;
pub const SIG_BLOCK: u32 = 1;
pub const SIG_UNBLOCK: u32 = 2;
pub const SIG_SETMASK: u32 = 3;
pub const SI_USER: u32 = 65537;
pub const SI_QUEUE: u32 = 65538;
pub const SI_TIMER: u32 = 65539;
pub const SI_ASYNCIO: u32 = 65540;
pub const SI_MESGQ: u32 = 65541;
pub const SS_ONSTACK: u32 = 1;
pub const SS_DISABLE: u32 = 4;
pub const MINSIGSTKSZ: u32 = 32768;
pub const SIGSTKSZ: u32 = 131072;
pub const SV_ONSTACK: u32 = 1;
pub const SV_INTERRUPT: u32 = 2;
pub const SV_RESETHAND: u32 = 4;
pub const SV_NODEFER: u32 = 16;
pub const SV_NOCLDSTOP: u32 = 8;
pub const SV_SIGINFO: u32 = 64;
pub const PRIO_PROCESS: u32 = 0;
pub const PRIO_PGRP: u32 = 1;
pub const PRIO_USER: u32 = 2;
pub const PRIO_DARWIN_THREAD: u32 = 3;
pub const PRIO_DARWIN_PROCESS: u32 = 4;
pub const PRIO_MIN: i32 = -20;
pub const PRIO_MAX: u32 = 20;
pub const PRIO_DARWIN_BG: u32 = 4096;
pub const PRIO_DARWIN_NONUI: u32 = 4097;
pub const RUSAGE_SELF: u32 = 0;
pub const RUSAGE_CHILDREN: i32 = -1;
pub const RUSAGE_INFO_V0: u32 = 0;
pub const RUSAGE_INFO_V1: u32 = 1;
pub const RUSAGE_INFO_V2: u32 = 2;
pub const RUSAGE_INFO_V3: u32 = 3;
pub const RUSAGE_INFO_V4: u32 = 4;
pub const RUSAGE_INFO_V5: u32 = 5;
pub const RUSAGE_INFO_V6: u32 = 6;
pub const RUSAGE_INFO_CURRENT: u32 = 6;
pub const RU_PROC_RUNS_RESLIDE: u32 = 1;
pub const RLIMIT_CPU: u32 = 0;
pub const RLIMIT_FSIZE: u32 = 1;
pub const RLIMIT_DATA: u32 = 2;
pub const RLIMIT_STACK: u32 = 3;
pub const RLIMIT_CORE: u32 = 4;
pub const RLIMIT_AS: u32 = 5;
pub const RLIMIT_RSS: u32 = 5;
pub const RLIMIT_MEMLOCK: u32 = 6;
pub const RLIMIT_NPROC: u32 = 7;
pub const RLIMIT_NOFILE: u32 = 8;
pub const RLIM_NLIMITS: u32 = 9;
pub const _RLIMIT_POSIX_FLAG: u32 = 4096;
pub const RLIMIT_WAKEUPS_MONITOR: u32 = 1;
pub const RLIMIT_CPU_USAGE_MONITOR: u32 = 2;
pub const RLIMIT_THREAD_CPULIMITS: u32 = 3;
pub const RLIMIT_FOOTPRINT_INTERVAL: u32 = 4;
pub const WAKEMON_ENABLE: u32 = 1;
pub const WAKEMON_DISABLE: u32 = 2;
pub const WAKEMON_GET_PARAMS: u32 = 4;
pub const WAKEMON_SET_DEFAULTS: u32 = 8;
pub const WAKEMON_MAKE_FATAL: u32 = 16;
pub const CPUMON_MAKE_FATAL: u32 = 4096;
pub const FOOTPRINT_INTERVAL_RESET: u32 = 1;
pub const IOPOL_TYPE_DISK: u32 = 0;
pub const IOPOL_TYPE_VFS_ATIME_UPDATES: u32 = 2;
pub const IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES: u32 = 3;
pub const IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME: u32 = 4;
pub const IOPOL_TYPE_VFS_TRIGGER_RESOLVE: u32 = 5;
pub const IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION: u32 = 6;
pub const IOPOL_TYPE_VFS_IGNORE_PERMISSIONS: u32 = 7;
pub const IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE: u32 = 8;
pub const IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES: u32 = 9;
pub const IOPOL_TYPE_VFS_DISALLOW_RW_FOR_O_EVTONLY: u32 = 10;
pub const IOPOL_TYPE_VFS_ENTITLED_RESERVE_ACCESS: u32 = 14;
pub const IOPOL_SCOPE_PROCESS: u32 = 0;
pub const IOPOL_SCOPE_THREAD: u32 = 1;
pub const IOPOL_SCOPE_DARWIN_BG: u32 = 2;
pub const IOPOL_DEFAULT: u32 = 0;
pub const IOPOL_IMPORTANT: u32 = 1;
pub const IOPOL_PASSIVE: u32 = 2;
pub const IOPOL_THROTTLE: u32 = 3;
pub const IOPOL_UTILITY: u32 = 4;
pub const IOPOL_STANDARD: u32 = 5;
pub const IOPOL_APPLICATION: u32 = 5;
pub const IOPOL_NORMAL: u32 = 1;
pub const IOPOL_ATIME_UPDATES_DEFAULT: u32 = 0;
pub const IOPOL_ATIME_UPDATES_OFF: u32 = 1;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT: u32 = 0;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_OFF: u32 = 1;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_ON: u32 = 2;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_ORIG: u32 = 4;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_BASIC_MASK: u32 = 3;
pub const IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT: u32 = 0;
pub const IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME: u32 = 1;
pub const IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT: u32 = 0;
pub const IOPOL_VFS_TRIGGER_RESOLVE_OFF: u32 = 1;
pub const IOPOL_VFS_CONTENT_PROTECTION_DEFAULT: u32 = 0;
pub const IOPOL_VFS_CONTENT_PROTECTION_IGNORE: u32 = 1;
pub const IOPOL_VFS_IGNORE_PERMISSIONS_OFF: u32 = 0;
pub const IOPOL_VFS_IGNORE_PERMISSIONS_ON: u32 = 1;
pub const IOPOL_VFS_SKIP_MTIME_UPDATE_OFF: u32 = 0;
pub const IOPOL_VFS_SKIP_MTIME_UPDATE_ON: u32 = 1;
pub const IOPOL_VFS_SKIP_MTIME_UPDATE_IGNORE: u32 = 2;
pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF: u32 = 0;
pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON: u32 = 1;
pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_DEFAULT: u32 = 0;
pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_ON: u32 = 1;
pub const IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_DEFAULT: u32 = 0;
pub const IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_ON: u32 = 1;
pub const IOPOL_VFS_ENTITLED_RESERVE_ACCESS_OFF: u32 = 0;
pub const IOPOL_VFS_ENTITLED_RESERVE_ACCESS_ON: u32 = 1;
pub const WNOHANG: u32 = 1;
pub const WUNTRACED: u32 = 2;
pub const WCOREFLAG: u32 = 128;
pub const _WSTOPPED: u32 = 127;
pub const WEXITED: u32 = 4;
pub const WSTOPPED: u32 = 8;
pub const WCONTINUED: u32 = 16;
pub const WNOWAIT: u32 = 32;
pub const WAIT_ANY: i32 = -1;
pub const WAIT_MYPGRP: u32 = 0;
pub const _QUAD_HIGHWORD: u32 = 1;
pub const _QUAD_LOWWORD: u32 = 0;
pub const __DARWIN_LITTLE_ENDIAN: u32 = 1234;
pub const __DARWIN_BIG_ENDIAN: u32 = 4321;
pub const __DARWIN_PDP_ENDIAN: u32 = 3412;
pub const LITTLE_ENDIAN: u32 = 1234;
pub const BIG_ENDIAN: u32 = 4321;
pub const PDP_ENDIAN: u32 = 3412;
pub const __DARWIN_BYTE_ORDER: u32 = 1234;
pub const BYTE_ORDER: u32 = 1234;
pub const EXIT_FAILURE: u32 = 1;
pub const EXIT_SUCCESS: u32 = 0;
pub const RAND_MAX: u32 = 2147483647;
pub const _MALLOC_TYPE_MALLOC_BACKDEPLOY_PUBLIC: u32 = 1;
pub const DDSRT_LITTLE_ENDIAN: u32 = 1;
pub const DDSRT_BIG_ENDIAN: u32 = 2;
pub const DDSRT_ENDIAN: u32 = 1;
pub const DDS_DATA_TYPE_CONTAINS_UNION: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_BITMASK: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_ENUM: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_STRUCT: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_STRING: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_BSTRING: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_WSTRING: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_SEQUENCE: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_BSEQUENCE: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_ARRAY: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_OPTIONAL: u32 = 1024;
pub const DDS_DATA_TYPE_CONTAINS_EXTERNAL: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_BWSTRING: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_WCHAR: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_APPENDABLE: u32 = 32768;
pub const DDS_DATA_TYPE_CONTAINS_MUTABLE: u32 = 65536;
pub const DDS_DATA_TYPE_DEFAULTS_TO_XCDR2: u32 = 1024;
pub const DDS_DATA_TYPE_DEFAULTS_TO_XCDR2_MASK: u32 = 99328;
pub const DDS_DATA_TYPE_CONTAINS_KEY: u32 = 4096;
pub const DDS_DATA_TYPE_IS_MEMCPY_SAFE: i64 = -9223372036854775808;
pub const DDS_CDRSTREAM_MAX_NESTING_DEPTH: u32 = 32;
pub const DDSI_RTPS_CDR_ENC_VERSION_UNDEF: u32 = 0;
pub const DDSI_RTPS_CDR_ENC_VERSION_1: u32 = 1;
pub const DDSI_RTPS_CDR_ENC_VERSION_2: u32 = 2;
pub const DDSI_RTPS_CDR_ENC_FORMAT_PLAIN: u32 = 0;
pub const DDSI_RTPS_CDR_ENC_FORMAT_DELIMITED: u32 = 1;
pub const DDSI_RTPS_CDR_ENC_FORMAT_PL: u32 = 2;
pub const DDS_CDR_HDR_PADDING_MASK: u32 = 3;
pub const DDS_XCDR1_PL_SHORT_MAX_PARAM_ID: u32 = 16128;
pub const DDS_XCDR1_PL_SHORT_MAX_PARAM_LEN: u32 = 65535;
pub const DDS_XCDR1_PL_SHORT_PID_EXTENDED: u32 = 16129;
pub const DDS_XCDR1_PL_SHORT_PID_LIST_END: u32 = 16130;
pub const DDS_XCDR1_PL_SHORT_PID_EXT_LEN: u32 = 8;
pub const DDS_XCDR1_PL_SHORT_FLAG_IMPL_EXT: u32 = 32768;
pub const DDS_XCDR1_PL_SHORT_FLAG_MU: u32 = 16384;
pub const DDS_XCDR1_PL_SHORT_PID_MASK: u32 = 49151;
pub const DDS_XCDR1_PL_LONG_FLAG_IMPL_EXT: u32 = 2147483648;
pub const DDS_XCDR1_PL_LONG_FLAG_MU: u32 = 1073741824;
pub const DDS_XCDR1_PL_LONG_UNSPECIFIED1: u32 = 536870912;
pub const DDS_XCDR1_PL_LONG_UNSPECIFIED2: u32 = 268435456;
pub const DDS_XCDR1_PL_LONG_MID_MASK: u32 = 2415919103;
pub const DDS_CDR_CALCULATED_FLAGS: u32 = 7970;
pub const DDS_PARTICIPANT_FLAGS_NO_DISCOVERY: u32 = 3;
pub const DDSRT_64BIT: u32 = 1;
pub const DDSRT_HAVE_ATOMIC64: u32 = 1;
pub const DDSRT_HAVE_ATOMIC_LIFO: u32 = 1;
pub const DDS_MAX_PSMX_INSTANCES: u32 = 8;
pub const DDS_PSMX_FEATURE_SHARED_MEMORY: u32 = 1;
pub const DDS_PSMX_FEATURE_ZERO_COPY: u32 = 2;
pub const DDS_RHC_NO_STATE_MASK_SET: u32 = 128;
pub type wchar_t = ::std::ffi::c_int;
pub type max_align_t = f64;
pub type int_least8_t = i8;
pub type int_least16_t = i16;
pub type int_least32_t = i32;
pub type int_least64_t = i64;
pub type uint_least8_t = u8;
pub type uint_least16_t = u16;
pub type uint_least32_t = u32;
pub type uint_least64_t = u64;
pub type int_fast8_t = i8;
pub type int_fast16_t = i16;
pub type int_fast32_t = i32;
pub type int_fast64_t = i64;
pub type uint_fast8_t = u8;
pub type uint_fast16_t = u16;
pub type uint_fast32_t = u32;
pub type uint_fast64_t = u64;
pub type __int8_t = ::std::ffi::c_schar;
pub type __uint8_t = ::std::ffi::c_uchar;
pub type __int16_t = ::std::ffi::c_short;
pub type __uint16_t = ::std::ffi::c_ushort;
pub type __int32_t = ::std::ffi::c_int;
pub type __uint32_t = ::std::ffi::c_uint;
pub type __int64_t = ::std::ffi::c_longlong;
pub type __uint64_t = ::std::ffi::c_ulonglong;
pub type __darwin_intptr_t = ::std::ffi::c_long;
pub type __darwin_natural_t = ::std::ffi::c_uint;
pub type __darwin_ct_rune_t = ::std::ffi::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __mbstate_t {
pub __mbstate8: [::std::ffi::c_char; 128usize],
pub _mbstateL: ::std::ffi::c_longlong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __mbstate_t"][::std::mem::size_of::<__mbstate_t>() - 128usize];
["Alignment of __mbstate_t"][::std::mem::align_of::<__mbstate_t>() - 8usize];
["Offset of field: __mbstate_t::__mbstate8"]
[::std::mem::offset_of!(__mbstate_t, __mbstate8) - 0usize];
["Offset of field: __mbstate_t::_mbstateL"]
[::std::mem::offset_of!(__mbstate_t, _mbstateL) - 0usize];
};
impl Default for __mbstate_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type __darwin_mbstate_t = __mbstate_t;
pub type __darwin_ptrdiff_t = ::std::ffi::c_long;
pub type __darwin_size_t = ::std::ffi::c_ulong;
pub type __darwin_va_list = __builtin_va_list;
pub type __darwin_wchar_t = ::std::ffi::c_int;
pub type __darwin_rune_t = __darwin_wchar_t;
pub type __darwin_wint_t = ::std::ffi::c_int;
pub type __darwin_clock_t = ::std::ffi::c_ulong;
pub type __darwin_socklen_t = __uint32_t;
pub type __darwin_ssize_t = ::std::ffi::c_long;
pub type __darwin_time_t = ::std::ffi::c_long;
pub type __darwin_blkcnt_t = __int64_t;
pub type __darwin_blksize_t = __int32_t;
pub type __darwin_dev_t = __int32_t;
pub type __darwin_fsblkcnt_t = ::std::ffi::c_uint;
pub type __darwin_fsfilcnt_t = ::std::ffi::c_uint;
pub type __darwin_gid_t = __uint32_t;
pub type __darwin_id_t = __uint32_t;
pub type __darwin_ino64_t = __uint64_t;
pub type __darwin_ino_t = __darwin_ino64_t;
pub type __darwin_mach_port_name_t = __darwin_natural_t;
pub type __darwin_mach_port_t = __darwin_mach_port_name_t;
pub type __darwin_mode_t = __uint16_t;
pub type __darwin_off_t = __int64_t;
pub type __darwin_pid_t = __int32_t;
pub type __darwin_sigset_t = __uint32_t;
pub type __darwin_suseconds_t = __int32_t;
pub type __darwin_uid_t = __uint32_t;
pub type __darwin_useconds_t = __uint32_t;
pub type __darwin_uuid_t = [::std::ffi::c_uchar; 16usize];
pub type __darwin_uuid_string_t = [::std::ffi::c_char; 37usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_pthread_handler_rec {
pub __routine: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::ffi::c_void)>,
pub __arg: *mut ::std::ffi::c_void,
pub __next: *mut __darwin_pthread_handler_rec,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_pthread_handler_rec"]
[::std::mem::size_of::<__darwin_pthread_handler_rec>() - 24usize];
["Alignment of __darwin_pthread_handler_rec"]
[::std::mem::align_of::<__darwin_pthread_handler_rec>() - 8usize];
["Offset of field: __darwin_pthread_handler_rec::__routine"]
[::std::mem::offset_of!(__darwin_pthread_handler_rec, __routine) - 0usize];
["Offset of field: __darwin_pthread_handler_rec::__arg"]
[::std::mem::offset_of!(__darwin_pthread_handler_rec, __arg) - 8usize];
["Offset of field: __darwin_pthread_handler_rec::__next"]
[::std::mem::offset_of!(__darwin_pthread_handler_rec, __next) - 16usize];
};
impl Default for __darwin_pthread_handler_rec {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_attr_t {
pub __sig: ::std::ffi::c_long,
pub __opaque: [::std::ffi::c_char; 56usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_attr_t"][::std::mem::size_of::<_opaque_pthread_attr_t>() - 64usize];
["Alignment of _opaque_pthread_attr_t"]
[::std::mem::align_of::<_opaque_pthread_attr_t>() - 8usize];
["Offset of field: _opaque_pthread_attr_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_attr_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_attr_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_attr_t, __opaque) - 8usize];
};
impl Default for _opaque_pthread_attr_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_cond_t {
pub __sig: ::std::ffi::c_long,
pub __opaque: [::std::ffi::c_char; 40usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_cond_t"][::std::mem::size_of::<_opaque_pthread_cond_t>() - 48usize];
["Alignment of _opaque_pthread_cond_t"]
[::std::mem::align_of::<_opaque_pthread_cond_t>() - 8usize];
["Offset of field: _opaque_pthread_cond_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_cond_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_cond_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_cond_t, __opaque) - 8usize];
};
impl Default for _opaque_pthread_cond_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _opaque_pthread_condattr_t {
pub __sig: ::std::ffi::c_long,
pub __opaque: [::std::ffi::c_char; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_condattr_t"]
[::std::mem::size_of::<_opaque_pthread_condattr_t>() - 16usize];
["Alignment of _opaque_pthread_condattr_t"]
[::std::mem::align_of::<_opaque_pthread_condattr_t>() - 8usize];
["Offset of field: _opaque_pthread_condattr_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_condattr_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_condattr_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_condattr_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_mutex_t {
pub __sig: ::std::ffi::c_long,
pub __opaque: [::std::ffi::c_char; 56usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_mutex_t"][::std::mem::size_of::<_opaque_pthread_mutex_t>() - 64usize];
["Alignment of _opaque_pthread_mutex_t"]
[::std::mem::align_of::<_opaque_pthread_mutex_t>() - 8usize];
["Offset of field: _opaque_pthread_mutex_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_mutex_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_mutex_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_mutex_t, __opaque) - 8usize];
};
impl Default for _opaque_pthread_mutex_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _opaque_pthread_mutexattr_t {
pub __sig: ::std::ffi::c_long,
pub __opaque: [::std::ffi::c_char; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_mutexattr_t"]
[::std::mem::size_of::<_opaque_pthread_mutexattr_t>() - 16usize];
["Alignment of _opaque_pthread_mutexattr_t"]
[::std::mem::align_of::<_opaque_pthread_mutexattr_t>() - 8usize];
["Offset of field: _opaque_pthread_mutexattr_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_mutexattr_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_mutexattr_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_mutexattr_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _opaque_pthread_once_t {
pub __sig: ::std::ffi::c_long,
pub __opaque: [::std::ffi::c_char; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_once_t"][::std::mem::size_of::<_opaque_pthread_once_t>() - 16usize];
["Alignment of _opaque_pthread_once_t"]
[::std::mem::align_of::<_opaque_pthread_once_t>() - 8usize];
["Offset of field: _opaque_pthread_once_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_once_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_once_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_once_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_rwlock_t {
pub __sig: ::std::ffi::c_long,
pub __opaque: [::std::ffi::c_char; 192usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_rwlock_t"]
[::std::mem::size_of::<_opaque_pthread_rwlock_t>() - 200usize];
["Alignment of _opaque_pthread_rwlock_t"]
[::std::mem::align_of::<_opaque_pthread_rwlock_t>() - 8usize];
["Offset of field: _opaque_pthread_rwlock_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_rwlock_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_rwlock_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_rwlock_t, __opaque) - 8usize];
};
impl Default for _opaque_pthread_rwlock_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _opaque_pthread_rwlockattr_t {
pub __sig: ::std::ffi::c_long,
pub __opaque: [::std::ffi::c_char; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_rwlockattr_t"]
[::std::mem::size_of::<_opaque_pthread_rwlockattr_t>() - 24usize];
["Alignment of _opaque_pthread_rwlockattr_t"]
[::std::mem::align_of::<_opaque_pthread_rwlockattr_t>() - 8usize];
["Offset of field: _opaque_pthread_rwlockattr_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_rwlockattr_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_rwlockattr_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_rwlockattr_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_t {
pub __sig: ::std::ffi::c_long,
pub __cleanup_stack: *mut __darwin_pthread_handler_rec,
pub __opaque: [::std::ffi::c_char; 8176usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_t"][::std::mem::size_of::<_opaque_pthread_t>() - 8192usize];
["Alignment of _opaque_pthread_t"][::std::mem::align_of::<_opaque_pthread_t>() - 8usize];
["Offset of field: _opaque_pthread_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_t::__cleanup_stack"]
[::std::mem::offset_of!(_opaque_pthread_t, __cleanup_stack) - 8usize];
["Offset of field: _opaque_pthread_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_t, __opaque) - 16usize];
};
impl Default for _opaque_pthread_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t;
pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t;
pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t;
pub type __darwin_pthread_key_t = ::std::ffi::c_ulong;
pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t;
pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t;
pub type __darwin_pthread_once_t = _opaque_pthread_once_t;
pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t;
pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t;
pub type __darwin_pthread_t = *mut _opaque_pthread_t;
pub type intmax_t = ::std::ffi::c_long;
pub type uintmax_t = ::std::ffi::c_ulong;
#[doc = " @brief Handle to an entity\n @ingroup entity\n\n A valid entity handle will always have a positive integer value.\n Should the value be negative, it is one of the DDS_RETCODE_*\n error codes."]
pub type dds_entity_t = i32;
#[doc = " @brief Structure of a GUID in any builtin topic sample.\n @ingroup builtintopic"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_builtintopic_guid {
#[doc = "< 16-byte unique identifier"]
pub v: [u8; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_builtintopic_guid"][::std::mem::size_of::<dds_builtintopic_guid>() - 16usize];
["Alignment of dds_builtintopic_guid"]
[::std::mem::align_of::<dds_builtintopic_guid>() - 1usize];
["Offset of field: dds_builtintopic_guid::v"]
[::std::mem::offset_of!(dds_builtintopic_guid, v) - 0usize];
};
#[doc = " @brief Structure of a GUID in any builtin topic sample.\n @ingroup builtintopic"]
pub type dds_builtintopic_guid_t = dds_builtintopic_guid;
#[doc = " @brief Structure of a GUID in any builtin topic sample.\n @ingroup builtintopic\n @ref dds_builtintopic_guid_t is a bit of a weird name for what everyone just calls a GUID,\n so let us try and switch to using the more logical one."]
pub type dds_guid_t = dds_builtintopic_guid;
unsafe extern "C" {
pub fn __assert_rtn(
arg1: *const ::std::ffi::c_char,
arg2: *const ::std::ffi::c_char,
arg3: ::std::ffi::c_int,
arg4: *const ::std::ffi::c_char,
) -> !;
}
pub type rsize_t = ::std::ffi::c_ulong;
pub type __darwin_nl_item = ::std::ffi::c_int;
pub type __darwin_wctrans_t = ::std::ffi::c_int;
pub type __darwin_wctype_t = __uint32_t;
unsafe extern "C" {
pub fn imaxabs(j: intmax_t) -> intmax_t;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct imaxdiv_t {
pub quot: intmax_t,
pub rem: intmax_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of imaxdiv_t"][::std::mem::size_of::<imaxdiv_t>() - 16usize];
["Alignment of imaxdiv_t"][::std::mem::align_of::<imaxdiv_t>() - 8usize];
["Offset of field: imaxdiv_t::quot"][::std::mem::offset_of!(imaxdiv_t, quot) - 0usize];
["Offset of field: imaxdiv_t::rem"][::std::mem::offset_of!(imaxdiv_t, rem) - 8usize];
};
unsafe extern "C" {
pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t;
}
unsafe extern "C" {
pub fn strtoimax(
__nptr: *const ::std::ffi::c_char,
__endptr: *mut *mut ::std::ffi::c_char,
__base: ::std::ffi::c_int,
) -> intmax_t;
}
unsafe extern "C" {
pub fn strtoumax(
__nptr: *const ::std::ffi::c_char,
__endptr: *mut *mut ::std::ffi::c_char,
__base: ::std::ffi::c_int,
) -> uintmax_t;
}
unsafe extern "C" {
pub fn wcstoimax(
__nptr: *const wchar_t,
__endptr: *mut *mut wchar_t,
__base: ::std::ffi::c_int,
) -> intmax_t;
}
unsafe extern "C" {
pub fn wcstoumax(
__nptr: *const wchar_t,
__endptr: *mut *mut wchar_t,
__base: ::std::ffi::c_int,
) -> uintmax_t;
}
#[doc = " Absolute Time definition"]
pub type dds_time_t = i64;
#[doc = " Relative Time definition in nanoseconds"]
pub type dds_duration_t = i64;
unsafe extern "C" {
#[doc = " @brief Get the current time in nanoseconds since the UNIX Epoch.\n\n @returns Current time."]
pub fn dds_time() -> dds_time_t;
}
unsafe extern "C" {
#[doc = " @brief Suspend execution of calling thread until relative time n elapsed.\n\n Execution is suspended for n nanoseconds. Should the call be interrupted,\n the call is re-entered with the remaining time.\n\n @param[in] reltime Relative time in nanoseconds."]
pub fn dds_sleepfor(reltime: dds_duration_t);
}
pub type dds_return_t = i32;
unsafe extern "C" {
#[doc = " @brief Takes the error value and outputs a string corresponding to it.\n\n @param[in] ret Error value to be converted to a string\n\n @returns String corresponding to the error value"]
pub fn dds_strretcode(ret: dds_return_t) -> *const ::std::ffi::c_char;
}
pub type __gnuc_va_list = __builtin_va_list;
pub type va_list = __builtin_va_list;
pub type u_int8_t = ::std::ffi::c_uchar;
pub type u_int16_t = ::std::ffi::c_ushort;
pub type u_int32_t = ::std::ffi::c_uint;
pub type u_int64_t = ::std::ffi::c_ulonglong;
pub type register_t = i64;
pub type user_addr_t = u_int64_t;
pub type user_size_t = u_int64_t;
pub type user_ssize_t = i64;
pub type user_long_t = i64;
pub type user_ulong_t = u_int64_t;
pub type user_time_t = i64;
pub type user_off_t = i64;
pub type syscall_arg_t = u_int64_t;
unsafe extern "C" {
pub fn renameat(
arg1: ::std::ffi::c_int,
arg2: *const ::std::ffi::c_char,
arg3: ::std::ffi::c_int,
arg4: *const ::std::ffi::c_char,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn renamex_np(
arg1: *const ::std::ffi::c_char,
arg2: *const ::std::ffi::c_char,
arg3: ::std::ffi::c_uint,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn renameatx_np(
arg1: ::std::ffi::c_int,
arg2: *const ::std::ffi::c_char,
arg3: ::std::ffi::c_int,
arg4: *const ::std::ffi::c_char,
arg5: ::std::ffi::c_uint,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn printf(arg1: *const ::std::ffi::c_char, ...) -> ::std::ffi::c_int;
}
pub type fpos_t = __darwin_off_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sbuf {
pub _base: *mut ::std::ffi::c_uchar,
pub _size: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __sbuf"][::std::mem::size_of::<__sbuf>() - 16usize];
["Alignment of __sbuf"][::std::mem::align_of::<__sbuf>() - 8usize];
["Offset of field: __sbuf::_base"][::std::mem::offset_of!(__sbuf, _base) - 0usize];
["Offset of field: __sbuf::_size"][::std::mem::offset_of!(__sbuf, _size) - 8usize];
};
impl Default for __sbuf {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sFILEX {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sFILE {
pub _p: *mut ::std::ffi::c_uchar,
pub _r: ::std::ffi::c_int,
pub _w: ::std::ffi::c_int,
pub _flags: ::std::ffi::c_short,
pub _file: ::std::ffi::c_short,
pub _bf: __sbuf,
pub _lbfsize: ::std::ffi::c_int,
pub _cookie: *mut ::std::ffi::c_void,
pub _close: ::std::option::Option<
unsafe extern "C" fn(arg1: *mut ::std::ffi::c_void) -> ::std::ffi::c_int,
>,
pub _read: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::ffi::c_void,
arg2: *mut ::std::ffi::c_char,
__n: ::std::ffi::c_int,
) -> ::std::ffi::c_int,
>,
pub _seek: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::ffi::c_void,
arg2: fpos_t,
arg3: ::std::ffi::c_int,
) -> fpos_t,
>,
pub _write: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::ffi::c_void,
arg2: *const ::std::ffi::c_char,
__n: ::std::ffi::c_int,
) -> ::std::ffi::c_int,
>,
pub _ub: __sbuf,
pub _extra: *mut __sFILEX,
pub _ur: ::std::ffi::c_int,
pub _ubuf: [::std::ffi::c_uchar; 3usize],
pub _nbuf: [::std::ffi::c_uchar; 1usize],
pub _lb: __sbuf,
pub _blksize: ::std::ffi::c_int,
pub _offset: fpos_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __sFILE"][::std::mem::size_of::<__sFILE>() - 152usize];
["Alignment of __sFILE"][::std::mem::align_of::<__sFILE>() - 8usize];
["Offset of field: __sFILE::_p"][::std::mem::offset_of!(__sFILE, _p) - 0usize];
["Offset of field: __sFILE::_r"][::std::mem::offset_of!(__sFILE, _r) - 8usize];
["Offset of field: __sFILE::_w"][::std::mem::offset_of!(__sFILE, _w) - 12usize];
["Offset of field: __sFILE::_flags"][::std::mem::offset_of!(__sFILE, _flags) - 16usize];
["Offset of field: __sFILE::_file"][::std::mem::offset_of!(__sFILE, _file) - 18usize];
["Offset of field: __sFILE::_bf"][::std::mem::offset_of!(__sFILE, _bf) - 24usize];
["Offset of field: __sFILE::_lbfsize"][::std::mem::offset_of!(__sFILE, _lbfsize) - 40usize];
["Offset of field: __sFILE::_cookie"][::std::mem::offset_of!(__sFILE, _cookie) - 48usize];
["Offset of field: __sFILE::_close"][::std::mem::offset_of!(__sFILE, _close) - 56usize];
["Offset of field: __sFILE::_read"][::std::mem::offset_of!(__sFILE, _read) - 64usize];
["Offset of field: __sFILE::_seek"][::std::mem::offset_of!(__sFILE, _seek) - 72usize];
["Offset of field: __sFILE::_write"][::std::mem::offset_of!(__sFILE, _write) - 80usize];
["Offset of field: __sFILE::_ub"][::std::mem::offset_of!(__sFILE, _ub) - 88usize];
["Offset of field: __sFILE::_extra"][::std::mem::offset_of!(__sFILE, _extra) - 104usize];
["Offset of field: __sFILE::_ur"][::std::mem::offset_of!(__sFILE, _ur) - 112usize];
["Offset of field: __sFILE::_ubuf"][::std::mem::offset_of!(__sFILE, _ubuf) - 116usize];
["Offset of field: __sFILE::_nbuf"][::std::mem::offset_of!(__sFILE, _nbuf) - 119usize];
["Offset of field: __sFILE::_lb"][::std::mem::offset_of!(__sFILE, _lb) - 120usize];
["Offset of field: __sFILE::_blksize"][::std::mem::offset_of!(__sFILE, _blksize) - 136usize];
["Offset of field: __sFILE::_offset"][::std::mem::offset_of!(__sFILE, _offset) - 144usize];
};
impl Default for __sFILE {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type FILE = __sFILE;
unsafe extern "C" {
pub static mut __stdinp: *mut FILE;
}
unsafe extern "C" {
pub static mut __stdoutp: *mut FILE;
}
unsafe extern "C" {
pub static mut __stderrp: *mut FILE;
}
unsafe extern "C" {
pub fn clearerr(arg1: *mut FILE);
}
unsafe extern "C" {
pub fn fclose(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn feof(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn ferror(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn fflush(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn fgetc(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn fgetpos(arg1: *mut FILE, arg2: *mut fpos_t) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn fgets(
arg1: *mut ::std::ffi::c_char,
__size: ::std::ffi::c_int,
arg2: *mut FILE,
) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn fopen(
__filename: *const ::std::ffi::c_char,
__mode: *const ::std::ffi::c_char,
) -> *mut FILE;
}
unsafe extern "C" {
pub fn fprintf(arg1: *mut FILE, arg2: *const ::std::ffi::c_char, ...) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn fputc(arg1: ::std::ffi::c_int, arg2: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn fputs(arg1: *const ::std::ffi::c_char, arg2: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn fread(
__ptr: *mut ::std::ffi::c_void,
__size: ::std::ffi::c_ulong,
__nitems: ::std::ffi::c_ulong,
__stream: *mut FILE,
) -> ::std::ffi::c_ulong;
}
unsafe extern "C" {
pub fn freopen(
arg1: *const ::std::ffi::c_char,
arg2: *const ::std::ffi::c_char,
arg3: *mut FILE,
) -> *mut FILE;
}
unsafe extern "C" {
pub fn fscanf(arg1: *mut FILE, arg2: *const ::std::ffi::c_char, ...) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn fseek(
arg1: *mut FILE,
arg2: ::std::ffi::c_long,
arg3: ::std::ffi::c_int,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn fsetpos(arg1: *mut FILE, arg2: *const fpos_t) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn ftell(arg1: *mut FILE) -> ::std::ffi::c_long;
}
unsafe extern "C" {
pub fn fwrite(
__ptr: *const ::std::ffi::c_void,
__size: ::std::ffi::c_ulong,
__nitems: ::std::ffi::c_ulong,
__stream: *mut FILE,
) -> ::std::ffi::c_ulong;
}
unsafe extern "C" {
pub fn getc(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn getchar() -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn gets(arg1: *mut ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn perror(arg1: *const ::std::ffi::c_char);
}
unsafe extern "C" {
pub fn putc(arg1: ::std::ffi::c_int, arg2: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn putchar(arg1: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn puts(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn remove(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn rename(
__old: *const ::std::ffi::c_char,
__new: *const ::std::ffi::c_char,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn rewind(arg1: *mut FILE);
}
unsafe extern "C" {
pub fn scanf(arg1: *const ::std::ffi::c_char, ...) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn setbuf(arg1: *mut FILE, arg2: *mut ::std::ffi::c_char);
}
unsafe extern "C" {
pub fn setvbuf(
arg1: *mut FILE,
arg2: *mut ::std::ffi::c_char,
arg3: ::std::ffi::c_int,
__size: usize,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn sprintf(
arg1: *mut ::std::ffi::c_char,
arg2: *const ::std::ffi::c_char,
...
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn sscanf(
arg1: *const ::std::ffi::c_char,
arg2: *const ::std::ffi::c_char,
...
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn tmpfile() -> *mut FILE;
}
unsafe extern "C" {
pub fn tmpnam(arg1: *mut ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn ungetc(arg1: ::std::ffi::c_int, arg2: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn vfprintf(
arg1: *mut FILE,
arg2: *const ::std::ffi::c_char,
arg3: __builtin_va_list,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn vprintf(arg1: *const ::std::ffi::c_char, arg2: __builtin_va_list) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn vsprintf(
arg1: *mut ::std::ffi::c_char,
arg2: *const ::std::ffi::c_char,
arg3: __builtin_va_list,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn ctermid(arg1: *mut ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn fdopen(arg1: ::std::ffi::c_int, arg2: *const ::std::ffi::c_char) -> *mut FILE;
}
unsafe extern "C" {
pub fn fileno(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn pclose(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn popen(arg1: *const ::std::ffi::c_char, arg2: *const ::std::ffi::c_char) -> *mut FILE;
}
unsafe extern "C" {
pub fn __srget(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn __svfscanf(
arg1: *mut FILE,
arg2: *const ::std::ffi::c_char,
arg3: va_list,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn __swbuf(arg1: ::std::ffi::c_int, arg2: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn flockfile(arg1: *mut FILE);
}
unsafe extern "C" {
pub fn ftrylockfile(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn funlockfile(arg1: *mut FILE);
}
unsafe extern "C" {
pub fn getc_unlocked(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn getchar_unlocked() -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn putc_unlocked(arg1: ::std::ffi::c_int, arg2: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn putchar_unlocked(arg1: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn getw(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn putw(arg1: ::std::ffi::c_int, arg2: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn tempnam(
__dir: *const ::std::ffi::c_char,
__prefix: *const ::std::ffi::c_char,
) -> *mut ::std::ffi::c_char;
}
pub type off_t = __darwin_off_t;
unsafe extern "C" {
pub fn fseeko(
__stream: *mut FILE,
__offset: off_t,
__whence: ::std::ffi::c_int,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn ftello(__stream: *mut FILE) -> off_t;
}
unsafe extern "C" {
pub fn snprintf(
__str: *mut ::std::ffi::c_char,
__size: ::std::ffi::c_ulong,
__format: *const ::std::ffi::c_char,
...
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn vfscanf(
__stream: *mut FILE,
__format: *const ::std::ffi::c_char,
arg1: __builtin_va_list,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn vscanf(
__format: *const ::std::ffi::c_char,
arg1: __builtin_va_list,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn vsnprintf(
__str: *mut ::std::ffi::c_char,
__size: ::std::ffi::c_ulong,
__format: *const ::std::ffi::c_char,
arg1: __builtin_va_list,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn vsscanf(
__str: *const ::std::ffi::c_char,
__format: *const ::std::ffi::c_char,
arg1: __builtin_va_list,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn dprintf(
arg1: ::std::ffi::c_int,
arg2: *const ::std::ffi::c_char,
...
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn vdprintf(
arg1: ::std::ffi::c_int,
arg2: *const ::std::ffi::c_char,
arg3: va_list,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn getdelim(
__linep: *mut *mut ::std::ffi::c_char,
__linecapp: *mut usize,
__delimiter: ::std::ffi::c_int,
__stream: *mut FILE,
) -> isize;
}
unsafe extern "C" {
pub fn getline(
__linep: *mut *mut ::std::ffi::c_char,
__linecapp: *mut usize,
__stream: *mut FILE,
) -> isize;
}
unsafe extern "C" {
pub fn fmemopen(
__buf: *mut ::std::ffi::c_void,
__size: usize,
__mode: *const ::std::ffi::c_char,
) -> *mut FILE;
}
unsafe extern "C" {
pub fn open_memstream(__bufp: *mut *mut ::std::ffi::c_char, __sizep: *mut usize) -> *mut FILE;
}
unsafe extern "C" {
pub static sys_nerr: ::std::ffi::c_int;
}
unsafe extern "C" {
pub static sys_errlist: [*const ::std::ffi::c_char; 0usize];
}
unsafe extern "C" {
pub fn asprintf(
arg1: *mut *mut ::std::ffi::c_char,
arg2: *const ::std::ffi::c_char,
...
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn ctermid_r(arg1: *mut ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn fgetln(arg1: *mut FILE, __len: *mut usize) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn fmtcheck(
arg1: *const ::std::ffi::c_char,
arg2: *const ::std::ffi::c_char,
) -> *const ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn fpurge(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn setbuffer(arg1: *mut FILE, arg2: *mut ::std::ffi::c_char, __size: ::std::ffi::c_int);
}
unsafe extern "C" {
pub fn setlinebuf(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn vasprintf(
arg1: *mut *mut ::std::ffi::c_char,
arg2: *const ::std::ffi::c_char,
arg3: va_list,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn funopen(
arg1: *const ::std::ffi::c_void,
arg2: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::ffi::c_void,
arg2: *mut ::std::ffi::c_char,
__n: ::std::ffi::c_int,
) -> ::std::ffi::c_int,
>,
arg3: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::ffi::c_void,
arg2: *const ::std::ffi::c_char,
__n: ::std::ffi::c_int,
) -> ::std::ffi::c_int,
>,
arg4: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::ffi::c_void,
arg2: fpos_t,
arg3: ::std::ffi::c_int,
) -> fpos_t,
>,
arg5: ::std::option::Option<
unsafe extern "C" fn(arg1: *mut ::std::ffi::c_void) -> ::std::ffi::c_int,
>,
) -> *mut FILE;
}
unsafe extern "C" {
pub fn __snprintf_chk(
arg1: *mut ::std::ffi::c_char,
__maxlen: usize,
arg2: ::std::ffi::c_int,
arg3: usize,
arg4: *const ::std::ffi::c_char,
...
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn __vsnprintf_chk(
arg1: *mut ::std::ffi::c_char,
__maxlen: usize,
arg2: ::std::ffi::c_int,
arg3: usize,
arg4: *const ::std::ffi::c_char,
arg5: va_list,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn __sprintf_chk(
arg1: *mut ::std::ffi::c_char,
arg2: ::std::ffi::c_int,
arg3: usize,
arg4: *const ::std::ffi::c_char,
...
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn __vsprintf_chk(
arg1: *mut ::std::ffi::c_char,
arg2: ::std::ffi::c_int,
arg3: usize,
arg4: *const ::std::ffi::c_char,
arg5: va_list,
) -> ::std::ffi::c_int;
}
#[doc = " Structure with log message and meta data passed to callbacks."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_log_data_t {
#[doc = " Log category the message falls into."]
pub priority: u32,
#[doc = " Log domain id, UINT32_MAX is global."]
pub domid: u32,
#[doc = " Filename where message was generated."]
pub file: *const ::std::ffi::c_char,
#[doc = " Line number in file where message was generated."]
pub line: u32,
#[doc = " Name of function message where message was generated."]
pub function: *const ::std::ffi::c_char,
#[doc = " Log message."]
pub message: *const ::std::ffi::c_char,
#[doc = " Size of log message."]
pub size: usize,
#[doc = " Default log message header length"]
pub hdrsize: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_log_data_t"][::std::mem::size_of::<dds_log_data_t>() - 56usize];
["Alignment of dds_log_data_t"][::std::mem::align_of::<dds_log_data_t>() - 8usize];
["Offset of field: dds_log_data_t::priority"]
[::std::mem::offset_of!(dds_log_data_t, priority) - 0usize];
["Offset of field: dds_log_data_t::domid"]
[::std::mem::offset_of!(dds_log_data_t, domid) - 4usize];
["Offset of field: dds_log_data_t::file"]
[::std::mem::offset_of!(dds_log_data_t, file) - 8usize];
["Offset of field: dds_log_data_t::line"]
[::std::mem::offset_of!(dds_log_data_t, line) - 16usize];
["Offset of field: dds_log_data_t::function"]
[::std::mem::offset_of!(dds_log_data_t, function) - 24usize];
["Offset of field: dds_log_data_t::message"]
[::std::mem::offset_of!(dds_log_data_t, message) - 32usize];
["Offset of field: dds_log_data_t::size"]
[::std::mem::offset_of!(dds_log_data_t, size) - 40usize];
["Offset of field: dds_log_data_t::hdrsize"]
[::std::mem::offset_of!(dds_log_data_t, hdrsize) - 48usize];
};
impl Default for dds_log_data_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " Function signature that log and trace callbacks must adhere too."]
pub type dds_log_write_fn_t = ::std::option::Option<
unsafe extern "C" fn(p: *mut ::std::ffi::c_void, d: *const dds_log_data_t),
>;
unsafe extern "C" {
pub static dds_log_mask: *mut u32;
}
unsafe extern "C" {
#[doc = " @brief Set enabled log and trace categories.\n\n @param[in] cats Log and trace categories to enable."]
pub fn dds_set_log_mask(cats: u32);
}
unsafe extern "C" {
#[doc = " @private"]
pub fn dds_set_trace_file(file: *mut FILE);
}
unsafe extern "C" {
#[doc = " @brief Register callback to receive log messages\n\n Callbacks registered to handle log messages will receive messages of type\n info, warning, error and fatal. Messages that fall into the trace category\n will never be delivered to the callback.\n\n This operation is synchronous and only returns once the operation is\n registered with all threads. Meaning that neither callback or userdata will\n be referenced by the DDS stack on return.\n\n @param[in] callback Function pointer matching dds_log_write_fn signature\n or a null pointer to restore the default sink.\n @param[in] userdata User specified data passed along with each invocation\n of callback."]
pub fn dds_set_log_sink(callback: dds_log_write_fn_t, userdata: *mut ::std::ffi::c_void);
}
unsafe extern "C" {
#[doc = " @brief Register callback to receive trace messages\n\n Callbacks registered to handle trace messages will receive messages of type\n info, warning, error and fatal as well as all message types that fall into\n the trace category depending on the log mask.\n\n This operation is synchronous and only returns once the operation is\n registered with all threads. Meaning that neither callback or\n userdata will be referenced by the DDS stack on return.\n\n @param[in] callback Function pointer matching dds_log_write_fn_t signature\n or a null pointer to restore the default sink.\n @param[in] userdata User specified data passed along with each invocation\n of callback."]
pub fn dds_set_trace_sink(callback: dds_log_write_fn_t, userdata: *mut ::std::ffi::c_void);
}
unsafe extern "C" {
#[doc = " @brief Write a log or trace message to the global configuration but with\n specific domain (intended solely for use during domain start-up, while\n the domain-specific logging/tracing hasn't been set yet).\n\n Write a log or trace message to one (or both) of the currently active sinks.\n\n Direct use of #dds_log_id is discouraged. Use #DDS_ILOG instead."]
pub fn dds_log_id(
cat: u32,
domid: u32,
file: *const ::std::ffi::c_char,
line: u32,
func: *const ::std::ffi::c_char,
fmt: *const ::std::ffi::c_char,
...
);
}
unsafe extern "C" {
#[doc = " @brief Write a log or trace message to the global log/trace.\n\n Write a log or trace message to one (or both) of the currently active sinks.\n\n Direct use of #dds_log is discouraged. Use #DDS_INFO, #DDS_WARNING,\n #DDS_ERROR, #DDS_FATAL or #DDS_LOG instead."]
pub fn dds_log(
cat: u32,
file: *const ::std::ffi::c_char,
line: u32,
func: *const ::std::ffi::c_char,
fmt: *const ::std::ffi::c_char,
...
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_cdrstream_allocator {
pub malloc: ::std::option::Option<unsafe extern "C" fn(size: usize) -> *mut ::std::ffi::c_void>,
pub realloc: ::std::option::Option<
unsafe extern "C" fn(
ptr: *mut ::std::ffi::c_void,
new_size: usize,
) -> *mut ::std::ffi::c_void,
>,
pub free: ::std::option::Option<unsafe extern "C" fn(pt: *mut ::std::ffi::c_void)>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_cdrstream_allocator"][::std::mem::size_of::<dds_cdrstream_allocator>() - 24usize];
["Alignment of dds_cdrstream_allocator"]
[::std::mem::align_of::<dds_cdrstream_allocator>() - 8usize];
["Offset of field: dds_cdrstream_allocator::malloc"]
[::std::mem::offset_of!(dds_cdrstream_allocator, malloc) - 0usize];
["Offset of field: dds_cdrstream_allocator::realloc"]
[::std::mem::offset_of!(dds_cdrstream_allocator, realloc) - 8usize];
["Offset of field: dds_cdrstream_allocator::free"]
[::std::mem::offset_of!(dds_cdrstream_allocator, free) - 16usize];
};
unsafe extern "C" {
pub static dds_cdrstream_default_allocator: dds_cdrstream_allocator;
}
#[doc = "< free full sample"]
pub const dds_free_op_t_DDS_FREE_ALL: dds_free_op_t = 7;
#[doc = "< free all sample contents, but leave sample pointer intact"]
pub const dds_free_op_t_DDS_FREE_CONTENTS: dds_free_op_t = 3;
#[doc = "< free only the keyfields in a sample"]
pub const dds_free_op_t_DDS_FREE_KEY: dds_free_op_t = 1;
#[doc = " @brief Freeing operation type\n @ingroup alloc\n What part of a sample to free"]
pub type dds_free_op_t = ::std::ffi::c_uint;
#[doc = " @brief DDS Allocator\n @ingroup alloc\n C-Style allocator API"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_allocator {
#[doc = "< behave like C malloc"]
pub malloc: ::std::option::Option<unsafe extern "C" fn(size: usize) -> *mut ::std::ffi::c_void>,
#[doc = "< behave like C realloc, may be null"]
pub realloc: ::std::option::Option<
unsafe extern "C" fn(ptr: *mut ::std::ffi::c_void, size: usize) -> *mut ::std::ffi::c_void,
>,
#[doc = "< behave like C free"]
pub free: ::std::option::Option<unsafe extern "C" fn(ptr: *mut ::std::ffi::c_void)>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_allocator"][::std::mem::size_of::<dds_allocator>() - 24usize];
["Alignment of dds_allocator"][::std::mem::align_of::<dds_allocator>() - 8usize];
["Offset of field: dds_allocator::malloc"]
[::std::mem::offset_of!(dds_allocator, malloc) - 0usize];
["Offset of field: dds_allocator::realloc"]
[::std::mem::offset_of!(dds_allocator, realloc) - 8usize];
["Offset of field: dds_allocator::free"][::std::mem::offset_of!(dds_allocator, free) - 16usize];
};
#[doc = " @brief DDS Allocator\n @ingroup alloc\n C-Style allocator API"]
pub type dds_allocator_t = dds_allocator;
unsafe extern "C" {
#[doc = " @brief Perform an alloc() with the default allocator.\n @component memory_alloc\n\n @param[in] size number of bytes\n @returns new pointer or NULL if out of memory"]
pub fn dds_alloc(size: usize) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
#[doc = " @brief Perform a realloc() with the default allocator.\n @component memory_alloc\n\n @param[in] ptr previously alloc()'ed pointer\n @param[in] size new size\n @return new pointer or NULL if out of memory"]
pub fn dds_realloc(ptr: *mut ::std::ffi::c_void, size: usize) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
#[doc = " @brief Perform a realloc() with the default allocator. Zero out memory.\n @component memory_alloc\n\n @param[in] ptr previously alloc()'ed pointer\n @param[in] size new size\n @return new pointer or NULL if out of memory"]
pub fn dds_realloc_zero(ptr: *mut ::std::ffi::c_void, size: usize) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
#[doc = " @brief Perform a free() on a memory fragment allocated with the default allocator.\n @component memory_alloc\n\n @param[in] ptr previously alloc()'ed pointer"]
pub fn dds_free(ptr: *mut ::std::ffi::c_void);
}
pub type dds_alloc_fn_t =
::std::option::Option<unsafe extern "C" fn(p: usize) -> *mut ::std::ffi::c_void>;
pub type dds_realloc_fn_t = ::std::option::Option<
unsafe extern "C" fn(a: *mut ::std::ffi::c_void, b: usize) -> *mut ::std::ffi::c_void,
>;
pub type dds_free_fn_t = ::std::option::Option<unsafe extern "C" fn(p: *mut ::std::ffi::c_void)>;
unsafe extern "C" {
#[doc = " @brief Allocated a string with size, accounting for the null terminator.\n @component memory_alloc\n\n @param[in] size number of characters\n @returns newly allocated string or NULL if out of memory"]
pub fn dds_string_alloc(size: usize) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
#[doc = " @brief Duplicate a null-terminated string\n @component memory_alloc\n\n @param[in] str string to duplicate\n @returns newly allocated duplicate string, or NULL if out of memory"]
pub fn dds_string_dup(str_: *const ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
#[doc = " @brief Free a string, equivalent to dds_free\n @component memory_alloc\n\n @param[in] str string to free"]
pub fn dds_string_free(str_: *mut ::std::ffi::c_char);
}
unsafe extern "C" {
#[doc = " @brief Free (parts of) a sample according to the \\ref dds_free_op_t\n @component memory_alloc\n\n @param[in] sample sample to free\n @param[in] desc topic descriptor of the type this sample was created from.\n @param[in] op Which parts of the sample to free."]
pub fn dds_sample_free(
sample: *mut ::std::ffi::c_void,
desc: *const dds_topic_descriptor,
op: dds_free_op_t,
);
}
#[doc = " return from subroutine, exits top-level\n[RTS, 0, 0, 0]"]
pub const dds_stream_opcode_DDS_OP_RTS: dds_stream_opcode = 0;
#[doc = " data field\n[ADR, nBY, 0, f] [offset]\n[ADR, BLN, 0, f] [offset]\n[ADR, WCHAR, 0, f] [offset]\n[ADR, ENU, 0, f] [offset] [max]\n[ADR, BMK, 0, f] [offset] [bits-high] [bits-low]\n[ADR, STR, 0, f] [offset]\n[ADR, WSTR, 0, f] [offset]\n[ADR, BST, 0, f] [offset] [max-size]\n[ADR, BWSTR, 0, f] [offset] [max-size]\n\n[ADR, SEQ, nBY, f] [offset]\n[ADR, SEQ, BLN, f] [offset]\n[ADR, SEQ, WCHAR, f] [offset]\n[ADR, SEQ, ENU, f] [offset] [max]\n[ADR, SEQ, BMK, f] [offset] [bits-high] [bits-low]\n[ADR, SEQ, STR, f] [offset]\n[ADR, SEQ, WSTR, f] [offset]\n[ADR, SEQ, BST, f] [offset] [max-size]\n[ADR, SEQ, BWSTR, f] [offset] [max-size]\n[ADR, SEQ, s, f] [offset] [elem-size] [next-insn, elem-insn]\nwhere s = {SEQ,ARR,UNI,STU,BSQ}\n[ADR, SEQ, EXT, f] *** not supported\n\n[ADR, BSQ, nBY, f] [offset] [sbound]\n[ADR, BSQ, BLN, f] [offset] [sbound]\n[ADR, BSQ, WCHAR, f] [offset] [sbound]\n[ADR, BSQ, ENU, f] [offset] [sbound] [max]\n[ADR, BSQ, BMK, f] [offset] [sbound] [bits-high] [bits-low]\n[ADR, BSQ, STR, f] [offset] [sbound]\n[ADR, BSQ, WSTR, f] [offset] [sbound]\n[ADR, BSQ, BST, f] [offset] [sbound] [max-size]\n[ADR, BSQ, BWSTR, f] [offset] [sbound] [max-size]\n[ADR, BSQ, s, f] [offset] [sbound] [elem-size] [next-insn, elem-insn]\nwhere s = {SEQ,ARR,UNI,STU,BSQ}\n[ADR, BSQ, EXT, f] *** not supported\n\n[ADR, ARR, nBY, f] [offset] [alen]\n[ADR, ARR, BLN, f] [offset] [alen]\n[ADR, ARR, WCHAR, f] [offset] [alen]\n[ADR, ARR, ENU, f] [offset] [alen] [max]\n[ADR, ARR, BMK, f] [offset] [alen] [bits-high] [bits-low]\n[ADR, ARR, STR, f] [offset] [alen]\n[ADR, ARR, WSTR, f] [offset] [alen]\n[ADR, ARR, BST, f] [offset] [alen] [0] [max-size]\n[ADR, ARR, BWSTR, f] [offset] [alen] [0] [max-size]\n[ADR, ARR, s, f] [offset] [alen] [next-insn, elem-insn] [elem-size]\nwhere s = {SEQ,ARR,UNI,STU,BSQ}\n[ADR, ARR, EXT, f] *** not supported\n\n[ADR, UNI, d, z] [offset] [alen] [next-insn, cases]\n[ADR, UNI, ENU, z] [offset] [alen] [next-insn, cases] [max]\n[ADR, UNI, EXT, f] *** not supported\nwhere\nd = discriminant type of {1BY,2BY,4BY,BLN}\nz = default present/not present (DDS_OP_FLAG_DEF)\noffset = discriminant offset\nmax = max enum value\nfollowed by alen case labels: in JEQ format\n\n[ADR, e | EXT, 0, f] [offset] [next-insn, elem-insn] [elem-size iff \"external\" flag e is set, or flag f has DDS_OP_FLAG_OPT]\n[ADR, STU, 0, f] *** not supported\nwhere\ns = subtype\ne = external: stored as external data (pointer) (DDS_OP_FLAG_EXT)\nf = flags:\n- key/not key (DDS_OP_FLAG_KEY)\n- base type member, used with EXT type (DDS_OP_FLAG_BASE)\n- optional (DDS_OP_FLAG_OPT)\n- must-understand (DDS_OP_FLAG_MU)\n- storage size, only for ENU and BMK (n << DDS_OP_FLAG_SZ_SHIFT)\n[offset] = field offset from start of element in memory\n[elem-size] = element size in memory (elem-size is only included in case 'external' flag is set)\n[max-size] = string bound + 1\n[max] = max enum value\n[bits-..] = identified bits in the bitmask, split into high and low 32 bits\n[alen] = array length, number of cases\n[sbound] = bounded sequence maximum number of elements\n[next-insn] = (unsigned 16 bits) offset to instruction for next field, from start of insn\n[elem-insn] = (unsigned 16 bits) offset to first instruction for element, from start of insn\n[cases] = (unsigned 16 bits) offset to first case label, from start of insn"]
pub const dds_stream_opcode_DDS_OP_ADR: dds_stream_opcode = 16777216;
#[doc = " jump-to-subroutine (e.g. used for recursive types and appendable unions)\n[JSR, 0, e]\nwhere\ne = (signed 16 bits) offset to first instruction in subroutine, from start of insn\ninstruction sequence must end in RTS, execution resumes at instruction\nfollowing JSR"]
pub const dds_stream_opcode_DDS_OP_JSR: dds_stream_opcode = 33554432;
#[doc = " jump-if-equal, used for union cases:\n[JEQ, nBY, 0] [disc] [offset]\n[JEQ, BLN, 0] [disc] [offset]\n[JEQ, STR, 0] [disc] [offset]\n[JEQ, s, i] [disc] [offset]\n[JEQ4, e | nBY, 0] [disc] [offset] 0\n[JEQ4, e | STR, 0] [disc] [offset] 0\n[JEQ4, e | ENU, f] [disc] [offset] [max]\n[JEQ4, EXT, 0] *** not supported, use STU/UNI for external defined types\n[JEQ4, e | s, i] [disc] [offset] [elem-size iff \"external\" flag e is set, else 0]\nwhere\ne = external: stored as external data (pointer) (DDS_OP_FLAG_EXT)\ns = subtype other than {nBY,STR} for JEQ and {nBY,STR,ENU,EXT} for JEQ4\n(note that BMK cannot be inline, because it needs 2 additional instructions\nfor the bits that are identified in the bitmask type)\ni = (unsigned 16 bits) offset to first instruction for case, from start of insn\ninstruction sequence must end in RTS, at which point executes continues\nat the next field's instruction as specified by the union\nf = size flags for ENU instruction\n\nNote that the JEQ instruction is deprecated and replaced by the JEQ4 instruction. The\nIDL compiler only generates JEQ4 for union cases, the JEQ instruction is included here\nfor backwards compatibility (topic descriptors generated with a previous version of IDLC)"]
pub const dds_stream_opcode_DDS_OP_JEQ: dds_stream_opcode = 50331648;
#[doc = " XCDR2 delimited CDR (inserts DHEADER before type)\n[DLC, 0, 0]"]
pub const dds_stream_opcode_DDS_OP_DLC: dds_stream_opcode = 67108864;
#[doc = " XCDR2 parameter list CDR (inserts DHEADER before type and EMHEADER before each member)\n[PLC, 0, 0]\nfollowed by a list of JEQ instructions"]
pub const dds_stream_opcode_DDS_OP_PLC: dds_stream_opcode = 83886080;
#[doc = "[PLM, f, elem-insn] [member id]\nfor members of aggregated mutable types (pl-cdr):\nwhere\nf = flags:\n- jump to base type (DDS_OP_FLAG_BASE)\n[elem-insn] = (unsigned 16 bits) offset to instruction for element, from start of insn\nwhen FLAG_BASE is set, this is the offset of the PLM list of the base type\n[member id] = id for this member (0 in case FLAG_BASE is set)"]
pub const dds_stream_opcode_DDS_OP_PLM: dds_stream_opcode = 100663296;
#[doc = " Key offset list\n[KOF, 0, n] [offset-1] ... [offset-n]\nwhere\nn = number of key offsets in following ops\noffset = Offset of the key field relative to the previous offset, repeated n times when key is\nin a nested struct. In case of inheritance of mutable structs, a single offset of\nthe key member relative to the first op of the top-level type (index 0)."]
pub const dds_stream_opcode_DDS_OP_KOF: dds_stream_opcode = 117440512;
#[doc = " see comment for JEQ/JEQ4 above"]
pub const dds_stream_opcode_DDS_OP_JEQ4: dds_stream_opcode = 134217728;
#[doc = " [MID, 0, elem-insn] [member id]\nFor members of aggregated final and appendable types. Currently only for optional members\nthe member ID is included, to facilitate adding the parameter header in XCDR1 data\nrepresentation.\nwhere\n[elem-insn] = (unsigned 16 bits) offset to instruction for element, from start of insn\n[member id] = id for this member"]
pub const dds_stream_opcode_DDS_OP_MID: dds_stream_opcode = 150994944;
#[doc = " @ingroup serialization\n @brief Topic encoding instruction types"]
pub type dds_stream_opcode = ::std::ffi::c_uint;
#[doc = "< one byte simple type (char, octet)"]
pub const dds_stream_typecode_DDS_OP_VAL_1BY: dds_stream_typecode = 1;
#[doc = "< two byte simple type ((unsigned) short)"]
pub const dds_stream_typecode_DDS_OP_VAL_2BY: dds_stream_typecode = 2;
#[doc = "< four byte simple type ((unsigned) long, float)"]
pub const dds_stream_typecode_DDS_OP_VAL_4BY: dds_stream_typecode = 3;
#[doc = "< eight byte simple type ((unsigned) long long, double)"]
pub const dds_stream_typecode_DDS_OP_VAL_8BY: dds_stream_typecode = 4;
#[doc = "< string"]
pub const dds_stream_typecode_DDS_OP_VAL_STR: dds_stream_typecode = 5;
#[doc = "< bounded string"]
pub const dds_stream_typecode_DDS_OP_VAL_BST: dds_stream_typecode = 6;
#[doc = "< sequence"]
pub const dds_stream_typecode_DDS_OP_VAL_SEQ: dds_stream_typecode = 7;
#[doc = "< array"]
pub const dds_stream_typecode_DDS_OP_VAL_ARR: dds_stream_typecode = 8;
#[doc = "< union"]
pub const dds_stream_typecode_DDS_OP_VAL_UNI: dds_stream_typecode = 9;
#[doc = "< struct"]
pub const dds_stream_typecode_DDS_OP_VAL_STU: dds_stream_typecode = 10;
#[doc = "< bounded sequence"]
pub const dds_stream_typecode_DDS_OP_VAL_BSQ: dds_stream_typecode = 11;
#[doc = "< enumerated value (long)"]
pub const dds_stream_typecode_DDS_OP_VAL_ENU: dds_stream_typecode = 12;
#[doc = "< field with external definition"]
pub const dds_stream_typecode_DDS_OP_VAL_EXT: dds_stream_typecode = 13;
#[doc = "< boolean"]
pub const dds_stream_typecode_DDS_OP_VAL_BLN: dds_stream_typecode = 14;
#[doc = "< bitmask"]
pub const dds_stream_typecode_DDS_OP_VAL_BMK: dds_stream_typecode = 15;
#[doc = "< wstring (UTF-16)"]
pub const dds_stream_typecode_DDS_OP_VAL_WSTR: dds_stream_typecode = 16;
#[doc = "< bounded wstring (UTF-16)"]
pub const dds_stream_typecode_DDS_OP_VAL_BWSTR: dds_stream_typecode = 17;
#[doc = "< wchar: UTF-16, no surrogates allowed"]
pub const dds_stream_typecode_DDS_OP_VAL_WCHAR: dds_stream_typecode = 18;
#[doc = " @ingroup serialization\n @brief datatypes as recognized by serialization VM."]
pub type dds_stream_typecode = ::std::ffi::c_uint;
#[doc = "< one byte simple type (char, octet)"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_1BY: dds_stream_typecode_primary = 65536;
#[doc = "< two byte simple type ((unsigned) short)"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_2BY: dds_stream_typecode_primary = 131072;
#[doc = "< four byte simple type ((unsigned) long, float)"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_4BY: dds_stream_typecode_primary = 196608;
#[doc = "< eight byte simple type ((unsigned) long long, double)"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_8BY: dds_stream_typecode_primary = 262144;
#[doc = "< string"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_STR: dds_stream_typecode_primary = 327680;
#[doc = "< bounded string"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_BST: dds_stream_typecode_primary = 393216;
#[doc = "< sequence"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_SEQ: dds_stream_typecode_primary = 458752;
#[doc = "< array"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_ARR: dds_stream_typecode_primary = 524288;
#[doc = "< union"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_UNI: dds_stream_typecode_primary = 589824;
#[doc = "< struct"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_STU: dds_stream_typecode_primary = 655360;
#[doc = "< bounded sequence"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_BSQ: dds_stream_typecode_primary = 720896;
#[doc = "< enumerated value (long)"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_ENU: dds_stream_typecode_primary = 786432;
#[doc = "< field with external definition"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_EXT: dds_stream_typecode_primary = 851968;
#[doc = "< boolean"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_BLN: dds_stream_typecode_primary = 917504;
#[doc = "< bitmask"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_BMK: dds_stream_typecode_primary = 983040;
#[doc = "< wstring (UTF-16)"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_WSTR: dds_stream_typecode_primary = 1048576;
#[doc = "< bounded wstring (UTF-16)"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_BWSTR: dds_stream_typecode_primary = 1114112;
#[doc = "< wchar: UTF-16, no surrogates allowed"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_WCHAR: dds_stream_typecode_primary = 1179648;
#[doc = " @ingroup serialization\n @brief primary type code for DDS_OP_ADR, DDS_OP_JEQ\n Convinience pre-bitshifted values."]
pub type dds_stream_typecode_primary = ::std::ffi::c_uint;
#[doc = "< one byte simple type (char, octet)"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_1BY: dds_stream_typecode_subtype = 256;
#[doc = "< two byte simple type ((unsigned) short)"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_2BY: dds_stream_typecode_subtype = 512;
#[doc = "< four byte simple type ((unsigned) long, float)"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_4BY: dds_stream_typecode_subtype = 768;
#[doc = "< eight byte simple type ((unsigned) long long, double)"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_8BY: dds_stream_typecode_subtype = 1024;
#[doc = "< string"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_STR: dds_stream_typecode_subtype = 1280;
#[doc = "< bounded string"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_BST: dds_stream_typecode_subtype = 1536;
#[doc = "< sequence"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_SEQ: dds_stream_typecode_subtype = 1792;
#[doc = "< array"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_ARR: dds_stream_typecode_subtype = 2048;
#[doc = "< union"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_UNI: dds_stream_typecode_subtype = 2304;
#[doc = "< struct"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_STU: dds_stream_typecode_subtype = 2560;
#[doc = "< bounded sequence"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_BSQ: dds_stream_typecode_subtype = 2816;
#[doc = "< enumerated value (long)"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_ENU: dds_stream_typecode_subtype = 3072;
#[doc = "< boolean"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_BLN: dds_stream_typecode_subtype = 3584;
#[doc = "< bitmask"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_BMK: dds_stream_typecode_subtype = 3840;
#[doc = "< wstring"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_WSTR: dds_stream_typecode_subtype = 4096;
#[doc = "< bounded wstring"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_BWSTR: dds_stream_typecode_subtype = 4352;
#[doc = "< wchar: UTF-16, no surrogates allowed"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_WCHAR: dds_stream_typecode_subtype = 4608;
#[doc = " @ingroup serialization\n @brief sub-type code\n - encodes element type for DDS_OP_TYPE_{SEQ,ARR},\n - discriminant type for DDS_OP_TYPE_UNI\n Convinience pre-bitshifted values."]
pub type dds_stream_typecode_subtype = ::std::ffi::c_uint;
#[doc = " @ingroup implementation\n @brief Datastructure of a Sequence type\n Container for a sequence of bytes. The general model of this type is also used in IDL output,\n where the uint8_t * _buffer is replaced by the appropriate subtype of what is contained."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_sequence {
#[doc = "< Allocated space in _buffer"]
pub _maximum: u32,
#[doc = "< Used space in _buffer"]
pub _length: u32,
#[doc = "< Sequence of bytes"]
pub _buffer: *mut u8,
#[doc = "< Whether a CycloneDDS _free method should free the contained buffer.\nif you put in your own allocated _buffer set this to false to avoid\nCycloneDDS calling free() on it."]
pub _release: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_sequence"][::std::mem::size_of::<dds_sequence>() - 24usize];
["Alignment of dds_sequence"][::std::mem::align_of::<dds_sequence>() - 8usize];
["Offset of field: dds_sequence::_maximum"]
[::std::mem::offset_of!(dds_sequence, _maximum) - 0usize];
["Offset of field: dds_sequence::_length"]
[::std::mem::offset_of!(dds_sequence, _length) - 4usize];
["Offset of field: dds_sequence::_buffer"]
[::std::mem::offset_of!(dds_sequence, _buffer) - 8usize];
["Offset of field: dds_sequence::_release"]
[::std::mem::offset_of!(dds_sequence, _release) - 16usize];
};
impl Default for dds_sequence {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @ingroup implementation\n @brief Datastructure of a Sequence type\n Container for a sequence of bytes. The general model of this type is also used in IDL output,\n where the uint8_t * _buffer is replaced by the appropriate subtype of what is contained."]
pub type dds_sequence_t = dds_sequence;
#[doc = " @ingroup implementation\n @brief Key Descriptor\n Used to describe a named key field in a type with the offset from the start of a struct."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_key_descriptor {
#[doc = "< name of keyfield"]
pub m_name: *const ::std::ffi::c_char,
#[doc = "< offset from pointer"]
pub m_offset: u32,
#[doc = "< m_idx'th key of type"]
pub m_idx: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_key_descriptor"][::std::mem::size_of::<dds_key_descriptor>() - 16usize];
["Alignment of dds_key_descriptor"][::std::mem::align_of::<dds_key_descriptor>() - 8usize];
["Offset of field: dds_key_descriptor::m_name"]
[::std::mem::offset_of!(dds_key_descriptor, m_name) - 0usize];
["Offset of field: dds_key_descriptor::m_offset"]
[::std::mem::offset_of!(dds_key_descriptor, m_offset) - 8usize];
["Offset of field: dds_key_descriptor::m_idx"]
[::std::mem::offset_of!(dds_key_descriptor, m_idx) - 12usize];
};
impl Default for dds_key_descriptor {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @ingroup implementation\n @brief Key Descriptor\n Used to describe a named key field in a type with the offset from the start of a struct."]
pub type dds_key_descriptor_t = dds_key_descriptor;
#[doc = " @ingroup topic_definition\n @brief Simple sized byte container to hold serialized type info\n Holds XTypes information (TypeInformation, TypeMapping) for a\n type"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_type_meta_ser {
#[doc = "< data pointer"]
pub data: *const ::std::ffi::c_uchar,
#[doc = "< data size"]
pub sz: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_type_meta_ser"][::std::mem::size_of::<dds_type_meta_ser>() - 16usize];
["Alignment of dds_type_meta_ser"][::std::mem::align_of::<dds_type_meta_ser>() - 8usize];
["Offset of field: dds_type_meta_ser::data"]
[::std::mem::offset_of!(dds_type_meta_ser, data) - 0usize];
["Offset of field: dds_type_meta_ser::sz"]
[::std::mem::offset_of!(dds_type_meta_ser, sz) - 8usize];
};
impl Default for dds_type_meta_ser {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief Topic Descriptor\n @ingroup topic_definition\n @warning Unstable/Private API\n Contains all meta information about a type, usually produced by the IDL compiler\n Since this type is not intended for public consumption it can change without warning."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_topic_descriptor {
#[doc = "< Size of topic type"]
pub m_size: u32,
#[doc = "< Alignment of topic type"]
pub m_align: u32,
#[doc = "< Flags"]
pub m_flagset: u32,
#[doc = "< Number of keys (can be 0)"]
pub m_nkeys: u32,
#[doc = "< Type name"]
pub m_typename: *const ::std::ffi::c_char,
#[doc = "< Key descriptors (NULL iff m_nkeys 0)"]
pub m_keys: *const dds_key_descriptor_t,
#[doc = "< Number of ops in m_ops"]
pub m_nops: u32,
#[doc = "< Marshalling meta data"]
pub m_ops: *const u32,
#[doc = "< XML topic description meta data"]
pub m_meta: *const ::std::ffi::c_char,
#[doc = "< XCDR2 serialized TypeInformation, only present if flag DDS_TOPIC_XTYPES_METADATA is set"]
pub type_information: dds_type_meta_ser,
#[doc = "< XCDR2 serialized TypeMapping: maps type-id to type object and minimal to complete type id,\nonly present if flag DDS_TOPIC_XTYPES_METADATA is set"]
pub type_mapping: dds_type_meta_ser,
#[doc = "< restrictions on the data representations allowed for the top-level type for this topic,\nonly present if flag DDS_TOPIC_RESTRICT_DATA_REPRESENTATION"]
pub restrict_data_representation: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_topic_descriptor"][::std::mem::size_of::<dds_topic_descriptor>() - 96usize];
["Alignment of dds_topic_descriptor"][::std::mem::align_of::<dds_topic_descriptor>() - 8usize];
["Offset of field: dds_topic_descriptor::m_size"]
[::std::mem::offset_of!(dds_topic_descriptor, m_size) - 0usize];
["Offset of field: dds_topic_descriptor::m_align"]
[::std::mem::offset_of!(dds_topic_descriptor, m_align) - 4usize];
["Offset of field: dds_topic_descriptor::m_flagset"]
[::std::mem::offset_of!(dds_topic_descriptor, m_flagset) - 8usize];
["Offset of field: dds_topic_descriptor::m_nkeys"]
[::std::mem::offset_of!(dds_topic_descriptor, m_nkeys) - 12usize];
["Offset of field: dds_topic_descriptor::m_typename"]
[::std::mem::offset_of!(dds_topic_descriptor, m_typename) - 16usize];
["Offset of field: dds_topic_descriptor::m_keys"]
[::std::mem::offset_of!(dds_topic_descriptor, m_keys) - 24usize];
["Offset of field: dds_topic_descriptor::m_nops"]
[::std::mem::offset_of!(dds_topic_descriptor, m_nops) - 32usize];
["Offset of field: dds_topic_descriptor::m_ops"]
[::std::mem::offset_of!(dds_topic_descriptor, m_ops) - 40usize];
["Offset of field: dds_topic_descriptor::m_meta"]
[::std::mem::offset_of!(dds_topic_descriptor, m_meta) - 48usize];
["Offset of field: dds_topic_descriptor::type_information"]
[::std::mem::offset_of!(dds_topic_descriptor, type_information) - 56usize];
["Offset of field: dds_topic_descriptor::type_mapping"]
[::std::mem::offset_of!(dds_topic_descriptor, type_mapping) - 72usize];
["Offset of field: dds_topic_descriptor::restrict_data_representation"]
[::std::mem::offset_of!(dds_topic_descriptor, restrict_data_representation) - 88usize];
};
impl Default for dds_topic_descriptor {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief Topic Descriptor\n @ingroup topic_definition\n @warning Unstable/Private API\n Contains all meta information about a type, usually produced by the IDL compiler\n Since this type is not intended for public consumption it can change without warning."]
pub type dds_topic_descriptor_t = dds_topic_descriptor;
#[doc = "< Retrieving any entity"]
pub const dds_entity_kind_DDS_KIND_DONTCARE: dds_entity_kind = 0;
#[doc = "< Topic entity"]
pub const dds_entity_kind_DDS_KIND_TOPIC: dds_entity_kind = 1;
#[doc = "< Domain Participant entity"]
pub const dds_entity_kind_DDS_KIND_PARTICIPANT: dds_entity_kind = 2;
#[doc = "< Reader entity"]
pub const dds_entity_kind_DDS_KIND_READER: dds_entity_kind = 3;
#[doc = "< Writer entity"]
pub const dds_entity_kind_DDS_KIND_WRITER: dds_entity_kind = 4;
#[doc = "< Subscriber entity"]
pub const dds_entity_kind_DDS_KIND_SUBSCRIBER: dds_entity_kind = 5;
#[doc = "< Publisher entity"]
pub const dds_entity_kind_DDS_KIND_PUBLISHER: dds_entity_kind = 6;
#[doc = "< ReadCondition entity"]
pub const dds_entity_kind_DDS_KIND_COND_READ: dds_entity_kind = 7;
#[doc = "< QueryCondition entity"]
pub const dds_entity_kind_DDS_KIND_COND_QUERY: dds_entity_kind = 8;
#[doc = "< GuardCondition entity"]
pub const dds_entity_kind_DDS_KIND_COND_GUARD: dds_entity_kind = 9;
#[doc = "< WaitSet entity"]
pub const dds_entity_kind_DDS_KIND_WAITSET: dds_entity_kind = 10;
#[doc = "< Domain entity"]
pub const dds_entity_kind_DDS_KIND_DOMAIN: dds_entity_kind = 11;
#[doc = "< CycloneDDS library entity"]
pub const dds_entity_kind_DDS_KIND_CYCLONEDDS: dds_entity_kind = 12;
#[doc = " @brief DDS Entity Kind constants\n @ingroup internal\n @warning Unstable/Private API\n Used throughout the library to indicate what entity is what."]
pub type dds_entity_kind = ::std::ffi::c_uint;
#[doc = " @brief DDS Entity Kind constants\n @ingroup internal\n @warning Unstable/Private API\n Used throughout the library to indicate what entity is what."]
pub use self::dds_entity_kind as dds_entity_kind_t;
#[doc = " @ingroup internal\n @warning Private API\n @brief Instance handles are uint64_t behind the scenes"]
pub type dds_instance_handle_t = u64;
#[doc = " @ingroup domain\n @brief Domain IDs are 32 bit unsigned integers."]
pub type dds_domainid_t = u32;
#[doc = "< locate the topic anywhere CycloneDDS knows about"]
pub const dds_find_scope_DDS_FIND_SCOPE_GLOBAL: dds_find_scope = 0;
#[doc = "< locate the topic locally within domain boundaries"]
pub const dds_find_scope_DDS_FIND_SCOPE_LOCAL_DOMAIN: dds_find_scope = 1;
#[doc = "< locate the topic within the current participant"]
pub const dds_find_scope_DDS_FIND_SCOPE_PARTICIPANT: dds_find_scope = 2;
#[doc = " @ingroup topic\n @brief Scope for dds_find_topic()"]
pub type dds_find_scope = ::std::ffi::c_uint;
#[doc = " @ingroup topic\n @brief Scope for dds_find_topic()"]
pub use self::dds_find_scope as dds_find_scope_t;
#[doc = "< XTypes Minimal Type ID"]
pub const dds_typeid_kind_DDS_TYPEID_MINIMAL: dds_typeid_kind = 0;
#[doc = "< XTypes Complete Type ID"]
pub const dds_typeid_kind_DDS_TYPEID_COMPLETE: dds_typeid_kind = 1;
#[doc = " @ingroup builtintopic\n @brief Type identifier kind for getting endpoint type identifier"]
pub type dds_typeid_kind = ::std::ffi::c_uint;
#[doc = " @ingroup builtintopic\n @brief Type identifier kind for getting endpoint type identifier"]
pub use self::dds_typeid_kind as dds_typeid_kind_t;
unsafe extern "C" {
#[doc = " @brief Enable or disable write batching.\n @component domain\n\n Overrides default configuration setting for write batching (Internal/WriteBatch).\n\n @param[in] enable Enables or disables write batching for all writers."]
pub fn dds_write_set_batch(enable: bool);
}
#[doc = "< Invalid Policy"]
pub const dds_qos_policy_id_DDS_INVALID_QOS_POLICY_ID: dds_qos_policy_id = 0;
#[doc = "< Userdata policy dds_qset_userdata()"]
pub const dds_qos_policy_id_DDS_USERDATA_QOS_POLICY_ID: dds_qos_policy_id = 1;
#[doc = "< Durability policy dds_qset_durability()"]
pub const dds_qos_policy_id_DDS_DURABILITY_QOS_POLICY_ID: dds_qos_policy_id = 2;
#[doc = "< Presentation policy dds_qset_presentation()"]
pub const dds_qos_policy_id_DDS_PRESENTATION_QOS_POLICY_ID: dds_qos_policy_id = 3;
#[doc = "< Deadline policy dds_qset_deadline()"]
pub const dds_qos_policy_id_DDS_DEADLINE_QOS_POLICY_ID: dds_qos_policy_id = 4;
#[doc = "< LatencyBudget policy dds_qset_latency_budget()"]
pub const dds_qos_policy_id_DDS_LATENCYBUDGET_QOS_POLICY_ID: dds_qos_policy_id = 5;
#[doc = "< Ownership policy dds_qset_ownership()"]
pub const dds_qos_policy_id_DDS_OWNERSHIP_QOS_POLICY_ID: dds_qos_policy_id = 6;
#[doc = "< OwnershipStrength policy dds_qset_ownership_strength()"]
pub const dds_qos_policy_id_DDS_OWNERSHIPSTRENGTH_QOS_POLICY_ID: dds_qos_policy_id = 7;
#[doc = "< Liveliness policy dds_qset_liveliness()"]
pub const dds_qos_policy_id_DDS_LIVELINESS_QOS_POLICY_ID: dds_qos_policy_id = 8;
#[doc = "< TimeBasedFilter policy dds_qset_time_based_filter()"]
pub const dds_qos_policy_id_DDS_TIMEBASEDFILTER_QOS_POLICY_ID: dds_qos_policy_id = 9;
#[doc = "< Partition policy dds_qset_partition()"]
pub const dds_qos_policy_id_DDS_PARTITION_QOS_POLICY_ID: dds_qos_policy_id = 10;
#[doc = "< Reliability policy dds_qset_reliability()"]
pub const dds_qos_policy_id_DDS_RELIABILITY_QOS_POLICY_ID: dds_qos_policy_id = 11;
#[doc = "< DestinationOrder policy dds_qset_destination_order()"]
pub const dds_qos_policy_id_DDS_DESTINATIONORDER_QOS_POLICY_ID: dds_qos_policy_id = 12;
#[doc = "< History policy dds_qset_history()"]
pub const dds_qos_policy_id_DDS_HISTORY_QOS_POLICY_ID: dds_qos_policy_id = 13;
#[doc = "< ResourceLimits policy dds_qset_resource_limits()"]
pub const dds_qos_policy_id_DDS_RESOURCELIMITS_QOS_POLICY_ID: dds_qos_policy_id = 14;
#[doc = "< EntityFactory policy"]
pub const dds_qos_policy_id_DDS_ENTITYFACTORY_QOS_POLICY_ID: dds_qos_policy_id = 15;
#[doc = "< WriterDataLifecycle policy dds_qset_writer_data_lifecycle()"]
pub const dds_qos_policy_id_DDS_WRITERDATALIFECYCLE_QOS_POLICY_ID: dds_qos_policy_id = 16;
#[doc = "< ReaderDataLifecycle policy dds_qset_reader_data_lifecycle()"]
pub const dds_qos_policy_id_DDS_READERDATALIFECYCLE_QOS_POLICY_ID: dds_qos_policy_id = 17;
#[doc = "< Topicdata policy dds_qset_topicdata()"]
pub const dds_qos_policy_id_DDS_TOPICDATA_QOS_POLICY_ID: dds_qos_policy_id = 18;
#[doc = "< Groupdata policy dds_qset_groupdata()"]
pub const dds_qos_policy_id_DDS_GROUPDATA_QOS_POLICY_ID: dds_qos_policy_id = 19;
#[doc = "< TransportPriority policy dds_qset_transport_priority()"]
pub const dds_qos_policy_id_DDS_TRANSPORTPRIORITY_QOS_POLICY_ID: dds_qos_policy_id = 20;
#[doc = "< Livespan policy dds_qset_lifespan()"]
pub const dds_qos_policy_id_DDS_LIFESPAN_QOS_POLICY_ID: dds_qos_policy_id = 21;
#[doc = "< DurabilityService policy dds_qset_durability_service()"]
pub const dds_qos_policy_id_DDS_DURABILITYSERVICE_QOS_POLICY_ID: dds_qos_policy_id = 22;
#[doc = "< Property policy dds_qset_property()"]
pub const dds_qos_policy_id_DDS_PROPERTY_QOS_POLICY_ID: dds_qos_policy_id = 23;
#[doc = "< TypeConsistencyEnforcement policy dds_qset_type_consistency_enforcements()"]
pub const dds_qos_policy_id_DDS_TYPE_CONSISTENCY_ENFORCEMENT_QOS_POLICY_ID: dds_qos_policy_id = 24;
#[doc = "< DataRepresentation policy dds_qset_data_representation()"]
pub const dds_qos_policy_id_DDS_DATA_REPRESENTATION_QOS_POLICY_ID: dds_qos_policy_id = 25;
#[doc = " @brief Qos Policy IDs\n @ingroup internal\n Used internally to mark the QoS policy type"]
pub type dds_qos_policy_id = ::std::ffi::c_uint;
#[doc = " @brief Qos Policy IDs\n @ingroup internal\n Used internally to mark the QoS policy type"]
pub use self::dds_qos_policy_id as dds_qos_policy_id_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_qos {
_unused: [u8; 0],
}
#[doc = " @brief QoS datatype\n @ingroup qos\n QoS structure is opaque"]
pub type dds_qos_t = dds_qos;
#[doc = "< Volatile durability"]
pub const dds_durability_kind_DDS_DURABILITY_VOLATILE: dds_durability_kind = 0;
#[doc = "< Transient Local durability"]
pub const dds_durability_kind_DDS_DURABILITY_TRANSIENT_LOCAL: dds_durability_kind = 1;
#[doc = "< Transient durability"]
pub const dds_durability_kind_DDS_DURABILITY_TRANSIENT: dds_durability_kind = 2;
#[doc = "< Persistent durability"]
pub const dds_durability_kind_DDS_DURABILITY_PERSISTENT: dds_durability_kind = 3;
#[doc = " @brief Durability QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub type dds_durability_kind = ::std::ffi::c_uint;
#[doc = " @brief Durability QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_durability_kind as dds_durability_kind_t;
#[doc = "< Keep Last history"]
pub const dds_history_kind_DDS_HISTORY_KEEP_LAST: dds_history_kind = 0;
#[doc = "< Keep All history"]
pub const dds_history_kind_DDS_HISTORY_KEEP_ALL: dds_history_kind = 1;
#[doc = " @brief History QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub type dds_history_kind = ::std::ffi::c_uint;
#[doc = " @brief History QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_history_kind as dds_history_kind_t;
#[doc = "< Shared Ownership"]
pub const dds_ownership_kind_DDS_OWNERSHIP_SHARED: dds_ownership_kind = 0;
#[doc = "< Exclusive Ownership"]
pub const dds_ownership_kind_DDS_OWNERSHIP_EXCLUSIVE: dds_ownership_kind = 1;
#[doc = " @brief Ownership QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub type dds_ownership_kind = ::std::ffi::c_uint;
#[doc = " @brief Ownership QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_ownership_kind as dds_ownership_kind_t;
#[doc = "< Automatic liveliness"]
pub const dds_liveliness_kind_DDS_LIVELINESS_AUTOMATIC: dds_liveliness_kind = 0;
#[doc = "< Manual by Participant liveliness"]
pub const dds_liveliness_kind_DDS_LIVELINESS_MANUAL_BY_PARTICIPANT: dds_liveliness_kind = 1;
#[doc = "< Manual by Topic liveliness"]
pub const dds_liveliness_kind_DDS_LIVELINESS_MANUAL_BY_TOPIC: dds_liveliness_kind = 2;
#[doc = " @brief Liveliness QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub type dds_liveliness_kind = ::std::ffi::c_uint;
#[doc = " @brief Liveliness QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_liveliness_kind as dds_liveliness_kind_t;
#[doc = "< Best Effort reliability"]
pub const dds_reliability_kind_DDS_RELIABILITY_BEST_EFFORT: dds_reliability_kind = 0;
#[doc = "< Reliable reliability"]
pub const dds_reliability_kind_DDS_RELIABILITY_RELIABLE: dds_reliability_kind = 1;
#[doc = " @brief Reliability QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub type dds_reliability_kind = ::std::ffi::c_uint;
#[doc = " @brief Reliability QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_reliability_kind as dds_reliability_kind_t;
#[doc = "< order by reception timestamp"]
pub const dds_destination_order_kind_DDS_DESTINATIONORDER_BY_RECEPTION_TIMESTAMP:
dds_destination_order_kind = 0;
#[doc = "< order by source timestamp"]
pub const dds_destination_order_kind_DDS_DESTINATIONORDER_BY_SOURCE_TIMESTAMP:
dds_destination_order_kind = 1;
#[doc = " @brief DestinationOrder QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub type dds_destination_order_kind = ::std::ffi::c_uint;
#[doc = " @brief DestinationOrder QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_destination_order_kind as dds_destination_order_kind_t;
#[doc = "< presentation scope per instance"]
pub const dds_presentation_access_scope_kind_DDS_PRESENTATION_INSTANCE:
dds_presentation_access_scope_kind = 0;
#[doc = "< presentation scope per topic"]
pub const dds_presentation_access_scope_kind_DDS_PRESENTATION_TOPIC:
dds_presentation_access_scope_kind = 1;
#[doc = "< presentation scope per group"]
pub const dds_presentation_access_scope_kind_DDS_PRESENTATION_GROUP:
dds_presentation_access_scope_kind = 2;
#[doc = " @brief Presentation QoS: Applies to Publisher, Subscriber\n @ingroup qos"]
pub type dds_presentation_access_scope_kind = ::std::ffi::c_uint;
#[doc = " @brief Presentation QoS: Applies to Publisher, Subscriber\n @ingroup qos"]
pub use self::dds_presentation_access_scope_kind as dds_presentation_access_scope_kind_t;
#[doc = "< Don't ignore local data"]
pub const dds_ignorelocal_kind_DDS_IGNORELOCAL_NONE: dds_ignorelocal_kind = 0;
#[doc = "< Ignore local data from same participant"]
pub const dds_ignorelocal_kind_DDS_IGNORELOCAL_PARTICIPANT: dds_ignorelocal_kind = 1;
#[doc = "< Ignore local data from same process"]
pub const dds_ignorelocal_kind_DDS_IGNORELOCAL_PROCESS: dds_ignorelocal_kind = 2;
#[doc = " @brief Ignore-local QoS: Applies to DataReader, DataWriter\n @ingroup qos"]
pub type dds_ignorelocal_kind = ::std::ffi::c_uint;
#[doc = " @brief Ignore-local QoS: Applies to DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_ignorelocal_kind as dds_ignorelocal_kind_t;
#[doc = "< Do not allow type coercion"]
pub const dds_type_consistency_kind_DDS_TYPE_CONSISTENCY_DISALLOW_TYPE_COERCION:
dds_type_consistency_kind = 0;
#[doc = "< Allow type coercion"]
pub const dds_type_consistency_kind_DDS_TYPE_CONSISTENCY_ALLOW_TYPE_COERCION:
dds_type_consistency_kind = 1;
#[doc = " @brief Type-consistency QoS: Applies to DataReader, DataWriter\n @ingroup qos"]
pub type dds_type_consistency_kind = ::std::ffi::c_uint;
#[doc = " @brief Type-consistency QoS: Applies to DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_type_consistency_kind as dds_type_consistency_kind_t;
#[doc = " @brief Data Representation QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub type dds_data_representation_id_t = i16;
unsafe extern "C" {
#[doc = " @ingroup qos\n @component qos_obj\n @brief Allocate memory and initialize default QoS-policies\n\n @returns - Pointer to the initialized dds_qos_t structure, NULL if unsuccessful."]
pub fn dds_create_qos() -> *mut dds_qos_t;
}
unsafe extern "C" {
#[doc = " @ingroup qos\n @component qos_obj\n @brief Delete memory allocated to QoS-policies structure\n\n @param[in] qos - Pointer to dds_qos_t structure"]
pub fn dds_delete_qos(qos: *mut dds_qos_t);
}
unsafe extern "C" {
#[doc = " @ingroup qos\n @component qos_obj\n @brief Reset a QoS-policies structure to default values\n\n @param[in,out] qos - Pointer to the dds_qos_t structure"]
pub fn dds_reset_qos(qos: *mut dds_qos_t);
}
unsafe extern "C" {
#[doc = " @ingroup qos\n @component qos_obj\n @brief Copy all QoS-policies from one structure to another\n\n @param[in,out] dst - Pointer to the destination dds_qos_t structure\n @param[in] src - Pointer to the source dds_qos_t structure\n\n @returns - Return-code indicating success or failure"]
pub fn dds_copy_qos(dst: *mut dds_qos_t, src: *const dds_qos_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup qos\n @component qos_obj\n @brief Copy all QoS-policies from one structure to another, unless already set\n\n Policies are copied from src to dst, unless src already has the policy set to a non-default value.\n\n @param[in,out] dst - Pointer to the destination qos structure\n @param[in] src - Pointer to the source qos structure"]
pub fn dds_merge_qos(dst: *mut dds_qos_t, src: *const dds_qos_t);
}
unsafe extern "C" {
#[doc = " @ingroup qos\n @component qos_obj\n @brief Check if two qos structures contain the same set of QoS-policies.\n\n @param[in] a - Pointer to a qos structure\n @param[in] b - Pointer to a qos structure\n\n @returns whether the two qos structures contain the same set of QoS-policies"]
pub fn dds_qos_equal(a: *const dds_qos_t, b: *const dds_qos_t) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the userdata of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the userdata\n @param[in] value - Pointer to the userdata\n @param[in] sz - Size of userdata stored in value"]
pub fn dds_qset_userdata(qos: *mut dds_qos_t, value: *const ::std::ffi::c_void, sz: usize);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the topicdata of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the topicdata\n @param[in] value - Pointer to the topicdata\n @param[in] sz - Size of the topicdata stored in value"]
pub fn dds_qset_topicdata(qos: *mut dds_qos_t, value: *const ::std::ffi::c_void, sz: usize);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the groupdata of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the groupdata\n @param[in] value - Pointer to the group data\n @param[in] sz - Size of groupdata stored in value"]
pub fn dds_qset_groupdata(qos: *mut dds_qos_t, value: *const ::std::ffi::c_void, sz: usize);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the durability policy of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] kind - Durability kind value"]
pub fn dds_qset_durability(qos: *mut dds_qos_t, kind: dds_durability_kind_t);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the history policy of a qos structure.\n\n Note that depth is only relevant for keep last. If you want limited history for keep all, use dds_qset_resource_limits().\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] kind - History kind value\n @param[in] depth - History depth value"]
pub fn dds_qset_history(qos: *mut dds_qos_t, kind: dds_history_kind_t, depth: i32);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the resource limits policy of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] max_samples - Number of samples resource-limit value\n @param[in] max_instances - Number of instances resource-limit value\n @param[in] max_samples_per_instance - Number of samples per instance resource-limit value"]
pub fn dds_qset_resource_limits(
qos: *mut dds_qos_t,
max_samples: i32,
max_instances: i32,
max_samples_per_instance: i32,
);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the presentation policy of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] access_scope - Access-scope kind\n @param[in] coherent_access - Coherent access enable value\n @param[in] ordered_access - Ordered access enable value"]
pub fn dds_qset_presentation(
qos: *mut dds_qos_t,
access_scope: dds_presentation_access_scope_kind_t,
coherent_access: bool,
ordered_access: bool,
);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the lifespan policy of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] lifespan - Lifespan duration (expiration time relative to source timestamp of a sample)"]
pub fn dds_qset_lifespan(qos: *mut dds_qos_t, lifespan: dds_duration_t);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the deadline policy of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] deadline - Deadline duration"]
pub fn dds_qset_deadline(qos: *mut dds_qos_t, deadline: dds_duration_t);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the latency-budget policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] duration - Latency budget duration"]
pub fn dds_qset_latency_budget(qos: *mut dds_qos_t, duration: dds_duration_t);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the ownership policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] kind - Ownership kind"]
pub fn dds_qset_ownership(qos: *mut dds_qos_t, kind: dds_ownership_kind_t);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the ownership strength policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] value - Ownership strength value"]
pub fn dds_qset_ownership_strength(qos: *mut dds_qos_t, value: i32);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the liveliness policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] kind - Liveliness kind\n @param[in] lease_duration - Lease duration"]
pub fn dds_qset_liveliness(
qos: *mut dds_qos_t,
kind: dds_liveliness_kind_t,
lease_duration: dds_duration_t,
);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the time-based filter policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] minimum_separation - Minimum duration between sample delivery for an instance"]
pub fn dds_qset_time_based_filter(qos: *mut dds_qos_t, minimum_separation: dds_duration_t);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the partition policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] n - Number of partitions stored in ps\n @param[in] ps - Pointer to string(s) storing partition name(s)"]
pub fn dds_qset_partition(qos: *mut dds_qos_t, n: u32, ps: *mut *const ::std::ffi::c_char);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Convenience function to set the partition policy of a qos structure to a\n single name. Name may be a null pointer.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] name - Pointer to the name"]
pub fn dds_qset_partition1(qos: *mut dds_qos_t, name: *const ::std::ffi::c_char);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the reliability policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] kind - Reliability kind\n @param[in] max_blocking_time - Max blocking duration applied when kind is reliable. This is how long the writer will block when its history is full."]
pub fn dds_qset_reliability(
qos: *mut dds_qos_t,
kind: dds_reliability_kind_t,
max_blocking_time: dds_duration_t,
);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the transport-priority policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] value - Priority value"]
pub fn dds_qset_transport_priority(qos: *mut dds_qos_t, value: i32);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the destination-order policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] kind - Destination-order kind"]
pub fn dds_qset_destination_order(qos: *mut dds_qos_t, kind: dds_destination_order_kind_t);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the writer data-lifecycle policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] autodispose - Automatic disposal of unregistered instances"]
pub fn dds_qset_writer_data_lifecycle(qos: *mut dds_qos_t, autodispose: bool);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the reader data-lifecycle policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] autopurge_nowriter_samples_delay - Delay for purging of samples from instances in a no-writers state\n @param[in] autopurge_disposed_samples_delay - Delay for purging of samples from disposed instances"]
pub fn dds_qset_reader_data_lifecycle(
qos: *mut dds_qos_t,
autopurge_nowriter_samples_delay: dds_duration_t,
autopurge_disposed_samples_delay: dds_duration_t,
);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the writer batching policy of a qos structure\n\n When batching is disabled, each write/dispose/unregister operation results in its own\n RTPS message that is sent out onto the transport. For small data types, this means\n most messages (and hence network packets) are small. As a consequence the fixed cost\n of processing a message (or packet) increases load.\n\n Enabling write batching causes the samples to be aggregated into a single larger RTPS\n message. This improves efficiency by spreading the fixed cost out over more samples.\n Naturally this increases latency a bit.\n\n The batching mechanism may or may not send out packets on a write/&c. operation. It\n buffers only a limited amount and will send out what has been buffered when a new\n write/&c. can not be added. To guarantee that the buffered data is sent, one must call\n \"dds_flush\".\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] batch_updates - Whether writes should be batched"]
pub fn dds_qset_writer_batching(qos: *mut dds_qos_t, batch_updates: bool);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the durability-service policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] service_cleanup_delay - Delay for purging of abandoned instances from the durability service\n @param[in] history_kind - History policy kind applied by the durability service\n @param[in] history_depth - History policy depth applied by the durability service\n @param[in] max_samples - Number of samples resource-limit policy applied by the durability service\n @param[in] max_instances - Number of instances resource-limit policy applied by the durability service\n @param[in] max_samples_per_instance - Number of samples per instance resource-limit policy applied by the durability service"]
pub fn dds_qset_durability_service(
qos: *mut dds_qos_t,
service_cleanup_delay: dds_duration_t,
history_kind: dds_history_kind_t,
history_depth: i32,
max_samples: i32,
max_instances: i32,
max_samples_per_instance: i32,
);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the ignore-local policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] ignore - True if readers and writers owned by the same participant should be ignored"]
pub fn dds_qset_ignorelocal(qos: *mut dds_qos_t, ignore: dds_ignorelocal_kind_t);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Stores a property with the provided name and string value in a qos structure.\n\n In the case a property with the provided name already exists in the qos structure,\n the value for this entry is overwritten with the provided string value. If more than\n one property with the provided name exists, only the value of the first of these\n properties is updated.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the property\n @param[in] name - Pointer to name of the property\n @param[in] value - Pointer to a (null-terminated) string that will be stored"]
pub fn dds_qset_prop(
qos: *mut dds_qos_t,
name: *const ::std::ffi::c_char,
value: *const ::std::ffi::c_char,
);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Stores a property with the provided name and string value and propagate in a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the property\n @param[in] name - Pointer to name of the property\n @param[in] value - Pointer to a (null-terminated) string that will be stored\n @param[in] propagate - Whether to propagate the property over discovery or not"]
pub fn dds_qset_prop_propagate(
qos: *mut dds_qos_t,
name: *const ::std::ffi::c_char,
value: *const ::std::ffi::c_char,
propagate: bool,
);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Removes the property with the provided name from a qos structure.\n\n In case more than one property exists with this name, only the first property\n is removed.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains the property\n @param[in] name - Pointer to name of the property"]
pub fn dds_qunset_prop(qos: *mut dds_qos_t, name: *const ::std::ffi::c_char);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Stores the provided binary data as a property in a qos structure\n\n In the case a property with the provided name already exists in the qos structure,\n the value for this entry is overwritten with the provided data. If more than one\n property with the provided name exists, only the value of the first of these\n properties is updated.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the property\n @param[in] name - Pointer to name of the property\n @param[in] value - Pointer to data to be stored in the property\n @param[in] sz - Size of the data"]
pub fn dds_qset_bprop(
qos: *mut dds_qos_t,
name: *const ::std::ffi::c_char,
value: *const ::std::ffi::c_void,
sz: usize,
);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Stores the provided binary data and propagate as a property in a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the property\n @param[in] name - Pointer to name of the property\n @param[in] value - Pointer to data to be stored in the property\n @param[in] sz - Size of the data\n @param[in] propagate - Whether to propagate the property over discovery or not"]
pub fn dds_qset_bprop_propagate(
qos: *mut dds_qos_t,
name: *const ::std::ffi::c_char,
value: *const ::std::ffi::c_void,
sz: usize,
propagate: bool,
);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Removes the binary property with the provided name from a qos structure.\n\n In case more than one binary property exists with this name, only the first binary\n property is removed.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains the binary property\n @param[in] name - Pointer to name of the property"]
pub fn dds_qunset_bprop(qos: *mut dds_qos_t, name: *const ::std::ffi::c_char);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the type consistency enforcement policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] kind - Type consistency policy kind\n @param[in] ignore_sequence_bounds - Ignore sequence bounds in type assignability checking\n @param[in] ignore_string_bounds - Ignore string bounds in type assignability checking\n @param[in] ignore_member_names - Ignore member names in type assignability checking\n @param[in] prevent_type_widening - Prevent type widening in type assignability checking\n @param[in] force_type_validation - Force type validation in assignability checking"]
pub fn dds_qset_type_consistency(
qos: *mut dds_qos_t,
kind: dds_type_consistency_kind_t,
ignore_sequence_bounds: bool,
ignore_string_bounds: bool,
ignore_member_names: bool,
prevent_type_widening: bool,
force_type_validation: bool,
);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the data representation of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] n - Number of data representation values\n @param[in] values - Data representation values"]
pub fn dds_qset_data_representation(
qos: *mut dds_qos_t,
n: u32,
values: *const dds_data_representation_id_t,
);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the entity name.\n\n When using this QoS to initialize a participant, publisher, subscriber, reader or writer\n it will take the name set here. This name is visible over discovery and can be used\n to make sense of network in tooling.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the entity name.\n @param[in] name - Pointer to the entity name to set."]
pub fn dds_qset_entity_name(qos: *mut dds_qos_t, name: *const ::std::ffi::c_char);
}
unsafe extern "C" {
#[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the enabled PSMX Instances in a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] n - Number of PSMX Instances Names in `values`\n @param[in] values - Array of PSMX Instance Names"]
pub fn dds_qset_psmx_instances(
qos: *mut dds_qos_t,
n: u32,
values: *mut *const ::std::ffi::c_char,
);
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the userdata from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] value - Pointer that will store the userdata. If sz = 0, then a null pointer, else it is a pointer to an allocated buffer of sz+1 bytes where the last byte is always 0\n @param[in,out] sz - Pointer that will store the size of userdata\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_userdata(
qos: *const dds_qos_t,
value: *mut *mut ::std::ffi::c_void,
sz: *mut usize,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the topicdata from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] value - Pointer that will store the topicdata. If sz = 0, then a null pointer, else it is a pointer to an allocated buffer of sz+1 bytes where the last byte is always 0\n @param[in,out] sz - Pointer that will store the size of topicdata\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_topicdata(
qos: *const dds_qos_t,
value: *mut *mut ::std::ffi::c_void,
sz: *mut usize,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the groupdata from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] value - Pointer that will store the groupdata. If sz = 0, then a null pointer, else it is a pointer to an allocated buffer of sz+1 bytes where the last byte is always 0\n @param[in,out] sz - Pointer that will store the size of groupdata\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_groupdata(
qos: *const dds_qos_t,
value: *mut *mut ::std::ffi::c_void,
sz: *mut usize,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the durability policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] kind - Pointer that will store the durability kind\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_durability(qos: *const dds_qos_t, kind: *mut dds_durability_kind_t) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the history policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] kind - Pointer that will store the history kind (optional)\n @param[in,out] depth - Pointer that will store the history depth (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_history(
qos: *const dds_qos_t,
kind: *mut dds_history_kind_t,
depth: *mut i32,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the resource-limits policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] max_samples - Pointer that will store the number of samples resource-limit (optional)\n @param[in,out] max_instances - Pointer that will store the number of instances resource-limit (optional)\n @param[in,out] max_samples_per_instance - Pointer that will store the number of samples per instance resource-limit (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_resource_limits(
qos: *const dds_qos_t,
max_samples: *mut i32,
max_instances: *mut i32,
max_samples_per_instance: *mut i32,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the presentation policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] access_scope - Pointer that will store access scope kind (optional)\n @param[in,out] coherent_access - Pointer that will store coherent access enable value (optional)\n @param[in,out] ordered_access - Pointer that will store orderede access enable value (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_presentation(
qos: *const dds_qos_t,
access_scope: *mut dds_presentation_access_scope_kind_t,
coherent_access: *mut bool,
ordered_access: *mut bool,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the lifespan policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] lifespan - Pointer that will store lifespan duration\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_lifespan(qos: *const dds_qos_t, lifespan: *mut dds_duration_t) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the deadline policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] deadline - Pointer that will store deadline duration\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_deadline(qos: *const dds_qos_t, deadline: *mut dds_duration_t) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the latency-budget policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] duration - Pointer that will store latency-budget duration\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_latency_budget(qos: *const dds_qos_t, duration: *mut dds_duration_t) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the ownership policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] kind - Pointer that will store the ownership kind\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_ownership(qos: *const dds_qos_t, kind: *mut dds_ownership_kind_t) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the ownership strength qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] value - Pointer that will store the ownership strength value\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_ownership_strength(qos: *const dds_qos_t, value: *mut i32) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the liveliness qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] kind - Pointer that will store the liveliness kind (optional)\n @param[in,out] lease_duration - Pointer that will store the liveliness lease duration (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_liveliness(
qos: *const dds_qos_t,
kind: *mut dds_liveliness_kind_t,
lease_duration: *mut dds_duration_t,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the time-based filter qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] minimum_separation - Pointer that will store the minimum separation duration (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_time_based_filter(
qos: *const dds_qos_t,
minimum_separation: *mut dds_duration_t,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the partition qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] n - Pointer that will store the number of partitions (optional)\n @param[in,out] ps - Pointer that will store the string(s) containing partition name(s) (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_partition(
qos: *const dds_qos_t,
n: *mut u32,
ps: *mut *mut *mut ::std::ffi::c_char,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the reliability qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] kind - Pointer that will store the reliability kind (optional)\n @param[in,out] max_blocking_time - Pointer that will store the max blocking time for reliable reliability (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_reliability(
qos: *const dds_qos_t,
kind: *mut dds_reliability_kind_t,
max_blocking_time: *mut dds_duration_t,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the transport priority qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] value - Pointer that will store the transport priority value\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_transport_priority(qos: *const dds_qos_t, value: *mut i32) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the destination-order qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] kind - Pointer that will store the destination-order kind\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_destination_order(
qos: *const dds_qos_t,
kind: *mut dds_destination_order_kind_t,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the writer data-lifecycle qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] autodispose - Pointer that will store the autodispose unregistered instances enable value\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_writer_data_lifecycle(qos: *const dds_qos_t, autodispose: *mut bool) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the reader data-lifecycle qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] autopurge_nowriter_samples_delay - Pointer that will store the delay for auto-purging samples from instances in a no-writer state (optional)\n @param[in,out] autopurge_disposed_samples_delay - Pointer that will store the delay for auto-purging of disposed instances (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_reader_data_lifecycle(
qos: *const dds_qos_t,
autopurge_nowriter_samples_delay: *mut dds_duration_t,
autopurge_disposed_samples_delay: *mut dds_duration_t,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the writer batching qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] batch_updates - Pointer that will store the batching enable value\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_writer_batching(qos: *const dds_qos_t, batch_updates: *mut bool) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the durability-service qos policy values.\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] service_cleanup_delay - Pointer that will store the delay for purging of abandoned instances from the durability service (optional)\n @param[in,out] history_kind - Pointer that will store history policy kind applied by the durability service (optional)\n @param[in,out] history_depth - Pointer that will store history policy depth applied by the durability service (optional)\n @param[in,out] max_samples - Pointer that will store number of samples resource-limit policy applied by the durability service (optional)\n @param[in,out] max_instances - Pointer that will store number of instances resource-limit policy applied by the durability service (optional)\n @param[in,out] max_samples_per_instance - Pointer that will store number of samples per instance resource-limit policy applied by the durability service (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_durability_service(
qos: *const dds_qos_t,
service_cleanup_delay: *mut dds_duration_t,
history_kind: *mut dds_history_kind_t,
history_depth: *mut i32,
max_samples: *mut i32,
max_instances: *mut i32,
max_samples_per_instance: *mut i32,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the ignore-local qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] ignore - Pointer that will store whether to ignore readers/writers owned by the same participant (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_ignorelocal(qos: *const dds_qos_t, ignore: *mut dds_ignorelocal_kind_t)
-> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Gets the names of the properties from a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains properties\n @param[in,out] n - Pointer to number of property names that are returned (optional)\n @param[in,out] names - Pointer that will store the string(s) containing property name(s) (optional). This function will allocate the memory for the list of names and for the strings containing the names; the caller gets ownership of the allocated memory\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_propnames(
qos: *const dds_qos_t,
n: *mut u32,
names: *mut *mut *mut ::std::ffi::c_char,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the value of the property with the provided name from a qos structure.\n\n In case more than one property exists with this name, the value for the first\n property with this name will be returned.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains the property\n @param[in] name - Pointer to name of the property\n @param[in,out] value - Pointer to a string that will store the value of the property. The memory for storing the string value will be allocated by this function and the caller gets ownership of the allocated memory\n\n @returns - false iff any of the arguments is invalid, the qos is not present in the qos object or there was no property found with the provided name"]
pub fn dds_qget_prop(
qos: *const dds_qos_t,
name: *const ::std::ffi::c_char,
value: *mut *mut ::std::ffi::c_char,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the value of the property with the provided name and propagate from a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains the property\n @param[in] name - Pointer to name of the property\n @param[in,out] value - Pointer to a string that will store the value of the property. The memory for storing the string value will be allocated by this function and the caller gets ownership of the allocated memory\n @param[in,out] propagate - Pointer that will store if property gets propagated or not\n\n @returns - false if any of the arguments is invalid, the qos is not present in the qos object or there was no property found with the provided name"]
pub fn dds_qget_prop_propagate(
qos: *const dds_qos_t,
name: *const ::std::ffi::c_char,
value: *mut *mut ::std::ffi::c_char,
propagate: *mut bool,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Gets the names of the binary properties from a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains binary properties\n @param[in,out] n - Pointer to number of binary property names that are returned (optional)\n @param[in,out] names - Pointer that will store the string(s) containing binary property name(s) (optional). This function will allocate the memory for the list of names and for the strings containing the names; the caller gets ownership of the allocated memory\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_bpropnames(
qos: *const dds_qos_t,
n: *mut u32,
names: *mut *mut *mut ::std::ffi::c_char,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the value of the binary property with the provided name from a qos structure.\n\n In case more than one binary property exists with this name, the value for the first\n binary property with this name will be returned.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains the property\n @param[in] name - Pointer to name of the binary property\n @param[in,out] value - Pointer to a buffer that will store the value of the property. If sz = 0 then a NULL pointer. The memory for storing the value will be allocated by this function and the caller gets ownership of the allocated memory\n @param[in,out] sz - Pointer that will store the size of the returned buffer.\n\n @returns - false iff any of the arguments is invalid, the qos is not present in the qos object or there was no binary property found with the provided name"]
pub fn dds_qget_bprop(
qos: *const dds_qos_t,
name: *const ::std::ffi::c_char,
value: *mut *mut ::std::ffi::c_void,
sz: *mut usize,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the value of the binary property with the provided name and propagate from a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains the property\n @param[in] name - Pointer to name of the binary property\n @param[in,out] value - Pointer to a buffer that will store the value of the property. If sz = 0 then a NULL pointer. The memory for storing the value will be allocated by this function and the caller gets ownership of the allocated memory\n @param[in,out] sz - Pointer that will store the size of the returned buffer.\n @param[in,out] propagate - Pointer that will store if property gets propagated or not\n\n @returns - false iff any of the arguments is invalid, the qos is not present in the qos object or there was no binary property found with the provided name"]
pub fn dds_qget_bprop_propagate(
qos: *const dds_qos_t,
name: *const ::std::ffi::c_char,
value: *mut *mut ::std::ffi::c_void,
sz: *mut usize,
propagate: *mut bool,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the type consistency enforcement qos policy values.\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] kind - Pointer that will store the type consistency enforcement kind (optional)\n @param[in,out] ignore_sequence_bounds - Pointer that will store the boolean value for ignoring sequence bounds in type assignability checking (optional)\n @param[in,out] ignore_string_bounds - Pointer that will store the boolean value for ignoring string bounds in type assignability checking (optional)\n @param[in,out] ignore_member_names - Pointer that will store the boolean value for ignoring member names in type assignability checking (optional)\n @param[in,out] prevent_type_widening - Pointer that will store the boolean value to prevent type widening in type assignability checking (optional)\n @param[in,out] force_type_validation - Pointer that will store the boolean value to force type validation in assignability checking (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_type_consistency(
qos: *const dds_qos_t,
kind: *mut dds_type_consistency_kind_t,
ignore_sequence_bounds: *mut bool,
ignore_string_bounds: *mut bool,
ignore_member_names: *mut bool,
prevent_type_widening: *mut bool,
force_type_validation: *mut bool,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the data representation qos policy value.\n\n Returns the data representation values that are set in the provided QoS object\n and stores the number of values in out parameter 'n'. In case the 'values' parameter\n is provided, this function will allocate a buffer that contains the data representation\n values, and set 'values' to point to this buffer. It is the responsibility of the caller\n to free the memory of this buffer.\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] n - Pointer that will store the number of data representation values\n @param[in,out] values - Pointer that will store the data representation values (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
pub fn dds_qget_data_representation(
qos: *const dds_qos_t,
n: *mut u32,
values: *mut *mut dds_data_representation_id_t,
) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the entity name from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the entity name\n @param[in,out] name - Pointer to a string that will store the returned entity name\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object\n or if a buffer to store the name could not be allocated."]
pub fn dds_qget_entity_name(qos: *const dds_qos_t, name: *mut *mut ::std::ffi::c_char) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Gets the names of the PSMX Instances set in a qos structure\n\n @param qos Pointer to a dds_qos_t structure\n @param n_out Number of PSMX Instance Names returned\n @param values Array of pointers to PSMX instance Names\n @return bool indicating success or failure"]
pub fn dds_qget_psmx_instances(
qos: *const dds_qos_t,
n_out: *mut u32,
values: *mut *mut *mut ::std::ffi::c_char,
) -> bool;
}
pub type dds_fail_fn = ::std::option::Option<
unsafe extern "C" fn(arg1: *const ::std::ffi::c_char, arg2: *const ::std::ffi::c_char),
>;
unsafe extern "C" {
pub fn dds_fail_set(fn_: dds_fail_fn);
}
unsafe extern "C" {
pub fn dds_fail_get() -> dds_fail_fn;
}
unsafe extern "C" {
pub fn dds_err_str(err: dds_return_t) -> *const ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn dds_fail(msg: *const ::std::ffi::c_char, where_: *const ::std::ffi::c_char);
}
unsafe extern "C" {
pub fn dds_err_check(
err: dds_return_t,
flags: ::std::ffi::c_uint,
where_: *const ::std::ffi::c_char,
) -> bool;
}
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_OfferedDeadlineMissed\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_offered_deadline_missed_status {
#[doc = "< DOC_TODO"]
pub total_count: u32,
#[doc = "< DOC_TODO"]
pub total_count_change: i32,
#[doc = "< DOC_TODO"]
pub last_instance_handle: dds_instance_handle_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_offered_deadline_missed_status"]
[::std::mem::size_of::<dds_offered_deadline_missed_status>() - 16usize];
["Alignment of dds_offered_deadline_missed_status"]
[::std::mem::align_of::<dds_offered_deadline_missed_status>() - 8usize];
["Offset of field: dds_offered_deadline_missed_status::total_count"]
[::std::mem::offset_of!(dds_offered_deadline_missed_status, total_count) - 0usize];
["Offset of field: dds_offered_deadline_missed_status::total_count_change"]
[::std::mem::offset_of!(dds_offered_deadline_missed_status, total_count_change) - 4usize];
["Offset of field: dds_offered_deadline_missed_status::last_instance_handle"]
[::std::mem::offset_of!(dds_offered_deadline_missed_status, last_instance_handle) - 8usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_OfferedDeadlineMissed\n DOC_TODO"]
pub type dds_offered_deadline_missed_status_t = dds_offered_deadline_missed_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_OfferedIncompatibleQoS\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_offered_incompatible_qos_status {
#[doc = "< DOC_TODO"]
pub total_count: u32,
#[doc = "< DOC_TODO"]
pub total_count_change: i32,
#[doc = "< DOC_TODO"]
pub last_policy_id: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_offered_incompatible_qos_status"]
[::std::mem::size_of::<dds_offered_incompatible_qos_status>() - 12usize];
["Alignment of dds_offered_incompatible_qos_status"]
[::std::mem::align_of::<dds_offered_incompatible_qos_status>() - 4usize];
["Offset of field: dds_offered_incompatible_qos_status::total_count"]
[::std::mem::offset_of!(dds_offered_incompatible_qos_status, total_count) - 0usize];
["Offset of field: dds_offered_incompatible_qos_status::total_count_change"]
[::std::mem::offset_of!(dds_offered_incompatible_qos_status, total_count_change) - 4usize];
["Offset of field: dds_offered_incompatible_qos_status::last_policy_id"]
[::std::mem::offset_of!(dds_offered_incompatible_qos_status, last_policy_id) - 8usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_OfferedIncompatibleQoS\n DOC_TODO"]
pub type dds_offered_incompatible_qos_status_t = dds_offered_incompatible_qos_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_PublicationMatched\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_publication_matched_status {
#[doc = "< DOC_TODO"]
pub total_count: u32,
#[doc = "< DOC_TODO"]
pub total_count_change: i32,
#[doc = "< DOC_TODO"]
pub current_count: u32,
#[doc = "< DOC_TODO"]
pub current_count_change: i32,
#[doc = "< DOC_TODO"]
pub last_subscription_handle: dds_instance_handle_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_publication_matched_status"]
[::std::mem::size_of::<dds_publication_matched_status>() - 24usize];
["Alignment of dds_publication_matched_status"]
[::std::mem::align_of::<dds_publication_matched_status>() - 8usize];
["Offset of field: dds_publication_matched_status::total_count"]
[::std::mem::offset_of!(dds_publication_matched_status, total_count) - 0usize];
["Offset of field: dds_publication_matched_status::total_count_change"]
[::std::mem::offset_of!(dds_publication_matched_status, total_count_change) - 4usize];
["Offset of field: dds_publication_matched_status::current_count"]
[::std::mem::offset_of!(dds_publication_matched_status, current_count) - 8usize];
["Offset of field: dds_publication_matched_status::current_count_change"]
[::std::mem::offset_of!(dds_publication_matched_status, current_count_change) - 12usize];
["Offset of field: dds_publication_matched_status::last_subscription_handle"][::std::mem::offset_of!(
dds_publication_matched_status,
last_subscription_handle
) - 16usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_PublicationMatched\n DOC_TODO"]
pub type dds_publication_matched_status_t = dds_publication_matched_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_LivelinessLost\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_liveliness_lost_status {
#[doc = "< DOC_TODO"]
pub total_count: u32,
#[doc = "< DOC_TODO"]
pub total_count_change: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_liveliness_lost_status"]
[::std::mem::size_of::<dds_liveliness_lost_status>() - 8usize];
["Alignment of dds_liveliness_lost_status"]
[::std::mem::align_of::<dds_liveliness_lost_status>() - 4usize];
["Offset of field: dds_liveliness_lost_status::total_count"]
[::std::mem::offset_of!(dds_liveliness_lost_status, total_count) - 0usize];
["Offset of field: dds_liveliness_lost_status::total_count_change"]
[::std::mem::offset_of!(dds_liveliness_lost_status, total_count_change) - 4usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_LivelinessLost\n DOC_TODO"]
pub type dds_liveliness_lost_status_t = dds_liveliness_lost_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_SubscriptionMatched\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_subscription_matched_status {
#[doc = "< DOC_TODO"]
pub total_count: u32,
#[doc = "< DOC_TODO"]
pub total_count_change: i32,
#[doc = "< DOC_TODO"]
pub current_count: u32,
#[doc = "< DOC_TODO"]
pub current_count_change: i32,
#[doc = "< DOC_TODO"]
pub last_publication_handle: dds_instance_handle_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_subscription_matched_status"]
[::std::mem::size_of::<dds_subscription_matched_status>() - 24usize];
["Alignment of dds_subscription_matched_status"]
[::std::mem::align_of::<dds_subscription_matched_status>() - 8usize];
["Offset of field: dds_subscription_matched_status::total_count"]
[::std::mem::offset_of!(dds_subscription_matched_status, total_count) - 0usize];
["Offset of field: dds_subscription_matched_status::total_count_change"]
[::std::mem::offset_of!(dds_subscription_matched_status, total_count_change) - 4usize];
["Offset of field: dds_subscription_matched_status::current_count"]
[::std::mem::offset_of!(dds_subscription_matched_status, current_count) - 8usize];
["Offset of field: dds_subscription_matched_status::current_count_change"]
[::std::mem::offset_of!(dds_subscription_matched_status, current_count_change) - 12usize];
["Offset of field: dds_subscription_matched_status::last_publication_handle"][::std::mem::offset_of!(
dds_subscription_matched_status,
last_publication_handle
) - 16usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_SubscriptionMatched\n DOC_TODO"]
pub type dds_subscription_matched_status_t = dds_subscription_matched_status;
#[doc = "< DOC_TODO"]
pub const dds_sample_rejected_status_kind_DDS_NOT_REJECTED: dds_sample_rejected_status_kind = 0;
#[doc = "< DOC_TODO"]
pub const dds_sample_rejected_status_kind_DDS_REJECTED_BY_INSTANCES_LIMIT:
dds_sample_rejected_status_kind = 1;
#[doc = "< DOC_TODO"]
pub const dds_sample_rejected_status_kind_DDS_REJECTED_BY_SAMPLES_LIMIT:
dds_sample_rejected_status_kind = 2;
#[doc = "< DOC_TODO"]
pub const dds_sample_rejected_status_kind_DDS_REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT:
dds_sample_rejected_status_kind = 3;
#[doc = " @ingroup dcps_status\n @brief Rejected Status\n DOC_TODO"]
pub type dds_sample_rejected_status_kind = ::std::ffi::c_uint;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_SampleRejected\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_sample_rejected_status {
#[doc = "< DOC_TODO"]
pub total_count: u32,
#[doc = "< DOC_TODO"]
pub total_count_change: i32,
#[doc = "< DOC_TODO"]
pub last_reason: dds_sample_rejected_status_kind,
#[doc = "< DOC_TODO"]
pub last_instance_handle: dds_instance_handle_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_sample_rejected_status"]
[::std::mem::size_of::<dds_sample_rejected_status>() - 24usize];
["Alignment of dds_sample_rejected_status"]
[::std::mem::align_of::<dds_sample_rejected_status>() - 8usize];
["Offset of field: dds_sample_rejected_status::total_count"]
[::std::mem::offset_of!(dds_sample_rejected_status, total_count) - 0usize];
["Offset of field: dds_sample_rejected_status::total_count_change"]
[::std::mem::offset_of!(dds_sample_rejected_status, total_count_change) - 4usize];
["Offset of field: dds_sample_rejected_status::last_reason"]
[::std::mem::offset_of!(dds_sample_rejected_status, last_reason) - 8usize];
["Offset of field: dds_sample_rejected_status::last_instance_handle"]
[::std::mem::offset_of!(dds_sample_rejected_status, last_instance_handle) - 16usize];
};
impl Default for dds_sample_rejected_status {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_SampleRejected\n DOC_TODO"]
pub type dds_sample_rejected_status_t = dds_sample_rejected_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_LivelinessChanged\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_liveliness_changed_status {
#[doc = "< DOC_TODO"]
pub alive_count: u32,
#[doc = "< DOC_TODO"]
pub not_alive_count: u32,
#[doc = "< DOC_TODO"]
pub alive_count_change: i32,
#[doc = "< DOC_TODO"]
pub not_alive_count_change: i32,
#[doc = "< DOC_TODO"]
pub last_publication_handle: dds_instance_handle_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_liveliness_changed_status"]
[::std::mem::size_of::<dds_liveliness_changed_status>() - 24usize];
["Alignment of dds_liveliness_changed_status"]
[::std::mem::align_of::<dds_liveliness_changed_status>() - 8usize];
["Offset of field: dds_liveliness_changed_status::alive_count"]
[::std::mem::offset_of!(dds_liveliness_changed_status, alive_count) - 0usize];
["Offset of field: dds_liveliness_changed_status::not_alive_count"]
[::std::mem::offset_of!(dds_liveliness_changed_status, not_alive_count) - 4usize];
["Offset of field: dds_liveliness_changed_status::alive_count_change"]
[::std::mem::offset_of!(dds_liveliness_changed_status, alive_count_change) - 8usize];
["Offset of field: dds_liveliness_changed_status::not_alive_count_change"]
[::std::mem::offset_of!(dds_liveliness_changed_status, not_alive_count_change) - 12usize];
["Offset of field: dds_liveliness_changed_status::last_publication_handle"]
[::std::mem::offset_of!(dds_liveliness_changed_status, last_publication_handle) - 16usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_LivelinessChanged\n DOC_TODO"]
pub type dds_liveliness_changed_status_t = dds_liveliness_changed_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_RequestedDeadlineMissed\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_requested_deadline_missed_status {
#[doc = "< DOC_TODO"]
pub total_count: u32,
#[doc = "< DOC_TODO"]
pub total_count_change: i32,
#[doc = "< DOC_TODO"]
pub last_instance_handle: dds_instance_handle_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_requested_deadline_missed_status"]
[::std::mem::size_of::<dds_requested_deadline_missed_status>() - 16usize];
["Alignment of dds_requested_deadline_missed_status"]
[::std::mem::align_of::<dds_requested_deadline_missed_status>() - 8usize];
["Offset of field: dds_requested_deadline_missed_status::total_count"]
[::std::mem::offset_of!(dds_requested_deadline_missed_status, total_count) - 0usize];
["Offset of field: dds_requested_deadline_missed_status::total_count_change"]
[::std::mem::offset_of!(dds_requested_deadline_missed_status, total_count_change) - 4usize];
["Offset of field: dds_requested_deadline_missed_status::last_instance_handle"][::std::mem::offset_of!(
dds_requested_deadline_missed_status,
last_instance_handle
) - 8usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_RequestedDeadlineMissed\n DOC_TODO"]
pub type dds_requested_deadline_missed_status_t = dds_requested_deadline_missed_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_RequestedIncompatibleQoS\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_requested_incompatible_qos_status {
#[doc = "< DOC_TODO"]
pub total_count: u32,
#[doc = "< DOC_TODO"]
pub total_count_change: i32,
#[doc = "< DOC_TODO"]
pub last_policy_id: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_requested_incompatible_qos_status"]
[::std::mem::size_of::<dds_requested_incompatible_qos_status>() - 12usize];
["Alignment of dds_requested_incompatible_qos_status"]
[::std::mem::align_of::<dds_requested_incompatible_qos_status>() - 4usize];
["Offset of field: dds_requested_incompatible_qos_status::total_count"]
[::std::mem::offset_of!(dds_requested_incompatible_qos_status, total_count) - 0usize];
["Offset of field: dds_requested_incompatible_qos_status::total_count_change"][::std::mem::offset_of!(
dds_requested_incompatible_qos_status,
total_count_change
) - 4usize];
["Offset of field: dds_requested_incompatible_qos_status::last_policy_id"]
[::std::mem::offset_of!(dds_requested_incompatible_qos_status, last_policy_id) - 8usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_RequestedIncompatibleQoS\n DOC_TODO"]
pub type dds_requested_incompatible_qos_status_t = dds_requested_incompatible_qos_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_SampleLost\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_sample_lost_status {
#[doc = "< DOC_TODO"]
pub total_count: u32,
#[doc = "< DOC_TODO"]
pub total_count_change: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_sample_lost_status"][::std::mem::size_of::<dds_sample_lost_status>() - 8usize];
["Alignment of dds_sample_lost_status"]
[::std::mem::align_of::<dds_sample_lost_status>() - 4usize];
["Offset of field: dds_sample_lost_status::total_count"]
[::std::mem::offset_of!(dds_sample_lost_status, total_count) - 0usize];
["Offset of field: dds_sample_lost_status::total_count_change"]
[::std::mem::offset_of!(dds_sample_lost_status, total_count_change) - 4usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_SampleLost\n DOC_TODO"]
pub type dds_sample_lost_status_t = dds_sample_lost_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_InconsistentTopic\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_inconsistent_topic_status {
#[doc = "< DOC_TODO"]
pub total_count: u32,
#[doc = "< DOC_TODO"]
pub total_count_change: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_inconsistent_topic_status"]
[::std::mem::size_of::<dds_inconsistent_topic_status>() - 8usize];
["Alignment of dds_inconsistent_topic_status"]
[::std::mem::align_of::<dds_inconsistent_topic_status>() - 4usize];
["Offset of field: dds_inconsistent_topic_status::total_count"]
[::std::mem::offset_of!(dds_inconsistent_topic_status, total_count) - 0usize];
["Offset of field: dds_inconsistent_topic_status::total_count_change"]
[::std::mem::offset_of!(dds_inconsistent_topic_status, total_count_change) - 4usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_InconsistentTopic\n DOC_TODO"]
pub type dds_inconsistent_topic_status_t = dds_inconsistent_topic_status;
unsafe extern "C" {
#[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get INCONSISTENT_TOPIC status\n\n This operation gets the status value corresponding to INCONSISTENT_TOPIC\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in] topic The topic entity to get the status\n @param[out] status The pointer to @ref dds_inconsistent_topic_status_t to get the status\n\n @returns 0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_inconsistent_topic_status(
topic: dds_entity_t,
status: *mut dds_inconsistent_topic_status_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get PUBLICATION_MATCHED status\n\n This operation gets the status value corresponding to PUBLICATION_MATCHED\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in] writer The writer entity to get the status\n @param[out] status The pointer to @ref dds_publication_matched_status_t to get the status\n\n @returns 0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_publication_matched_status(
writer: dds_entity_t,
status: *mut dds_publication_matched_status_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get LIVELINESS_LOST status\n\n This operation gets the status value corresponding to LIVELINESS_LOST\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in] writer The writer entity to get the status\n @param[out] status The pointer to @ref dds_liveliness_lost_status_t to get the status\n\n @returns 0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_liveliness_lost_status(
writer: dds_entity_t,
status: *mut dds_liveliness_lost_status_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get OFFERED_DEADLINE_MISSED status\n\n This operation gets the status value corresponding to OFFERED_DEADLINE_MISSED\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in] writer The writer entity to get the status\n @param[out] status The pointer to @ref dds_offered_deadline_missed_status_t to get the status\n\n @returns 0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_offered_deadline_missed_status(
writer: dds_entity_t,
status: *mut dds_offered_deadline_missed_status_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get OFFERED_INCOMPATIBLE_QOS status\n\n This operation gets the status value corresponding to OFFERED_INCOMPATIBLE_QOS\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in] writer The writer entity to get the status\n @param[out] status The pointer to @ref dds_offered_incompatible_qos_status_t to get the status\n\n @returns 0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_offered_incompatible_qos_status(
writer: dds_entity_t,
status: *mut dds_offered_incompatible_qos_status_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get SUBSCRIPTION_MATCHED status\n\n This operation gets the status value corresponding to SUBSCRIPTION_MATCHED\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in] reader The reader entity to get the status\n @param[out] status The pointer to @ref dds_subscription_matched_status_t to get the status\n\n @returns 0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_subscription_matched_status(
reader: dds_entity_t,
status: *mut dds_subscription_matched_status_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get LIVELINESS_CHANGED status\n\n This operation gets the status value corresponding to LIVELINESS_CHANGED\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in] reader The reader entity to get the status\n @param[out] status The pointer to @ref dds_liveliness_changed_status_t to get the status\n\n @returns 0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_liveliness_changed_status(
reader: dds_entity_t,
status: *mut dds_liveliness_changed_status_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get SAMPLE_REJECTED status\n\n This operation gets the status value corresponding to SAMPLE_REJECTED\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in] reader The reader entity to get the status\n @param[out] status The pointer to @ref dds_sample_rejected_status_t to get the status\n\n @returns 0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_sample_rejected_status(
reader: dds_entity_t,
status: *mut dds_sample_rejected_status_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get SAMPLE_LOST status\n\n This operation gets the status value corresponding to SAMPLE_LOST\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in] reader The reader entity to get the status\n @param[out] status The pointer to @ref dds_sample_lost_status_t to get the status\n\n @returns A dds_return_t indicating success or failure\n\n @retval DDS_RETCODE_OK\n Success\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_sample_lost_status(
reader: dds_entity_t,
status: *mut dds_sample_lost_status_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get REQUESTED_DEADLINE_MISSED status\n\n This operation gets the status value corresponding to REQUESTED_DEADLINE_MISSED\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in] reader The reader entity to get the status\n @param[out] status The pointer to @ref dds_requested_deadline_missed_status_t to get the status\n\n @returns A dds_return_t indicating success or failure\n\n @retval DDS_RETCODE_OK\n Success\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_requested_deadline_missed_status(
reader: dds_entity_t,
status: *mut dds_requested_deadline_missed_status_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get REQUESTED_INCOMPATIBLE_QOS status\n\n This operation gets the status value corresponding to REQUESTED_INCOMPATIBLE_QOS\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in] reader The reader entity to get the status\n @param[out] status The pointer to @ref dds_requested_incompatible_qos_status_t to get the status\n\n @returns A dds_return_t indicating success or failure\n\n @retval DDS_RETCODE_OK\n Success\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_requested_incompatible_qos_status(
reader: dds_entity_t,
status: *mut dds_requested_incompatible_qos_status_t,
) -> dds_return_t;
}
pub type dds_on_inconsistent_topic_fn = ::std::option::Option<
unsafe extern "C" fn(
topic: dds_entity_t,
status: dds_inconsistent_topic_status_t,
arg: *mut ::std::ffi::c_void,
),
>;
pub type dds_on_liveliness_lost_fn = ::std::option::Option<
unsafe extern "C" fn(
writer: dds_entity_t,
status: dds_liveliness_lost_status_t,
arg: *mut ::std::ffi::c_void,
),
>;
pub type dds_on_offered_deadline_missed_fn = ::std::option::Option<
unsafe extern "C" fn(
writer: dds_entity_t,
status: dds_offered_deadline_missed_status_t,
arg: *mut ::std::ffi::c_void,
),
>;
pub type dds_on_offered_incompatible_qos_fn = ::std::option::Option<
unsafe extern "C" fn(
writer: dds_entity_t,
status: dds_offered_incompatible_qos_status_t,
arg: *mut ::std::ffi::c_void,
),
>;
pub type dds_on_data_on_readers_fn = ::std::option::Option<
unsafe extern "C" fn(subscriber: dds_entity_t, arg: *mut ::std::ffi::c_void),
>;
pub type dds_on_sample_lost_fn = ::std::option::Option<
unsafe extern "C" fn(
reader: dds_entity_t,
status: dds_sample_lost_status_t,
arg: *mut ::std::ffi::c_void,
),
>;
pub type dds_on_data_available_fn =
::std::option::Option<unsafe extern "C" fn(reader: dds_entity_t, arg: *mut ::std::ffi::c_void)>;
pub type dds_on_sample_rejected_fn = ::std::option::Option<
unsafe extern "C" fn(
reader: dds_entity_t,
status: dds_sample_rejected_status_t,
arg: *mut ::std::ffi::c_void,
),
>;
pub type dds_on_liveliness_changed_fn = ::std::option::Option<
unsafe extern "C" fn(
reader: dds_entity_t,
status: dds_liveliness_changed_status_t,
arg: *mut ::std::ffi::c_void,
),
>;
pub type dds_on_requested_deadline_missed_fn = ::std::option::Option<
unsafe extern "C" fn(
reader: dds_entity_t,
status: dds_requested_deadline_missed_status_t,
arg: *mut ::std::ffi::c_void,
),
>;
pub type dds_on_requested_incompatible_qos_fn = ::std::option::Option<
unsafe extern "C" fn(
reader: dds_entity_t,
status: dds_requested_incompatible_qos_status_t,
arg: *mut ::std::ffi::c_void,
),
>;
pub type dds_on_publication_matched_fn = ::std::option::Option<
unsafe extern "C" fn(
writer: dds_entity_t,
status: dds_publication_matched_status_t,
arg: *mut ::std::ffi::c_void,
),
>;
pub type dds_on_subscription_matched_fn = ::std::option::Option<
unsafe extern "C" fn(
reader: dds_entity_t,
status: dds_subscription_matched_status_t,
arg: *mut ::std::ffi::c_void,
),
>;
#[doc = " @brief DDS Listener struct (opaque)\n @ingroup listener"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_listener {
_unused: [u8; 0],
}
#[doc = " @brief DDS Listener type (opaque)\n @ingroup listener"]
pub type dds_listener_t = dds_listener;
unsafe extern "C" {
#[doc = " @ingroup listener\n @component listener_obj\n @brief Allocate memory and initializes to default values (@ref DDS_LUNSET) of a listener\n\n @param[in] arg optional pointer that will be passed on to the listener callbacks\n\n @returns Returns a pointer to the allocated memory for dds_listener_t structure."]
pub fn dds_create_listener(arg: *mut ::std::ffi::c_void) -> *mut dds_listener_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener\n @component listener_obj\n @brief Delete the memory allocated to listener structure\n\n @param[in] listener pointer to the listener struct to delete"]
pub fn dds_delete_listener(listener: *mut dds_listener_t);
}
unsafe extern "C" {
#[doc = " @ingroup listener\n @component listener_obj\n @brief Reset the listener structure contents to @ref DDS_LUNSET\n\n @param[in,out] listener pointer to the listener struct to reset"]
pub fn dds_reset_listener(listener: *mut dds_listener_t);
}
unsafe extern "C" {
#[doc = " @ingroup listener\n @component listener_obj\n @brief Copy the listener callbacks from source to destination\n\n @param[in,out] dst The pointer to the destination listener structure, where the content is to copied\n @param[in] src The pointer to the source listener structure to be copied"]
pub fn dds_copy_listener(dst: *mut dds_listener_t, src: *const dds_listener_t);
}
unsafe extern "C" {
#[doc = " @ingroup listener\n @component listener_obj\n @brief Copy the listener callbacks from source to destination, unless already set\n\n Any listener callbacks already set in @p dst (including NULL) are skipped, only\n those set to DDS_LUNSET are copied from @p src.\n\n @param[in,out] dst The pointer to the destination listener structure, where the content is merged\n @param[in] src The pointer to the source listener structure to be copied"]
pub fn dds_merge_listener(dst: *mut dds_listener_t, src: *const dds_listener_t);
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the data_available callback and argument in the listener structure.\n\n @remark: See also the remark on @ref DDS_DATA_AVAILABLE_STATUS)\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lset_data_available_arg(
listener: *mut dds_listener_t,
callback: dds_on_data_available_fn,
arg: *mut ::std::ffi::c_void,
reset_on_invoke: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the data_on_readers callback and argument in the listener structure.\n\n @remark: See also the remark on @ref DDS_DATA_AVAILABLE_STATUS)\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lset_data_on_readers_arg(
listener: *mut dds_listener_t,
callback: dds_on_data_on_readers_fn,
arg: *mut ::std::ffi::c_void,
reset_on_invoke: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the inconsistent_topic callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lset_inconsistent_topic_arg(
listener: *mut dds_listener_t,
callback: dds_on_inconsistent_topic_fn,
arg: *mut ::std::ffi::c_void,
reset_on_invoke: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the liveliness_changed callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lset_liveliness_changed_arg(
listener: *mut dds_listener_t,
callback: dds_on_liveliness_changed_fn,
arg: *mut ::std::ffi::c_void,
reset_on_invoke: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the liveliness_lost callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lset_liveliness_lost_arg(
listener: *mut dds_listener_t,
callback: dds_on_liveliness_lost_fn,
arg: *mut ::std::ffi::c_void,
reset_on_invoke: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the offered_deadline_missed callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lset_offered_deadline_missed_arg(
listener: *mut dds_listener_t,
callback: dds_on_offered_deadline_missed_fn,
arg: *mut ::std::ffi::c_void,
reset_on_invoke: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the offered_incompatible_qos callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lset_offered_incompatible_qos_arg(
listener: *mut dds_listener_t,
callback: dds_on_offered_incompatible_qos_fn,
arg: *mut ::std::ffi::c_void,
reset_on_invoke: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the publication_matched callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lset_publication_matched_arg(
listener: *mut dds_listener_t,
callback: dds_on_publication_matched_fn,
arg: *mut ::std::ffi::c_void,
reset_on_invoke: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the requested_deadline_missed callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lset_requested_deadline_missed_arg(
listener: *mut dds_listener_t,
callback: dds_on_requested_deadline_missed_fn,
arg: *mut ::std::ffi::c_void,
reset_on_invoke: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the requested_incompatible_qos callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lset_requested_incompatible_qos_arg(
listener: *mut dds_listener_t,
callback: dds_on_requested_incompatible_qos_fn,
arg: *mut ::std::ffi::c_void,
reset_on_invoke: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the sample_lost callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lset_sample_lost_arg(
listener: *mut dds_listener_t,
callback: dds_on_sample_lost_fn,
arg: *mut ::std::ffi::c_void,
reset_on_invoke: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the sample_rejected callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lset_sample_rejected_arg(
listener: *mut dds_listener_t,
callback: dds_on_sample_rejected_fn,
arg: *mut ::std::ffi::c_void,
reset_on_invoke: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the subscription_matched callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lset_subscription_matched_arg(
listener: *mut dds_listener_t,
callback: dds_on_subscription_matched_fn,
arg: *mut ::std::ffi::c_void,
reset_on_invoke: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the inconsistent_topic callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_inconsistent_topic_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
pub fn dds_lset_inconsistent_topic(
listener: *mut dds_listener_t,
callback: dds_on_inconsistent_topic_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the liveliness_lost callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_liveliness_lost_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
pub fn dds_lset_liveliness_lost(
listener: *mut dds_listener_t,
callback: dds_on_liveliness_lost_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the offered_deadline_missed callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_offered_deadline_missed_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
pub fn dds_lset_offered_deadline_missed(
listener: *mut dds_listener_t,
callback: dds_on_offered_deadline_missed_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the offered_incompatible_qos callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_offered_incompatible_qos_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
pub fn dds_lset_offered_incompatible_qos(
listener: *mut dds_listener_t,
callback: dds_on_offered_incompatible_qos_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the data_on_readers callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_data_on_readers_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
pub fn dds_lset_data_on_readers(
listener: *mut dds_listener_t,
callback: dds_on_data_on_readers_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the sample_lost callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_sample_lost_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
pub fn dds_lset_sample_lost(listener: *mut dds_listener_t, callback: dds_on_sample_lost_fn);
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the data_available callback in the listener structure.\n\n @remark: See also the remark on @ref DDS_DATA_AVAILABLE_STATUS)\n\n Equivalent to calling @ref dds_lset_data_available_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
pub fn dds_lset_data_available(
listener: *mut dds_listener_t,
callback: dds_on_data_available_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the sample_rejected callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_sample_rejected_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
pub fn dds_lset_sample_rejected(
listener: *mut dds_listener_t,
callback: dds_on_sample_rejected_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the liveliness_changed callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_liveliness_changed_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
pub fn dds_lset_liveliness_changed(
listener: *mut dds_listener_t,
callback: dds_on_liveliness_changed_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the requested_deadline_missed callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_requested_deadline_missed_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
pub fn dds_lset_requested_deadline_missed(
listener: *mut dds_listener_t,
callback: dds_on_requested_deadline_missed_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the requested_incompatible_qos callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_requested_incompatible_qos_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
pub fn dds_lset_requested_incompatible_qos(
listener: *mut dds_listener_t,
callback: dds_on_requested_incompatible_qos_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the publication_matched callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_publication_matched_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
pub fn dds_lset_publication_matched(
listener: *mut dds_listener_t,
callback: dds_on_publication_matched_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the subscription_matched callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_subscription_matched_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
pub fn dds_lset_subscription_matched(
listener: *mut dds_listener_t,
callback: dds_on_subscription_matched_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the data_available callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lget_data_available_arg(
listener: *const dds_listener_t,
callback: *mut dds_on_data_available_fn,
arg: *mut *mut ::std::ffi::c_void,
reset_on_invoke: *mut bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the data_on_readers callback from the listener structure.\n\n @remark: See also the remark on @ref DDS_DATA_AVAILABLE_STATUS)\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lget_data_on_readers_arg(
listener: *const dds_listener_t,
callback: *mut dds_on_data_on_readers_fn,
arg: *mut *mut ::std::ffi::c_void,
reset_on_invoke: *mut bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the inconsistent_topic callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lget_inconsistent_topic_arg(
listener: *const dds_listener_t,
callback: *mut dds_on_inconsistent_topic_fn,
arg: *mut *mut ::std::ffi::c_void,
reset_on_invoke: *mut bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the liveliness_changed callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lget_liveliness_changed_arg(
listener: *const dds_listener_t,
callback: *mut dds_on_liveliness_changed_fn,
arg: *mut *mut ::std::ffi::c_void,
reset_on_invoke: *mut bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the liveliness_lost callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lget_liveliness_lost_arg(
listener: *const dds_listener_t,
callback: *mut dds_on_liveliness_lost_fn,
arg: *mut *mut ::std::ffi::c_void,
reset_on_invoke: *mut bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the offered_deadline_missed callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lget_offered_deadline_missed_arg(
listener: *const dds_listener_t,
callback: *mut dds_on_offered_deadline_missed_fn,
arg: *mut *mut ::std::ffi::c_void,
reset_on_invoke: *mut bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the offered_incompatible_qos callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lget_offered_incompatible_qos_arg(
listener: *const dds_listener_t,
callback: *mut dds_on_offered_incompatible_qos_fn,
arg: *mut *mut ::std::ffi::c_void,
reset_on_invoke: *mut bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the publication_matched callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lget_publication_matched_arg(
listener: *const dds_listener_t,
callback: *mut dds_on_publication_matched_fn,
arg: *mut *mut ::std::ffi::c_void,
reset_on_invoke: *mut bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the subscription_matched callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lget_requested_deadline_missed_arg(
listener: *const dds_listener_t,
callback: *mut dds_on_requested_deadline_missed_fn,
arg: *mut *mut ::std::ffi::c_void,
reset_on_invoke: *mut bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the requested_incompatible_qos callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lget_requested_incompatible_qos_arg(
listener: *const dds_listener_t,
callback: *mut dds_on_requested_incompatible_qos_fn,
arg: *mut *mut ::std::ffi::c_void,
reset_on_invoke: *mut bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the sample_lost callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lget_sample_lost_arg(
listener: *const dds_listener_t,
callback: *mut dds_on_sample_lost_fn,
arg: *mut *mut ::std::ffi::c_void,
reset_on_invoke: *mut bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the sample_rejected callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lget_sample_rejected_arg(
listener: *const dds_listener_t,
callback: *mut dds_on_sample_rejected_fn,
arg: *mut *mut ::std::ffi::c_void,
reset_on_invoke: *mut bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the subscription_matched callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
pub fn dds_lget_subscription_matched_arg(
listener: *const dds_listener_t,
callback: *mut dds_on_subscription_matched_fn,
arg: *mut *mut ::std::ffi::c_void,
reset_on_invoke: *mut bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the inconsistent_topic callback from the listener structure\n\n Equivalent to calling @ref dds_lget_inconsistent_topic_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
pub fn dds_lget_inconsistent_topic(
listener: *const dds_listener_t,
callback: *mut dds_on_inconsistent_topic_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the liveliness_lost callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_liveliness_lost_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
pub fn dds_lget_liveliness_lost(
listener: *const dds_listener_t,
callback: *mut dds_on_liveliness_lost_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the offered_deadline_missed callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_offered_deadline_missed_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
pub fn dds_lget_offered_deadline_missed(
listener: *const dds_listener_t,
callback: *mut dds_on_offered_deadline_missed_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the offered_incompatible_qos callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_offered_incompatible_qos_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
pub fn dds_lget_offered_incompatible_qos(
listener: *const dds_listener_t,
callback: *mut dds_on_offered_incompatible_qos_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the data_on_readers callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_data_on_readers_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
pub fn dds_lget_data_on_readers(
listener: *const dds_listener_t,
callback: *mut dds_on_data_on_readers_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the sample_lost callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_sample_lost_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
pub fn dds_lget_sample_lost(
listener: *const dds_listener_t,
callback: *mut dds_on_sample_lost_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the data_available callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_data_available_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
pub fn dds_lget_data_available(
listener: *const dds_listener_t,
callback: *mut dds_on_data_available_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the sample_rejected callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_sample_rejected_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
pub fn dds_lget_sample_rejected(
listener: *const dds_listener_t,
callback: *mut dds_on_sample_rejected_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the liveliness_changed callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_liveliness_changed_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
pub fn dds_lget_liveliness_changed(
listener: *const dds_listener_t,
callback: *mut dds_on_liveliness_changed_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the requested_deadline_missed callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_requested_deadline_missed_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
pub fn dds_lget_requested_deadline_missed(
listener: *const dds_listener_t,
callback: *mut dds_on_requested_deadline_missed_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the requested_incompatible_qos callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_requested_incompatible_qos_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
pub fn dds_lget_requested_incompatible_qos(
listener: *const dds_listener_t,
callback: *mut dds_on_requested_incompatible_qos_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the publication_matched callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_publication_matched_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
pub fn dds_lget_publication_matched(
listener: *const dds_listener_t,
callback: *mut dds_on_publication_matched_fn,
);
}
unsafe extern "C" {
#[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the subscription_matched callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_subscription_matched_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
pub fn dds_lget_subscription_matched(
listener: *const dds_listener_t,
callback: *mut dds_on_subscription_matched_fn,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_typeinfo {
_unused: [u8; 0],
}
#[doc = " @brief Dynamic Type\n @ingroup dynamic_type\n\n Representation of a dynamically created type. This struct has an opaque pointer\n to the type in the type system. During construction of the type (setting properties\n and adding members), the internal type has the state 'CONSTRUCTION'. Once the type\n is registered, the state is updated to 'RESOLVED' and the type cannot be modified.\n\n The 'ret' member of this struct holds the return code of operations performed on\n this type. In case this value is not DDS_RETCODE_OK, the type cannot be used for\n further processing (e.g. adding members, registering the type, etc.).\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_dynamic_type {
pub x: [*mut ::std::ffi::c_void; 2usize],
pub ret: dds_return_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_dynamic_type"][::std::mem::size_of::<dds_dynamic_type>() - 24usize];
["Alignment of dds_dynamic_type"][::std::mem::align_of::<dds_dynamic_type>() - 8usize];
["Offset of field: dds_dynamic_type::x"][::std::mem::offset_of!(dds_dynamic_type, x) - 0usize];
["Offset of field: dds_dynamic_type::ret"]
[::std::mem::offset_of!(dds_dynamic_type, ret) - 16usize];
};
impl Default for dds_dynamic_type {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief Dynamic Type\n @ingroup dynamic_type\n\n Representation of a dynamically created type. This struct has an opaque pointer\n to the type in the type system. During construction of the type (setting properties\n and adding members), the internal type has the state 'CONSTRUCTION'. Once the type\n is registered, the state is updated to 'RESOLVED' and the type cannot be modified.\n\n The 'ret' member of this struct holds the return code of operations performed on\n this type. In case this value is not DDS_RETCODE_OK, the type cannot be used for\n further processing (e.g. adding members, registering the type, etc.).\n"]
pub type dds_dynamic_type_t = dds_dynamic_type;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_NONE: dds_dynamic_type_kind = 0;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_BOOLEAN: dds_dynamic_type_kind = 1;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_BYTE: dds_dynamic_type_kind = 2;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_INT16: dds_dynamic_type_kind = 3;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_INT32: dds_dynamic_type_kind = 4;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_INT64: dds_dynamic_type_kind = 5;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_UINT16: dds_dynamic_type_kind = 6;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_UINT32: dds_dynamic_type_kind = 7;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_UINT64: dds_dynamic_type_kind = 8;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_FLOAT32: dds_dynamic_type_kind = 9;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_FLOAT64: dds_dynamic_type_kind = 10;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_FLOAT128: dds_dynamic_type_kind = 11;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_INT8: dds_dynamic_type_kind = 12;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_UINT8: dds_dynamic_type_kind = 13;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_CHAR8: dds_dynamic_type_kind = 14;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_CHAR16: dds_dynamic_type_kind = 15;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_STRING8: dds_dynamic_type_kind = 16;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_STRING16: dds_dynamic_type_kind = 17;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_ENUMERATION: dds_dynamic_type_kind = 18;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_BITMASK: dds_dynamic_type_kind = 19;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_ALIAS: dds_dynamic_type_kind = 20;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_ARRAY: dds_dynamic_type_kind = 21;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_SEQUENCE: dds_dynamic_type_kind = 22;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_MAP: dds_dynamic_type_kind = 23;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_STRUCTURE: dds_dynamic_type_kind = 24;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_UNION: dds_dynamic_type_kind = 25;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_BITSET: dds_dynamic_type_kind = 26;
#[doc = " @brief Dynamic Type Kind\n @ingroup dynamic_type\n\n Enumeration with the type kind values that can be used to create a dynamic type."]
pub type dds_dynamic_type_kind = ::std::ffi::c_uint;
#[doc = " @brief Dynamic Type Kind\n @ingroup dynamic_type\n\n Enumeration with the type kind values that can be used to create a dynamic type."]
pub use self::dds_dynamic_type_kind as dds_dynamic_type_kind_t;
pub const dds_dynamic_type_spec_kind_DDS_DYNAMIC_TYPE_KIND_UNSET: dds_dynamic_type_spec_kind = 0;
pub const dds_dynamic_type_spec_kind_DDS_DYNAMIC_TYPE_KIND_DEFINITION: dds_dynamic_type_spec_kind =
1;
pub const dds_dynamic_type_spec_kind_DDS_DYNAMIC_TYPE_KIND_PRIMITIVE: dds_dynamic_type_spec_kind =
2;
#[doc = " @ingroup dynamic_type\n\n Dynamic Type specification kind"]
pub type dds_dynamic_type_spec_kind = ::std::ffi::c_uint;
#[doc = " @ingroup dynamic_type\n\n Dynamic Type specification kind"]
pub use self::dds_dynamic_type_spec_kind as dds_dynamic_type_spec_kind_t;
#[doc = " @ingroup dynamic_type\n\n Dynamic Type specification: a reference to dynamic type, which can be a primitive type\n kind (just the type kind enumeration value), or a (primitive or non-primitive) dynamic\n type reference."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct dds_dynamic_type_spec {
pub kind: dds_dynamic_type_spec_kind_t,
pub type_: dds_dynamic_type_spec__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union dds_dynamic_type_spec__bindgen_ty_1 {
pub type_: dds_dynamic_type_t,
pub primitive: dds_dynamic_type_kind_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_dynamic_type_spec__bindgen_ty_1"]
[::std::mem::size_of::<dds_dynamic_type_spec__bindgen_ty_1>() - 24usize];
["Alignment of dds_dynamic_type_spec__bindgen_ty_1"]
[::std::mem::align_of::<dds_dynamic_type_spec__bindgen_ty_1>() - 8usize];
["Offset of field: dds_dynamic_type_spec__bindgen_ty_1::type_"]
[::std::mem::offset_of!(dds_dynamic_type_spec__bindgen_ty_1, type_) - 0usize];
["Offset of field: dds_dynamic_type_spec__bindgen_ty_1::primitive"]
[::std::mem::offset_of!(dds_dynamic_type_spec__bindgen_ty_1, primitive) - 0usize];
};
impl Default for dds_dynamic_type_spec__bindgen_ty_1 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_dynamic_type_spec"][::std::mem::size_of::<dds_dynamic_type_spec>() - 32usize];
["Alignment of dds_dynamic_type_spec"]
[::std::mem::align_of::<dds_dynamic_type_spec>() - 8usize];
["Offset of field: dds_dynamic_type_spec::kind"]
[::std::mem::offset_of!(dds_dynamic_type_spec, kind) - 0usize];
["Offset of field: dds_dynamic_type_spec::type_"]
[::std::mem::offset_of!(dds_dynamic_type_spec, type_) - 8usize];
};
impl Default for dds_dynamic_type_spec {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @ingroup dynamic_type\n\n Dynamic Type specification: a reference to dynamic type, which can be a primitive type\n kind (just the type kind enumeration value), or a (primitive or non-primitive) dynamic\n type reference."]
pub type dds_dynamic_type_spec_t = dds_dynamic_type_spec;
#[doc = " @brief Dynamic Type descriptor\n @ingroup dynamic_type\n\n Structure that holds the properties for creating a Dynamic Type. For each type kind,\n specific member fields are applicable and/or required."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct dds_dynamic_type_descriptor {
#[doc = "< Type kind. Required for all types."]
pub kind: dds_dynamic_type_kind_t,
#[doc = "< Type name. Required for struct, union, alias, enum, bitmask, array, sequence."]
pub name: *const ::std::ffi::c_char,
#[doc = "< Option base type for a struct, or (required) aliased type in case of an alias type."]
pub base_type: dds_dynamic_type_spec_t,
#[doc = "< Discriminator type for a union (required)."]
pub discriminator_type: dds_dynamic_type_spec_t,
#[doc = "< Number of bounds for array and sequence types. In case of sequence, this can be 0 (unbounded) or 1."]
pub num_bounds: u32,
#[doc = "< Bounds for array (0..num_bounds) and sequence (single value)"]
pub bounds: *const u32,
#[doc = "< Element type for array and sequence, required."]
pub element_type: dds_dynamic_type_spec_t,
#[doc = "< Key element type for map type"]
pub key_element_type: dds_dynamic_type_spec_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_dynamic_type_descriptor"]
[::std::mem::size_of::<dds_dynamic_type_descriptor>() - 160usize];
["Alignment of dds_dynamic_type_descriptor"]
[::std::mem::align_of::<dds_dynamic_type_descriptor>() - 8usize];
["Offset of field: dds_dynamic_type_descriptor::kind"]
[::std::mem::offset_of!(dds_dynamic_type_descriptor, kind) - 0usize];
["Offset of field: dds_dynamic_type_descriptor::name"]
[::std::mem::offset_of!(dds_dynamic_type_descriptor, name) - 8usize];
["Offset of field: dds_dynamic_type_descriptor::base_type"]
[::std::mem::offset_of!(dds_dynamic_type_descriptor, base_type) - 16usize];
["Offset of field: dds_dynamic_type_descriptor::discriminator_type"]
[::std::mem::offset_of!(dds_dynamic_type_descriptor, discriminator_type) - 48usize];
["Offset of field: dds_dynamic_type_descriptor::num_bounds"]
[::std::mem::offset_of!(dds_dynamic_type_descriptor, num_bounds) - 80usize];
["Offset of field: dds_dynamic_type_descriptor::bounds"]
[::std::mem::offset_of!(dds_dynamic_type_descriptor, bounds) - 88usize];
["Offset of field: dds_dynamic_type_descriptor::element_type"]
[::std::mem::offset_of!(dds_dynamic_type_descriptor, element_type) - 96usize];
["Offset of field: dds_dynamic_type_descriptor::key_element_type"]
[::std::mem::offset_of!(dds_dynamic_type_descriptor, key_element_type) - 128usize];
};
impl Default for dds_dynamic_type_descriptor {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief Dynamic Type descriptor\n @ingroup dynamic_type\n\n Structure that holds the properties for creating a Dynamic Type. For each type kind,\n specific member fields are applicable and/or required."]
pub type dds_dynamic_type_descriptor_t = dds_dynamic_type_descriptor;
#[doc = " @brief Dynamic Type Member descriptor\n @ingroup dynamic_type\n\n Structure that holds the properities for adding a member to a dynamic type. Depending on\n the member type, different fields apply and are required."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct dds_dynamic_member_descriptor {
#[doc = "< Name of the member, required"]
pub name: *const ::std::ffi::c_char,
#[doc = "< Identifier of the member, applicable for struct and union members. DDS_DYNAMIC_MEMBER_ID_AUTO can be used to indicate the next available id (current max + 1) should be used."]
pub id: u32,
#[doc = "< Member type, required for struct and union members."]
pub type_: dds_dynamic_type_spec_t,
#[doc = "< Default value for the member"]
pub default_value: *mut ::std::ffi::c_char,
#[doc = "< Member index, applicable for struct and union members. DDS_DYNAMIC_MEMBER_INDEX_START and DDS_DYNAMIC_MEMBER_INDEX_END can be used to add a member as first or last member in the parent type."]
pub index: u32,
#[doc = "< Number of labels, required for union members in case not default_label"]
pub num_labels: u32,
#[doc = "< Labels for a union member, 1..n required for union members in case not default_label"]
pub labels: *mut i32,
#[doc = "< Is default union member"]
pub default_label: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_dynamic_member_descriptor"]
[::std::mem::size_of::<dds_dynamic_member_descriptor>() - 80usize];
["Alignment of dds_dynamic_member_descriptor"]
[::std::mem::align_of::<dds_dynamic_member_descriptor>() - 8usize];
["Offset of field: dds_dynamic_member_descriptor::name"]
[::std::mem::offset_of!(dds_dynamic_member_descriptor, name) - 0usize];
["Offset of field: dds_dynamic_member_descriptor::id"]
[::std::mem::offset_of!(dds_dynamic_member_descriptor, id) - 8usize];
["Offset of field: dds_dynamic_member_descriptor::type_"]
[::std::mem::offset_of!(dds_dynamic_member_descriptor, type_) - 16usize];
["Offset of field: dds_dynamic_member_descriptor::default_value"]
[::std::mem::offset_of!(dds_dynamic_member_descriptor, default_value) - 48usize];
["Offset of field: dds_dynamic_member_descriptor::index"]
[::std::mem::offset_of!(dds_dynamic_member_descriptor, index) - 56usize];
["Offset of field: dds_dynamic_member_descriptor::num_labels"]
[::std::mem::offset_of!(dds_dynamic_member_descriptor, num_labels) - 60usize];
["Offset of field: dds_dynamic_member_descriptor::labels"]
[::std::mem::offset_of!(dds_dynamic_member_descriptor, labels) - 64usize];
["Offset of field: dds_dynamic_member_descriptor::default_label"]
[::std::mem::offset_of!(dds_dynamic_member_descriptor, default_label) - 72usize];
};
impl Default for dds_dynamic_member_descriptor {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief Dynamic Type Member descriptor\n @ingroup dynamic_type\n\n Structure that holds the properities for adding a member to a dynamic type. Depending on\n the member type, different fields apply and are required."]
pub type dds_dynamic_member_descriptor_t = dds_dynamic_member_descriptor;
pub const dds_dynamic_type_extensibility_DDS_DYNAMIC_TYPE_EXT_FINAL:
dds_dynamic_type_extensibility = 0;
pub const dds_dynamic_type_extensibility_DDS_DYNAMIC_TYPE_EXT_APPENDABLE:
dds_dynamic_type_extensibility = 1;
pub const dds_dynamic_type_extensibility_DDS_DYNAMIC_TYPE_EXT_MUTABLE:
dds_dynamic_type_extensibility = 2;
#[doc = " @ingroup dynamic_type\n\n Dynamic Type extensibility"]
pub type dds_dynamic_type_extensibility = ::std::ffi::c_uint;
#[doc = "< The member ID are assigned sequential"]
pub const dds_dynamic_type_autoid_DDS_DYNAMIC_TYPE_AUTOID_SEQUENTIAL: dds_dynamic_type_autoid = 0;
#[doc = "< The member ID is the hash of the member's name"]
pub const dds_dynamic_type_autoid_DDS_DYNAMIC_TYPE_AUTOID_HASH: dds_dynamic_type_autoid = 1;
#[doc = " @ingroup dynamic_type\n\n Dynamic Type automatic member ID kind"]
pub type dds_dynamic_type_autoid = ::std::ffi::c_uint;
pub const dds_dynamic_type_enum_value_kind_DDS_DYNAMIC_ENUM_LITERAL_VALUE_NEXT_AVAIL:
dds_dynamic_type_enum_value_kind = 0;
pub const dds_dynamic_type_enum_value_kind_DDS_DYNAMIC_ENUM_LITERAL_VALUE_EXPLICIT:
dds_dynamic_type_enum_value_kind = 1;
#[doc = " @brief Enum value kind\n\n see @ref dds_dynamic_enum_literal_value"]
pub type dds_dynamic_type_enum_value_kind = ::std::ffi::c_uint;
#[doc = " @ingroup dynamic_type\n\n Dynamic Enumeration type literal value kind and value. Can be set to NEXT_AVAIL to indicate\n that the current max value + 1 should be used for this member, or an explicit value can be\n provided."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_dynamic_enum_literal_value {
pub value_kind: dds_dynamic_type_enum_value_kind,
pub value: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_dynamic_enum_literal_value"]
[::std::mem::size_of::<dds_dynamic_enum_literal_value>() - 8usize];
["Alignment of dds_dynamic_enum_literal_value"]
[::std::mem::align_of::<dds_dynamic_enum_literal_value>() - 4usize];
["Offset of field: dds_dynamic_enum_literal_value::value_kind"]
[::std::mem::offset_of!(dds_dynamic_enum_literal_value, value_kind) - 0usize];
["Offset of field: dds_dynamic_enum_literal_value::value"]
[::std::mem::offset_of!(dds_dynamic_enum_literal_value, value) - 4usize];
};
impl Default for dds_dynamic_enum_literal_value {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @ingroup dynamic_type\n\n Dynamic Enumeration type literal value kind and value. Can be set to NEXT_AVAIL to indicate\n that the current max value + 1 should be used for this member, or an explicit value can be\n provided."]
pub type dds_dynamic_enum_literal_value_t = dds_dynamic_enum_literal_value;
unsafe extern "C" {
#[doc = " @brief Create a new Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n Creates a new Dynamic Type, using the properties that are set in the type descriptor.\n In case these properties include a base-type, element-type or discriminator type, the\n ownership of these types is transferred to the newly created type.\n\n @param[in] entity A DDS entity (any entity, except the pseudo root entity identified by DDS_CYCLONEDDS_HANDLE). This entity is used to get the type library of the entity's domain, to add the type to.\n @param[in] descriptor The Dynamic Type descriptor.\n\n @return dds_dynamic_type_t A Dynamic Type reference for the created type.\n\n @retval DDS_RETCODE_OK\n The type is created successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_UNSUPPORTED\n The provided type kind is not supported.\n @retval DDS_RETCODE_OUT_OF_RESOURCES\n Not enough resources to create the type."]
pub fn dds_dynamic_type_create(
entity: dds_entity_t,
descriptor: dds_dynamic_type_descriptor_t,
) -> dds_dynamic_type_t;
}
unsafe extern "C" {
#[doc = " @brief Set the extensibility of a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type to set the extensibility for. This can be a structure, union, bitmask or enum type. This type must be in the CONSTRUCTING state and have no members added.\n @param[in] extensibility The extensibility to set (@ref dds_dynamic_type_extensibility).\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n The extensibility is set successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type is not in the CONSTRUCTING state."]
pub fn dds_dynamic_type_set_extensibility(
type_: *mut dds_dynamic_type_t,
extensibility: dds_dynamic_type_extensibility,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Set the bit-bound of a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type to set the bit-bound for. This can be a bitmask or enum type.\n @param[in] bit_bound The bit-bound value to set, in the (including) range 1..32 for enum and 1..64 for bitmask.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n The bit-bound is set successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type is not in the CONSTRUCTING state."]
pub fn dds_dynamic_type_set_bit_bound(
type_: *mut dds_dynamic_type_t,
bit_bound: u16,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Set the nested flag of a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type to set the nested flag for. This can be a structure or union type.\n @param[in] is_nested Whether the nested flag is set.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n The flag is set successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type is not in the CONSTRUCTING state."]
pub fn dds_dynamic_type_set_nested(
type_: *mut dds_dynamic_type_t,
is_nested: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Set the auto-id kind of a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type to set the auto-id kind for. This can be a structure or union type.\n @param[in] value The auto-id kind, see @ref dds_dynamic_type_autoid.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n The value is set successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type is not in the CONSTRUCTING state."]
pub fn dds_dynamic_type_set_autoid(
type_: *mut dds_dynamic_type_t,
value: dds_dynamic_type_autoid,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Add a member to a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n This function is used to add a member to a Dynamic Type. The parent type can be a structure,\n union, enumeration or bitmask type. The parent type the member is added to takes over the\n ownership of the member type and dereferences the member type when it is deleted.\n (@see dds_dynamic_type_ref for re-using a type)\n\n @param[in,out] type The Dynamic type to add the member to.\n @param[in] member_descriptor The member descriptor that has the properties of the member to add, @see dds_dynamic_member_descriptor.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n The member is added successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type (non the member type) is not in the CONSTRUCTING state."]
pub fn dds_dynamic_type_add_member(
type_: *mut dds_dynamic_type_t,
member_descriptor: dds_dynamic_member_descriptor_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Add a literal to a Dynamic Enum Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n This function is used to add a literal to a Dynamic Enum Type.\n\n @param[in,out] type The Dynamic enum type to add the member to.\n @param[in] name The name of the literal to add.\n @param[in] value The value for the literal (@see dds_dynamic_enum_literal_value).\n @param[in] is_default Indicates if the literal if default for the enum.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n The member is added successfully\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type is not in the CONSTRUCTING state."]
pub fn dds_dynamic_type_add_enum_literal(
type_: *mut dds_dynamic_type_t,
name: *const ::std::ffi::c_char,
value: dds_dynamic_enum_literal_value_t,
is_default: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Add a field to a Dynamic bitmask Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n This function is used to add a field to a Dynamic bitmask Type.\n\n @param[in,out] type The Dynamic bitmask type to add the field to.\n @param[in] name The name of the field to add.\n @param[in] position The position for the field (@see DDS_DYNAMIC_BITMASK_POSITION_AUTO).\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n The member is added successfully\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type is not in the CONSTRUCTING state."]
pub fn dds_dynamic_type_add_bitmask_field(
type_: *mut dds_dynamic_type_t,
name: *const ::std::ffi::c_char,
position: u16,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Set the key flag for a Dynamic Type member\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type that contains the member to set the key flag for (must be a structure type).\n @param[in] member_id The ID of the member to set the flag for.\n @param[in] is_key Indicates whether the key flag should be set or cleared.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n The flag is updated successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type is not in the CONSTRUCTING state."]
pub fn dds_dynamic_member_set_key(
type_: *mut dds_dynamic_type_t,
member_id: u32,
is_key: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Set the optional flag for a Dynamic Type member\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type that contains the member to set the optional flag for (must be a structure type).\n @param[in] member_id The ID of the member to set the flag for.\n @param[in] is_optional Indicates whether the optional flag should be set or cleared.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n The flag is updated successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type is not in the CONSTRUCTING state."]
pub fn dds_dynamic_member_set_optional(
type_: *mut dds_dynamic_type_t,
member_id: u32,
is_optional: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Set the external flag for a Dynamic Type member\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type that contains the member to set the external flag for (must be a structure or union type).\n @param[in] member_id The ID of the member to set the flag for.\n @param[in] is_external Indicates whether the external flag should be set or cleared.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n The flag is updated successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type is not in the CONSTRUCTING state."]
pub fn dds_dynamic_member_set_external(
type_: *mut dds_dynamic_type_t,
member_id: u32,
is_external: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Set the hash ID flag and hash field name for a Dynamic Type member\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type that contains the member to set the flag and hash-name for (must be a structure or union type).\n @param[in] member_id The ID of the member to set the flag and hash-name for.\n @param[in] hash_member_name The hash-name that should be used for calculating the member ID.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n The flag is updated successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type is not in the CONSTRUCTING state."]
pub fn dds_dynamic_member_set_hashid(
type_: *mut dds_dynamic_type_t,
member_id: u32,
hash_member_name: *const ::std::ffi::c_char,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Set the must-understand flag for a Dynamic Type member\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type that contains the member to set the must-understand flag for (must be a structure type).\n @param[in] member_id The ID of the member to set the flag for.\n @param[in] is_must_understand Indicates whether the must-understand flag should be set or cleared.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n The flag is updated successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type is not in the CONSTRUCTING state."]
pub fn dds_dynamic_member_set_must_understand(
type_: *mut dds_dynamic_type_t,
member_id: u32,
is_must_understand: bool,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Registers a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n This function registers a dynamic type, making it immutable and finalizing\n its definition. A type that is registered, get the state 'RESOLVED' and is\n stored in the type library.\n\n @param[in] type A pointer to the dynamic type to be registered.\n @param[out] type_info A pointer to a pointer to a ddsi_typeinfo structure that holds information about the registered type.\n\n @return dds_return_t Return code.\n\n @retval DDS_RETCODE_OK\n The type was successfully registered.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type is not in the CONSTRUCTING state.\n @retval DDS_RETCODE_OUT_OF_RESOURCES\n Not enough resources to create the type."]
pub fn dds_dynamic_type_register(
type_: *mut dds_dynamic_type_t,
type_info: *mut *mut ddsi_typeinfo,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Reference a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n References a Dynamic Type and increases the ref-count of the type. This\n can e.g. be used to re-use a subtype when constructing a type.\n\n @param type Dynamic Type to reference\n\n @return dds_dynamic_type_t Dynamic Type with increased ref-count"]
pub fn dds_dynamic_type_ref(type_: *mut dds_dynamic_type_t) -> dds_dynamic_type_t;
}
unsafe extern "C" {
#[doc = " @brief Unref a Dynamic Type\n\n @param type The Dynamic Type to dereference.\n\n @return dds_return_t Return code.\n\n @retval DDS_RETCODE_OK\n The type was successfully registered.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type is not in the CONSTRUCTING state."]
pub fn dds_dynamic_type_unref(type_: *mut dds_dynamic_type_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Duplicate a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n Duplicates a Dynamic Type. Dependencies of the type are not duplicated,\n but their ref-count is increased.\n\n @param src The type to duplicate.\n\n @return dds_dynamic_type_t A duplicate of the source type."]
pub fn dds_dynamic_type_dup(src: *const dds_dynamic_type_t) -> dds_dynamic_type_t;
}
unsafe extern "C" {
#[doc = " @brief Request a loan from an entity.\n @ingroup loan\n\n Borrow a sample from the entity, which currently must be a writer. This sample\n can then be returned using @ref dds_return_loan or can be used to publish data\n using @ref dds_write or @ref dds_writedispose.\n\n If the topic type has a fixed size (and so no internal pointers) and a PSMX interface is configured,\n the memory will be borrowed from the PSMX implementation, which allows Cyclone to avoid copies\n and/or serialization if there is no need for sending the data over a network interface or storing it\n in the WHC.\n\n @param[in] entity The entity to request loans from.\n @param[out] sample Where to store the address of the loaned sample.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more parameters are invalid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_ERROR\n An unfortunate incident occurred."]
pub fn dds_request_loan(
entity: dds_entity_t,
sample: *mut *mut ::std::ffi::c_void,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Return loaned samples to a reader or writer\n @ingroup loan\n @component read_data\n\n Used to release middleware-owned samples returned by a read/take operation and samples\n borrowed from the writer using @ref dds_request_loan.\n\n For reader loans, the @ref dds_read and @ref dds_take operations implicitly return\n outstanding loans referenced by the sample array passed in. Looping until no data is\n returned therefore often eliminates the need for calling this function.\n\n For writer loans, a @ref dds_write operation takes over the loan. Consequently, this\n function is only needed in the exceptional case where a loan is taken but ultimately\n not used to publish data.\n\n @param[in] entity The entity that the loan(s) belong to. If a read or query condition is passed in for the entity, the reader for that condition is used.\n @param[in,out] buf An array of (pointers to) samples, some or all of which will be set to null pointers.\n @param[in] bufsz The size of the buffer.\n\n @returns A dds_return_t indicating success or failure\n @retval DDS_RETCODE_OK\n - the operation was successful\n - a no-op if bufsz <= 0, otherwise\n - buf[0] .. buf[k-1] were successfully returned loans, k = bufsz or buf[k] = null\n - buf[0] is set to a null pointer, buf[k > 0] undefined\n @retval DDS_RETCODE_BAD_PARAMETER\n - the entity parameter is not a valid parameter\n - buf is null, or bufsz > 0 and buf[0] = null\n - a non-loan was encountered (all loans are still returned)\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n - bufsz > 0 and buf[0] != null but not a loan, nothing done\n @retval DDS_RETCODE_UNSUPPORTED\n - (for writer loans) invoked on a writer not supporting loans.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n - the operation is invoked on an inappropriate object."]
pub fn dds_return_loan(
entity: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
bufsz: i32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup loan\n @component read_data\n @brief Check if a shared memory is available to reader/writer.\n\n @note dds_request_loan_of_size can be used if and only if\n dds_is_shared_memory_available returns true.\n\n @param[in] entity the handle of the entity\n\n @returns true if shared memory is available, false otherwise"]
pub fn dds_is_shared_memory_available(entity: dds_entity_t) -> bool;
}
unsafe extern "C" {
#[doc = " @brief Request a loan of a specified size from an entity.\n @ingroup loan\n\n Borrow a sample of a specified size from the entity, which currently must be a\n writer. This sample can then be returned using @ref dds_return_loan or can be\n used to publish data using @ref dds_write or @ref dds_writedispose.\n\n @note The function can only be used if dds_is_shared_memory_available is\n true for the writer.\n\n @param[in] writer The entity to request loans from.\n @param[in] size the requested loan size\n @param[out] sample Where to store the address of the loaned sample.\n\n @returns DDS_RETCODE_OK if successful, DDS_RETCODE_ERROR otherwise"]
pub fn dds_request_loan_of_size(
writer: dds_entity_t,
size: usize,
sample: *mut *mut ::std::ffi::c_void,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup deprecated\n @component read_data\n @brief Check if a Loan is available to reader/writer\n @deprecated Use @ref dds_request_loan instead, returns 0 if loan is not available\n\n The loan is available if the shared memory is enabled and all the constraints\n to enable shared memory are met and the type is fixed\n @note dds_loan_sample can be used if and only if\n dds_is_loan_available returns true.\n\n @param[in] entity the handle of the entity\n\n @returns loan available or not"]
pub fn dds_is_loan_available(entity: dds_entity_t) -> bool;
}
unsafe extern "C" {
#[doc = " @ingroup deprecated\n @component read_data\n @brief Loan a sample from the writer.\n @deprecated Use @ref dds_request_loan\n @note This function is to be used with dds_write to publish the loaned\n sample.\n @note The function can only be used if dds_is_loan_available is\n true for the writer.\n\n @param[in] writer the writer to loan the buffer from\n @param[out] sample the loaned sample\n\n @returns DDS_RETCODE_OK if successful, DDS_RETCODE_ERROR otherwise"]
pub fn dds_loan_sample(
writer: dds_entity_t,
sample: *mut *mut ::std::ffi::c_void,
) -> dds_return_t;
}
pub const dds_qos_kind_DDS_PARTICIPANT_QOS: dds_qos_kind = 0;
pub const dds_qos_kind_DDS_PUBLISHER_QOS: dds_qos_kind = 1;
pub const dds_qos_kind_DDS_SUBSCRIBER_QOS: dds_qos_kind = 2;
pub const dds_qos_kind_DDS_TOPIC_QOS: dds_qos_kind = 3;
pub const dds_qos_kind_DDS_READER_QOS: dds_qos_kind = 4;
pub const dds_qos_kind_DDS_WRITER_QOS: dds_qos_kind = 5;
#[doc = " @brief All kind of entities for which qos can be stored in Profile.\n @ingroup qos_provider\n @component qos_provider_api"]
pub type dds_qos_kind = ::std::ffi::c_uint;
#[doc = " @brief All kind of entities for which qos can be stored in Profile.\n @ingroup qos_provider\n @component qos_provider_api"]
pub use self::dds_qos_kind as dds_qos_kind_t;
#[doc = " @brief Sample structure of the Qos Provider.\n @ingroup qos_provider\n @component qos_provider_api"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_qos_provider {
_unused: [u8; 0],
}
pub type dds_qos_provider_t = dds_qos_provider;
unsafe extern "C" {
#[doc = " @brief Initialize Qos Provider.\n @ingroup qos_provider\n @component qos_provider_api\n\n Create dds_qos_provider with provided system definition file path.\n\n @param[in] path - String that contains system definition inself or path to system defenition file.\n @param[in,out] provider - Pointer to the Qos Provider structure.\n\n @return a DDS return code"]
pub fn dds_create_qos_provider(
path: *const ::std::ffi::c_char,
provider: *mut *mut dds_qos_provider_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Initialize Qos Provider with certain scope.\n @ingroup qos_provider\n @component qos_provider_api\n\n Create dds_qos_provider with provided system definition file path and scope.\n\n @param[in] path - String that contains system definition inself or path to system defenition file.\n @param[in,out] provider - Pointer to the Qos Provider structure.\n @param[in] key - String that contains pattern of interested qos from `path` in format '<library name>::<profile name>::<entity name>'.\n\n @return a DDS return code"]
pub fn dds_create_qos_provider_scope(
path: *const ::std::ffi::c_char,
provider: *mut *mut dds_qos_provider_t,
key: *const ::std::ffi::c_char,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get Qos from Qos Provider.\n @ingroup qos_provider\n @component qos_provider_api\n\n Provide access to dds_qos_t from dds_qos_provider by full key and type of qos entity.\n\n @param[in] provider - Pointer to the Qos Provider structure.\n @param[in] type - Type of entity which Qos to get.\n @param[in] key - Full qualify name of Qos to get in format '<library name>::<profile name>::<entity name>'.\n @param[in,out] qos - Pointer to the Qos structure.\n\n @return a DDS return code"]
pub fn dds_qos_provider_get_qos(
provider: *const dds_qos_provider_t,
type_: dds_qos_kind_t,
key: *const ::std::ffi::c_char,
qos: *mut *const dds_qos_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Finalize Qos Provider.\n @ingroup qos_provider\n @component qos_provider_api\n\n Release resources allocated by dds_qos_provider.\n\n @param[in] provider - Pointer to the Qos Provider structure."]
pub fn dds_delete_qos_provider(provider: *mut dds_qos_provider_t);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_typeid {
_unused: [u8; 0],
}
#[doc = " @brief DDS Type Identifier (XTypes)\n @ingroup dds\n DOC_TODO"]
pub type dds_typeid_t = ddsi_typeid;
#[doc = " @brief DDS Type Information (XTypes)\n @ingroup dds\n DOC_TODO"]
pub type dds_typeinfo_t = ddsi_typeinfo;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_typeobj {
_unused: [u8; 0],
}
#[doc = " @brief DDS Type Object (XTypes)\n @ingroup dds\n DOC_TODO"]
pub type dds_typeobj_t = ddsi_typeobj;
#[doc = " @brief DDSI parameter list\n @ingroup dds\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_plist {
_unused: [u8; 0],
}
#[doc = " @anchor ddsi_sertype\n @brief DDSI sertype\n @ingroup dds\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_sertype {
_unused: [u8; 0],
}
#[doc = " @anchor ddsi_serdata\n @brief DDSI Serdata\n @ingroup dds\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_serdata {
_unused: [u8; 0],
}
#[doc = " @brief DDSI Config\n @ingroup dds\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_config {
_unused: [u8; 0],
}
#[doc = "< See @ref DDS_INCONSISTENT_TOPIC_STATUS"]
pub const dds_status_id_DDS_INCONSISTENT_TOPIC_STATUS_ID: dds_status_id = 0;
#[doc = "< See @ref DDS_OFFERED_DEADLINE_MISSED_STATUS"]
pub const dds_status_id_DDS_OFFERED_DEADLINE_MISSED_STATUS_ID: dds_status_id = 1;
#[doc = "< See @ref DDS_REQUESTED_DEADLINE_MISSED_STATUS"]
pub const dds_status_id_DDS_REQUESTED_DEADLINE_MISSED_STATUS_ID: dds_status_id = 2;
#[doc = "< See @ref DDS_OFFERED_INCOMPATIBLE_QOS_STATUS"]
pub const dds_status_id_DDS_OFFERED_INCOMPATIBLE_QOS_STATUS_ID: dds_status_id = 3;
#[doc = "< See @ref DDS_REQUESTED_INCOMPATIBLE_QOS_STATUS"]
pub const dds_status_id_DDS_REQUESTED_INCOMPATIBLE_QOS_STATUS_ID: dds_status_id = 4;
#[doc = "< See @ref DDS_SAMPLE_LOST_STATUS"]
pub const dds_status_id_DDS_SAMPLE_LOST_STATUS_ID: dds_status_id = 5;
#[doc = "< See @ref DDS_SAMPLE_REJECTED_STATUS"]
pub const dds_status_id_DDS_SAMPLE_REJECTED_STATUS_ID: dds_status_id = 6;
#[doc = "< See @ref DDS_DATA_ON_READERS_STATUS"]
pub const dds_status_id_DDS_DATA_ON_READERS_STATUS_ID: dds_status_id = 7;
#[doc = "< See @ref DDS_DATA_AVAILABLE_STATUS"]
pub const dds_status_id_DDS_DATA_AVAILABLE_STATUS_ID: dds_status_id = 8;
#[doc = "< See @ref DDS_LIVELINESS_LOST_STATUS"]
pub const dds_status_id_DDS_LIVELINESS_LOST_STATUS_ID: dds_status_id = 9;
#[doc = "< See @ref DDS_LIVELINESS_CHANGED_STATUS"]
pub const dds_status_id_DDS_LIVELINESS_CHANGED_STATUS_ID: dds_status_id = 10;
#[doc = "< See @ref DDS_PUBLICATION_MATCHED_STATUS"]
pub const dds_status_id_DDS_PUBLICATION_MATCHED_STATUS_ID: dds_status_id = 11;
#[doc = "< See @ref DDS_SUBSCRIPTION_MATCHED_STATUS"]
pub const dds_status_id_DDS_SUBSCRIPTION_MATCHED_STATUS_ID: dds_status_id = 12;
#[doc = " @defgroup entity_status (Entity Status)\n @ingroup entity\n All entities have a set of \"status conditions\"\n (following the DCPS spec), read peeks, take reads & resets (analogously to read &\n take operations on reader). The \"mask\" allows operating only on a subset of the statuses.\n Enabled status analogously to DCPS spec.\n @{\n/\n/**\n @brief These identifiers are used to generate the bitshifted identifiers.\n By using bitflags instead of these IDs the process of building status masks is\n simplified to using simple binary OR operations.\n DOC_TODO fix the refs"]
pub type dds_status_id = ::std::ffi::c_uint;
#[doc = " @defgroup entity_status (Entity Status)\n @ingroup entity\n All entities have a set of \"status conditions\"\n (following the DCPS spec), read peeks, take reads & resets (analogously to read &\n take operations on reader). The \"mask\" allows operating only on a subset of the statuses.\n Enabled status analogously to DCPS spec.\n @{\n/\n/**\n @brief These identifiers are used to generate the bitshifted identifiers.\n By using bitflags instead of these IDs the process of building status masks is\n simplified to using simple binary OR operations.\n DOC_TODO fix the refs"]
pub use self::dds_status_id as dds_status_id_t;
#[doc = "<DataReader has already accessed the sample by read"]
pub const dds_sample_state_DDS_SST_READ: dds_sample_state = 1;
#[doc = "<DataReader has not accessed the sample before"]
pub const dds_sample_state_DDS_SST_NOT_READ: dds_sample_state = 2;
#[doc = " Read state for a data value"]
pub type dds_sample_state = ::std::ffi::c_uint;
#[doc = " Read state for a data value"]
pub use self::dds_sample_state as dds_sample_state_t;
#[doc = " DataReader is accessing the sample for the first time when the instance is alive"]
pub const dds_view_state_DDS_VST_NEW: dds_view_state = 4;
#[doc = " DataReader accessed the sample before"]
pub const dds_view_state_DDS_VST_OLD: dds_view_state = 8;
#[doc = " View state of an instance relative to the samples"]
pub type dds_view_state = ::std::ffi::c_uint;
#[doc = " View state of an instance relative to the samples"]
pub use self::dds_view_state as dds_view_state_t;
#[doc = " Samples received for the instance from the live data writers"]
pub const dds_instance_state_DDS_IST_ALIVE: dds_instance_state = 16;
#[doc = " Instance was explicitly disposed by the data writer"]
pub const dds_instance_state_DDS_IST_NOT_ALIVE_DISPOSED: dds_instance_state = 32;
#[doc = " Instance has been declared as not alive by data reader as there are no live data writers writing that instance"]
pub const dds_instance_state_DDS_IST_NOT_ALIVE_NO_WRITERS: dds_instance_state = 64;
#[doc = " Defines the state of the instance"]
pub type dds_instance_state = ::std::ffi::c_uint;
#[doc = " Defines the state of the instance"]
pub use self::dds_instance_state as dds_instance_state_t;
#[doc = " Contains information about the associated data value"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_sample_info {
#[doc = " Sample state"]
pub sample_state: dds_sample_state_t,
#[doc = " View state"]
pub view_state: dds_view_state_t,
#[doc = " Instance state"]
pub instance_state: dds_instance_state_t,
#[doc = " Indicates whether there is a data associated with a sample\n - true, indicates the data is valid\n - false, indicates the data is invalid, no data to read"]
pub valid_data: bool,
#[doc = " timestamp of a data instance when it is written"]
pub source_timestamp: dds_time_t,
#[doc = " handle to the data instance"]
pub instance_handle: dds_instance_handle_t,
#[doc = " handle to the publisher"]
pub publication_handle: dds_instance_handle_t,
#[doc = " count of instance state change from NOT_ALIVE_DISPOSED to ALIVE"]
pub disposed_generation_count: u32,
#[doc = " count of instance state change from NOT_ALIVE_NO_WRITERS to ALIVE"]
pub no_writers_generation_count: u32,
#[doc = " indicates the number of samples of the same instance that follow the current one in the collection"]
pub sample_rank: u32,
#[doc = " difference in generations between the sample and most recent sample of the same instance that appears in the returned collection"]
pub generation_rank: u32,
#[doc = " difference in generations between the sample and most recent sample of the same instance when read/take was called"]
pub absolute_generation_rank: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_sample_info"][::std::mem::size_of::<dds_sample_info>() - 64usize];
["Alignment of dds_sample_info"][::std::mem::align_of::<dds_sample_info>() - 8usize];
["Offset of field: dds_sample_info::sample_state"]
[::std::mem::offset_of!(dds_sample_info, sample_state) - 0usize];
["Offset of field: dds_sample_info::view_state"]
[::std::mem::offset_of!(dds_sample_info, view_state) - 4usize];
["Offset of field: dds_sample_info::instance_state"]
[::std::mem::offset_of!(dds_sample_info, instance_state) - 8usize];
["Offset of field: dds_sample_info::valid_data"]
[::std::mem::offset_of!(dds_sample_info, valid_data) - 12usize];
["Offset of field: dds_sample_info::source_timestamp"]
[::std::mem::offset_of!(dds_sample_info, source_timestamp) - 16usize];
["Offset of field: dds_sample_info::instance_handle"]
[::std::mem::offset_of!(dds_sample_info, instance_handle) - 24usize];
["Offset of field: dds_sample_info::publication_handle"]
[::std::mem::offset_of!(dds_sample_info, publication_handle) - 32usize];
["Offset of field: dds_sample_info::disposed_generation_count"]
[::std::mem::offset_of!(dds_sample_info, disposed_generation_count) - 40usize];
["Offset of field: dds_sample_info::no_writers_generation_count"]
[::std::mem::offset_of!(dds_sample_info, no_writers_generation_count) - 44usize];
["Offset of field: dds_sample_info::sample_rank"]
[::std::mem::offset_of!(dds_sample_info, sample_rank) - 48usize];
["Offset of field: dds_sample_info::generation_rank"]
[::std::mem::offset_of!(dds_sample_info, generation_rank) - 52usize];
["Offset of field: dds_sample_info::absolute_generation_rank"]
[::std::mem::offset_of!(dds_sample_info, absolute_generation_rank) - 56usize];
};
impl Default for dds_sample_info {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " Contains information about the associated data value"]
pub type dds_sample_info_t = dds_sample_info;
#[doc = " @brief Sample structure of the Builtin topic DcpsParticipant.\n @ingroup builtintopic"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_builtintopic_participant {
#[doc = "< The GUID that uniquely identifies the participant on the network"]
pub key: dds_guid_t,
#[doc = "< The QoS of the participant"]
pub qos: *mut dds_qos_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_builtintopic_participant"]
[::std::mem::size_of::<dds_builtintopic_participant>() - 24usize];
["Alignment of dds_builtintopic_participant"]
[::std::mem::align_of::<dds_builtintopic_participant>() - 8usize];
["Offset of field: dds_builtintopic_participant::key"]
[::std::mem::offset_of!(dds_builtintopic_participant, key) - 0usize];
["Offset of field: dds_builtintopic_participant::qos"]
[::std::mem::offset_of!(dds_builtintopic_participant, qos) - 16usize];
};
impl Default for dds_builtintopic_participant {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief Sample structure of the Builtin topic DcpsParticipant.\n @ingroup builtintopic"]
pub type dds_builtintopic_participant_t = dds_builtintopic_participant;
#[doc = " @brief Structure of a key in the Builtin topic DcpsTopic.\n @ingroup builtintopic"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_builtintopic_topic_key {
#[doc = "< 16-byte unique identifier"]
pub d: [::std::ffi::c_uchar; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_builtintopic_topic_key"]
[::std::mem::size_of::<dds_builtintopic_topic_key>() - 16usize];
["Alignment of dds_builtintopic_topic_key"]
[::std::mem::align_of::<dds_builtintopic_topic_key>() - 1usize];
["Offset of field: dds_builtintopic_topic_key::d"]
[::std::mem::offset_of!(dds_builtintopic_topic_key, d) - 0usize];
};
#[doc = " @brief Structure of a key in the Builtin topic DcpsTopic.\n @ingroup builtintopic"]
pub type dds_builtintopic_topic_key_t = dds_builtintopic_topic_key;
#[doc = " @brief Sample structure of the Builtin topic DcpsTopic.\n @ingroup builtintopic"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_builtintopic_topic {
#[doc = "< The GUID that uniquely identifies the topic on the network"]
pub key: dds_builtintopic_topic_key_t,
#[doc = "< The name of the topic, potentially unicode."]
pub topic_name: *mut ::std::ffi::c_char,
#[doc = "< The name of the type, potentially unicode."]
pub type_name: *mut ::std::ffi::c_char,
#[doc = "< The QoS of the topic"]
pub qos: *mut dds_qos_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_builtintopic_topic"][::std::mem::size_of::<dds_builtintopic_topic>() - 40usize];
["Alignment of dds_builtintopic_topic"]
[::std::mem::align_of::<dds_builtintopic_topic>() - 8usize];
["Offset of field: dds_builtintopic_topic::key"]
[::std::mem::offset_of!(dds_builtintopic_topic, key) - 0usize];
["Offset of field: dds_builtintopic_topic::topic_name"]
[::std::mem::offset_of!(dds_builtintopic_topic, topic_name) - 16usize];
["Offset of field: dds_builtintopic_topic::type_name"]
[::std::mem::offset_of!(dds_builtintopic_topic, type_name) - 24usize];
["Offset of field: dds_builtintopic_topic::qos"]
[::std::mem::offset_of!(dds_builtintopic_topic, qos) - 32usize];
};
impl Default for dds_builtintopic_topic {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief Sample structure of the Builtin topic DcpsTopic.\n @ingroup builtintopic"]
pub type dds_builtintopic_topic_t = dds_builtintopic_topic;
#[doc = " @brief Sample structure of the Builtin topic DcpsPublication and DcpsSubscription.\n @ingroup builtintopic"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_builtintopic_endpoint {
#[doc = "< The GUID that uniquely identifies the endpoint on the network"]
pub key: dds_guid_t,
#[doc = "< The GUID of the participant this endpoint belongs to."]
pub participant_key: dds_guid_t,
#[doc = "< The instance handle the participant assigned to this enpoint."]
pub participant_instance_handle: dds_instance_handle_t,
#[doc = "< The name of the topic, potentially unicode."]
pub topic_name: *mut ::std::ffi::c_char,
#[doc = "< The name of the type, potentially unicode."]
pub type_name: *mut ::std::ffi::c_char,
#[doc = "< The QoS of the endpoint"]
pub qos: *mut dds_qos_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_builtintopic_endpoint"]
[::std::mem::size_of::<dds_builtintopic_endpoint>() - 64usize];
["Alignment of dds_builtintopic_endpoint"]
[::std::mem::align_of::<dds_builtintopic_endpoint>() - 8usize];
["Offset of field: dds_builtintopic_endpoint::key"]
[::std::mem::offset_of!(dds_builtintopic_endpoint, key) - 0usize];
["Offset of field: dds_builtintopic_endpoint::participant_key"]
[::std::mem::offset_of!(dds_builtintopic_endpoint, participant_key) - 16usize];
["Offset of field: dds_builtintopic_endpoint::participant_instance_handle"]
[::std::mem::offset_of!(dds_builtintopic_endpoint, participant_instance_handle) - 32usize];
["Offset of field: dds_builtintopic_endpoint::topic_name"]
[::std::mem::offset_of!(dds_builtintopic_endpoint, topic_name) - 40usize];
["Offset of field: dds_builtintopic_endpoint::type_name"]
[::std::mem::offset_of!(dds_builtintopic_endpoint, type_name) - 48usize];
["Offset of field: dds_builtintopic_endpoint::qos"]
[::std::mem::offset_of!(dds_builtintopic_endpoint, qos) - 56usize];
};
impl Default for dds_builtintopic_endpoint {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief Sample structure of the Builtin topic DcpsPublication and DcpsSubscription.\n @ingroup builtintopic"]
pub type dds_builtintopic_endpoint_t = dds_builtintopic_endpoint;
unsafe extern "C" {
#[doc = " @brief Enable entity.\n @ingroup entity\n @component generic_entity\n\n @note Delayed entity enabling is not supported yet (CHAM-96).\n\n This operation enables the dds_entity_t. Created dds_entity_t objects can start in\n either an enabled or disabled state. This is controlled by the value of the\n entityfactory policy on the corresponding parent entity for the given\n entity. Enabled entities are immediately activated at creation time meaning\n all their immutable QoS settings can no longer be changed. Disabled Entities are not\n yet activated, so it is still possible to change their immutable QoS settings. However,\n once activated the immutable QoS settings can no longer be changed.\n Creating disabled entities can make sense when the creator of the DDS_Entity\n does not yet know which QoS settings to apply, thus allowing another piece of code\n to set the QoS later on.\n\n The default setting of DDS_EntityFactoryQosPolicy is such that, by default,\n entities are created in an enabled state so that it is not necessary to explicitly call\n dds_enable on newly-created entities.\n\n The dds_enable operation produces the same results no matter how\n many times it is performed. Calling dds_enable on an already\n enabled DDS_Entity returns DDS_RETCODE_OK and has no effect.\n\n If an Entity has not yet been enabled, the only operations that can be invoked\n on it are: the ones to set, get or copy the QosPolicy settings, the ones that set\n (or get) the Listener, the ones that get the Status and the dds_get_status_changes\n operation (although the status of a disabled entity never changes). Other operations\n will return the error DDS_RETCODE_NOT_ENABLED.\n\n Entities created with a parent that is disabled, are created disabled regardless of\n the setting of the entityfactory policy.\n\n If the entityfactory policy has autoenable_created_entities\n set to TRUE, the dds_enable operation on the parent will\n automatically enable all child entities created with the parent.\n\n The Listeners associated with an Entity are not called until the\n Entity is enabled. Conditions associated with an Entity that\n is not enabled are \"inactive\", that is, have a trigger_value which is FALSE.\n\n @param[in] entity The entity to enable.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The listeners of to the entity have been successfully been copied\n into the specified listener parameter.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The parent of the given Entity is not enabled."]
pub fn dds_enable(entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Delete given entity.\n @ingroup entity\n @component generic_entity\n\n This operation will delete the given entity. It will also automatically\n delete all its children, childrens' children, etc entities.\n\n @param[in] entity Entity to delete.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The entity and its children (recursive are deleted).\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_delete(entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get entity publisher.\n @ingroup entity\n @component entity_relations\n\n This operation returns the publisher to which the given entity belongs.\n For instance, it will return the Publisher that was used when\n creating a DataWriter (when that DataWriter was provided here).\n\n @param[in] writer Entity from which to get its publisher.\n\n @returns A valid entity or an error code.\n\n @retval >0\n A valid publisher handle.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_publisher(writer: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Get entity subscriber.\n @ingroup entity\n @component entity_relations\n\n This operation returns the subscriber to which the given entity belongs.\n For instance, it will return the Subscriber that was used when\n creating a DataReader (when that DataReader was provided here).\n\n @param[in] entity Entity from which to get its subscriber.\n\n @returns A valid subscriber handle or an error code.\n\n @retval >0\n A valid subscriber handle.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n DOC_TODO: Link to generic dds entity relations documentation."]
pub fn dds_get_subscriber(entity: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Get entity datareader.\n @ingroup entity\n @component entity_relations\n\n This operation returns the datareader to which the given entity belongs.\n For instance, it will return the DataReader that was used when\n creating a ReadCondition (when that ReadCondition was provided here).\n\n @param[in] entity Entity from which to get its datareader.\n\n @returns A valid reader handle or an error code.\n\n @retval >0\n A valid reader handle.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n DOC_TODO: Link to generic dds entity relations documentation."]
pub fn dds_get_datareader(entity: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Get the mask of a condition.\n @ingroup condition\n @component entity_status\n\n This operation returns the mask that was used to create the given\n condition.\n\n @param[in] condition Read or Query condition that has a mask.\n @param[out] mask Where to store the mask of the condition.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n Success (given mask is set).\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n The mask arg is NULL.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_mask(condition: dds_entity_t, mask: *mut u32) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Returns the instance handle that represents the entity.\n @ingroup entity\n @component generic_entity\n\n @param[in] entity Entity of which to get the instance handle.\n @param[out] ihdl Pointer to dds_instance_handle_t.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n Success.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n DOC_TODO: Check list of return codes is complete."]
pub fn dds_get_instance_handle(
entity: dds_entity_t,
ihdl: *mut dds_instance_handle_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Returns the GUID that represents the entity in the network,\n and therefore only supports participants, readers and writers.\n @ingroup entity\n @component generic_entity\n\n @param[in] entity Entity of which to get the instance handle.\n @param[out] guid Where to store the GUID.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n Success.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n\n DOC_TODO: Check list of return codes is complete."]
pub fn dds_get_guid(entity: dds_entity_t, guid: *mut dds_guid_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read the status set for the entity\n @ingroup entity_status\n @component entity_status\n\n This operation reads the status(es) set for the entity based on\n the enabled status and mask set. It does not clear the read status(es).\n\n @param[in] entity Entity on which the status has to be read.\n @param[out] status Returns the status set on the entity, based on the enabled status.\n @param[in] mask Filter the status condition to be read, 0 means all statuses\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n Success.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not a valid parameter, status is a null pointer or\n mask has bits set outside the status range.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object or mask has status\n bits set that are undefined for the type of entity.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_read_status(entity: dds_entity_t, status: *mut u32, mask: u32) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read the status set for the entity\n @ingroup entity_status\n @component entity_status\n\n This operation reads the status(es) set for the entity based on the enabled\n status and mask set. It clears the status set after reading.\n\n @param[in] entity Entity on which the status has to be read.\n @param[out] status Returns the status set on the entity, based on the enabled status.\n @param[in] mask Filter the status condition to be read, 0 means all statuses\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n Success.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not a valid parameter, status is a null pointer or\n mask has bits set outside the status range.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object or mask has status\n bits set that are undefined for the type of entity.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_take_status(entity: dds_entity_t, status: *mut u32, mask: u32) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get changed status(es)\n @ingroup entity_status\n @component entity_status\n\n This operation returns the status changes since they were last read.\n\n @param[in] entity Entity on which the statuses are read.\n @param[out] status Returns the current set of triggered statuses.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n Success.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_status_changes(entity: dds_entity_t, status: *mut u32) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @anchor dds_get_status_mask\n @brief Get enabled status on entity\n @ingroup entity_status\n @component entity_status\n\n This operation returns the status enabled on the entity\n\n @param[in] entity Entity to get the status.\n @param[out] mask Mask of enabled statuses set on the entity.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n Success.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_status_mask(entity: dds_entity_t, mask: *mut u32) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @anchor dds_set_status_mask\n @brief Set status enabled on entity\n @ingroup entity_status\n @component entity_status\n\n This operation enables the status(es) based on the mask set\n\n @param[in] entity Entity to enable the status.\n @param[in] mask Status value that indicates the status to be enabled.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n Success.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_set_status_mask(entity: dds_entity_t, mask: u32) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get entity QoS policies.\n @ingroup entity_qos\n @component entity_qos\n\n This operation allows access to the existing set of QoS policies\n for the entity.\n\n @param[in] entity Entity on which to get qos.\n @param[out] qos Pointer to the qos structure that returns the set policies.\n\n @returns A dds_return_t indicating success or failure. The QoS object will have\n at least all QoS relevant for the entity present and the corresponding dds_qget_...\n will return true.\n\n @retval DDS_RETCODE_OK\n The existing set of QoS policy values applied to the entity\n has successfully been copied into the specified qos parameter.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n The qos parameter is NULL.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n\n DOC_TODO: Link to generic QoS information documentation."]
pub fn dds_get_qos(entity: dds_entity_t, qos: *mut dds_qos_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Set entity QoS policies.\n @ingroup entity_qos\n @component entity_qos\n\n This operation replaces the existing set of Qos Policy settings for an\n entity. The parameter qos must contain the struct with the QosPolicy\n settings which is checked for self-consistency.\n\n The set of QosPolicy settings specified by the qos parameter are applied on\n top of the existing QoS, replacing the values of any policies previously set\n (provided, the operation returned DDS_RETCODE_OK).\n\n Not all policies are changeable when the entity is enabled.\n\n @note Currently only Latency Budget and Ownership Strength are changeable QoS\n that can be set.\n\n @param[in] entity Entity from which to get qos.\n @param[in] qos Pointer to the qos structure that provides the policies.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The new QoS policies are set.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n The qos parameter is NULL.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_IMMUTABLE_POLICY\n The entity is enabled and one or more of the policies of the QoS\n are immutable.\n @retval DDS_RETCODE_INCONSISTENT_POLICY\n A few policies within the QoS are not consistent with each other.\n\n DOC_TODO: Link to generic QoS information documentation."]
pub fn dds_set_qos(entity: dds_entity_t, qos: *const dds_qos_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get entity listeners.\n @ingroup entity_listener\n @component entity_listener\n\n This operation allows access to the existing listeners attached to\n the entity.\n\n @param[in] entity Entity on which to get the listeners.\n @param[out] listener Pointer to the listener structure that returns the\n set of listener callbacks.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The listeners of to the entity have been successfully been\n copied into the specified listener parameter.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n The listener parameter is NULL.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n\n DOC_TODO: Link to (generic) Listener and status information."]
pub fn dds_get_listener(entity: dds_entity_t, listener: *mut dds_listener_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Set entity listeners.\n @ingroup entity_listener\n @component entity_listener\n\n This operation attaches a dds_listener_t to the dds_entity_t. Only one\n Listener can be attached to each Entity. If a Listener was already\n attached, this operation will replace it with the new one. In other\n words, all related callbacks are replaced (possibly with NULL).\n\n A call to this operation will immediately invoke any listener callbacks for\n which the corresponding status flag is set. It may cause spurious invocations,\n including multiple invocations for one listener. For most cases this is unlikely,\n but for the DATA_ON_READERS listeners it is quite likely, though not certain.\n\n When listener parameter is NULL, all listener callbacks that were possibly\n set on the Entity will be removed.\n\n @note Not all listener callbacks are related to all entities.\n\n ## Communication Status\n For each communication status, the StatusChangedFlag flag is initially set to\n FALSE. It becomes TRUE whenever that plain communication status changes. For\n each plain communication status activated in the mask, the associated\n Listener callback is invoked and the communication status is reset\n to FALSE, as the listener implicitly accesses the status which is passed as a\n parameter to that operation.\n The status is reset prior to calling the listener, so if the application calls\n the get_<status_name> from inside the listener it will see the\n status already reset.\n\n ## Status Propagation\n In case a related callback within the Listener is not set, the Listener of\n the Parent entity is called recursively, until a Listener with the appropriate\n callback set has been found and called. This allows the application to set\n (for instance) a default behaviour in the Listener of the containing Publisher\n and a DataWriter specific behaviour when needed. In case the callback is not\n set in the Publishers' Listener either, the communication status will be\n propagated to the Listener of the DomainParticipant of the containing\n DomainParticipant. In case the callback is not set in the DomainParticipants'\n Listener either, the Communication Status flag will be set, resulting in a\n possible WaitSet trigger.\n\n @param[in] entity Entity on which to get the listeners.\n @param[in] listener Pointer to the listener structure that contains the\n set of listener callbacks (maybe NULL).\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The listeners of to the entity have been successfully been\n copied into the specified listener parameter.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n DOC_TODO: Link to (generic) Listener and status information."]
pub fn dds_set_listener(entity: dds_entity_t, listener: *const dds_listener_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Creates a new instance of a DDS participant in a domain\n @ingroup domain_participant\n @component participant\n\n This function creates a new participant in the specified domain id, implicitly creating\n a domain entity if one doesn't exist for the specified domain id. The domain entity\n can exist as a consequence of the existence of another participant in it, or because it\n was explicitly created using @ref dds_create_domain or @ref\n dds_create_domain_with_rawconfig. If the domain entity has not been created yet, a new\n domain entity is created using a configuration taken from the CYCLONEDDS_URI\n environment variable.\n\n The domain id may be specified as DDS_DOMAIN_DEFAULT, in which case the behaviour\n depends on whether some domain entity already exists or not. If there is at least one,\n the one with the lowest id will be used. If there are none, one is created with the\n domain id taken from the first domain id specified in the configuration file (i.e.,\n with a Domain element with the id attribute not \"any\"), and if no domain id is\n specified in the configuration file, domain id 0 is used.\n\n The domain configuration is constructed by amending the default configuration with the\n Domain configuration (fragments) for which the domain id is specifed as \"any\" and those\n for which the domain id matches the specified domain id (not DDS_DOMAIN_DEFAULT) in the\n order in which they are encountered in the configuration.\n\n @param[in] domain The domain in which to create the participant.\n @param[in] qos The QoS to set on the new participant (can be NULL).\n @param[in] listener Any listener functions associated with the new participant (can be NULL).\n\n @returns A valid participant handle or an error code.\n\n @retval >0\n A valid participant handle.\n @retval DDS_RETCODE_NOT_ALLOWED_BY_SECURITY\n An invalid DDS Security configuration was specified (whether\n that be missing or incorrect entries, expired certificates,\n or anything else related to the security settings and\n implementation).\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n Some security properties specified in the QoS, but the Cyclone\n build does not include support for DDS Security.\n @retval DDS_RETCODE_OUT_OF_RESOURCES\n Some resource limit (maximum participants, memory, handles,\n &c.) prevented creation of the participant.\n @retval DDS_RETCODE_ERROR\n The \"CYCLONEDDS_URI\" environment variable lists non-existent\n or invalid configuration files, or contains invalid embedded\n configuration items; or an unspecified internal error has\n occurred."]
pub fn dds_create_participant(
domain: dds_domainid_t,
qos: *const dds_qos_t,
listener: *const dds_listener_t,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Creates a domain with a given configuration\n @ingroup domain\n @component domain\n\n To explicitly create a domain based on a configuration passed as a string. A domain\n created in this manner must be explicitly deleted by calling @ref dds_delete on the\n domain (or on DDS_CYCLONEDDS_HANDLE).\n\n It will not be created if a domain with the given domain id already exists. This could\n have been created implicitly by a previous call to this function, @ref\n dds_create_participant or @ref dds_create_domain_with_rawconfig.\n\n The domain configuration is constructed by amending the default configuration with the\n Domain configuration (fragments) for which the domain id is specifed as \"any\" and those\n for which the domain id matches the specified domain id in the order in which they are\n encountered in the configuration.\n\n Using NULL or \"\" as config will create a domain with default settings.\n\n @param[in] domain The domain to be created. DDS_DEFAULT_DOMAIN is not allowed.\n @param[in] config A configuration string containing file names and/or XML fragments representing the configuration.\n\n @returns A valid entity handle or an error code.\n\n @retval DDS_RETCODE_BAD_PARAMETER\n Illegal value for domain id or the configfile parameter is NULL.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The domain already existed and cannot be created again.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred."]
pub fn dds_create_domain(
domain: dds_domainid_t,
config: *const ::std::ffi::c_char,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Creates a domain with a given configuration, specified as an\n initializer (unstable interface)\n @ingroup domain\n @component domain\n @unstable\n\n To explicitly create a domain based on a configuration passed as a raw initializer\n rather than as an XML string. This allows bypassing the XML parsing, but tightly\n couples the initializing to implementation. See\n dds/ddsi/ddsi_config.h:ddsi_config_init_default for a way to initialize the default\n configuration. A domain created in this manner must be explicitly deleted by calling\n @ref dds_delete on the domain (or on DDS_CYCLONEDDS_HANDLE).\n\n It will not be created if a domain with the given domain id already exists. This could\n have been created implicitly by a previous call to this function, @ref\n dds_create_participant or @ref dds_create_domain_with_rawconfig.\n\n Please be aware that the given domain_id always takes precedence over the\n configuration.\n\n @param[in] domain The domain to be created. DDS_DEFAULT_DOMAIN is not allowed.\n @param[in] config A configuration initializer. The lifetime of any pointers\n in config must be at least that of the lifetime of the domain.\n\n @returns A valid entity handle or an error code.\n\n @retval DDS_RETCODE_BAD_PARAMETER\n Illegal value for domain id or the config parameter is NULL.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The domain already existed and cannot be created again.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred."]
pub fn dds_create_domain_with_rawconfig(
domain: dds_domainid_t,
config: *const ddsi_config,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Get entity parent.\n @ingroup entity\n @component entity_relations\n\n This operation returns the parent to which the given entity belongs.\n For instance, it will return the Participant that was used when\n creating a Publisher (when that Publisher was provided here).\n\n When a reader or a writer are created with a participant, then a\n subscriber or publisher are created implicitly.\n This function will return the implicit parent and not the used\n participant.\n\n @param[in] entity Entity from which to get its parent.\n\n @returns A valid entity handle or an error code.\n\n @retval >0\n A valid entity handle.\n @retval DDS_ENTITY_NIL\n Called with a participant.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n DOC_TODO: Link to generic dds entity relations documentation."]
pub fn dds_get_parent(entity: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Get entity participant.\n @ingroup entity\n @component entity_relations\n\n This operation returns the participant to which the given entity belongs.\n For instance, it will return the Participant that was used when\n creating a Publisher that was used to create a DataWriter (when that\n DataWriter was provided here).\n\n DOC_TODO: Link to generic dds entity relations documentation.\n\n @param[in] entity Entity from which to get its participant.\n\n @returns A valid entity or an error code.\n\n @retval >0\n A valid participant handle.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_participant(entity: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Get entity children.\n @ingroup entity\n @component entity_relations\n\n This operation returns the children that the entity contains.\n For instance, it will return all the Topics, Publishers and Subscribers\n of the Participant that was used to create those entities (when that\n Participant is provided here).\n\n This functions takes a pre-allocated list to put the children in and\n will return the number of found children. It is possible that the given\n size of the list is not the same as the number of found children. If\n less children are found, then the last few entries in the list are\n untouched. When more children are found, then only 'size' number of\n entries are inserted into the list, but still complete count of the\n found children is returned. Which children are returned in the latter\n case is undefined.\n\n When supplying NULL as list and 0 as size, you can use this to acquire\n the number of children without having to pre-allocate a list.\n\n When a reader or a writer are created with a participant, then a\n subscriber or publisher are created implicitly.\n When used on the participant, this function will return the implicit\n subscriber and/or publisher and not the related reader/writer.\n\n @param[in] entity Entity from which to get its children.\n @param[out] children Pre-allocated array to contain the found children.\n @param[in] size Size of the pre-allocated children's list.\n\n @returns Number of children or an error code.\n\n @retval >=0\n Number of found children (can be larger than 'size').\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n The children parameter is NULL, while a size is provided.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_children(
entity: dds_entity_t,
children: *mut dds_entity_t,
size: usize,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get the domain id to which this entity is attached.\n @ingroup entity\n @component entity_relations\n\n When creating a participant entity, it is attached to a certain domain.\n All the children (like Publishers) and childrens' children (like\n DataReaders), etc are also attached to that domain.\n\n This function will return the original domain ID when called on\n any of the entities within that hierarchy. For entities not associated\n with a domain, the id is set to DDS_DOMAIN_DEFAULT.\n\n @param[in] entity Entity from which to get its children.\n @param[out] id Pointer to put the domain ID in.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n Domain ID was returned.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n The id parameter is NULL.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_domainid(entity: dds_entity_t, id: *mut dds_domainid_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get participants of a domain.\n @ingroup domain\n @component participant\n\n This operation acquires the participants created on a domain and returns\n the number of found participants.\n\n This function takes a domain id with the size of pre-allocated participant's\n list in and will return the number of found participants. It is possible that\n the given size of the list is not the same as the number of found participants.\n If less participants are found, then the last few entries in an array stay\n untouched. If more participants are found and the array is too small, then the\n participants returned are undefined.\n\n @param[in] domain_id The domain id.\n @param[out] participants The participant for domain.\n @param[in] size Size of the pre-allocated participant's list.\n\n @returns Number of participants found or and error code.\n\n @retval >0\n Number of participants found.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n The participant parameter is NULL, while a size is provided."]
pub fn dds_lookup_participant(
domain_id: dds_domainid_t,
participants: *mut dds_entity_t,
size: usize,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Creates a new topic with default type handling.\n @ingroup topic\n @component topic\n\n The type name for the topic is taken from the generated descriptor. Topic\n matching is done on a combination of topic name and type name. Each successful\n call to dds_create_topic creates a new topic entity sharing the same QoS\n settings with all other topics of the same name.\n\n @param[in] participant Participant on which to create the topic.\n @param[in] descriptor An IDL generated topic descriptor.\n @param[in] name Name of the topic.\n @param[in] qos QoS to set on the new topic (can be NULL).\n @param[in] listener Any listener functions associated with the new topic (can be NULL).\n\n @returns A valid, unique topic handle or an error code.\n\n @retval >=0\n A valid unique topic handle.\n @retval DDS_RETCODE_BAD_PARAMETER\n Either participant, descriptor, name or qos is invalid.\n @retval DDS_RETCODE_INCONSISTENT_POLICY\n QoS mismatch between qos and an existing topic's QoS.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n Mismatch between type name in descriptor and pre-existing\n topic's type name."]
pub fn dds_create_topic(
participant: dds_entity_t,
descriptor: *const dds_topic_descriptor_t,
name: *const ::std::ffi::c_char,
qos: *const dds_qos_t,
listener: *const dds_listener_t,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Creates a new topic with provided type handling.\n @ingroup topic\n @component topic\n\n The name for the type is taken from the provided \"sertype\" object. Type\n matching is done on a combination of topic name and type name. Each successful\n call to dds_create_topic creates a new topic entity sharing the same QoS\n settings with all other topics of the same name.\n\n In case this function returns a valid handle, the ownership of the provided\n sertype is handed over to Cyclone. On return, the caller gets in the sertype parameter a\n pointer to the sertype that is actually used by the topic. This can be the provided sertype\n (if this sertype was not yet known in the domain), or a sertype thas was\n already known in the domain.\n\n @param[in] participant Participant on which to create the topic.\n @param[in] name Topic name\n @param[in,out] sertype Internal description of the type . On return, the sertype parameter is set to the actual sertype that is used by the topic.\n @param[in] qos QoS to set on the new topic (can be NULL).\n @param[in] listener Any listener functions associated with the new topic (can be NULL).\n @param[in] sedp_plist Ignored (should be NULL, may be enforced in the future).\n\n @returns A valid, unique topic handle or an error code. Iff a valid handle, the domain takes ownership of provided serdata.\n\n @retval >=0\n A valid unique topic handle.\n @retval DDS_RETCODE_BAD_PARAMETER\n Either participant, descriptor, name or qos is invalid.\n @retval DDS_RETCODE_INCONSISTENT_POLICY\n QoS mismatch between qos and an existing topic's QoS.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n Mismatch between type name in sertype and pre-existing\n topic's type name."]
pub fn dds_create_topic_sertype(
participant: dds_entity_t,
name: *const ::std::ffi::c_char,
sertype: *mut *mut ddsi_sertype,
qos: *const dds_qos_t,
listener: *const dds_listener_t,
sedp_plist: *const ddsi_plist,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Finds a locally created or discovered remote topic by topic name and type information\n @ingroup topic\n @component topic\n\n Finds a locally created topic or a discovered remote topic based on the topic\n name and type. In case the topic is not found, this function will wait for\n the topic to become available until the provided time out.\n\n When using the scope DDS_FIND_SCOPE_LOCAL_DOMAIN, there will be no requests sent\n over the network for resolving the type in case it is unresolved. This also applies\n to dependent types: in case a dependency of the provided type is unresolved, no\n requests will be sent for resolving the type when using LOCAL_DOMAIN scope.\n\n In case the scope is DDS_FIND_SCOPE_GLOBAL, for unresolved types (or dependencies)\n a type lookup request will be sent.\n\n In case no type information is provided and multiple (discovered) topics exist\n with the provided name, an arbitrary topic with that name will be returned.\n In this scenario, it would be better to read DCPSTopic data and use that to\n get the required topic meta-data.\n\n The returned topic should be released with dds_delete.\n\n @param[in] scope The scope used to find the topic. In case topic discovery is not enabled in the build, SCOPE_GLOBAL cannot be used.\n @param[in] participant The handle of the participant the found topic will be created in\n @param[in] name The name of the topic to find.\n @param[in] type_info The type information of the topic to find. Optional, and should not be provided in case topic discovery is not enabled in the build.\n @param[in] timeout The timeout for waiting for the topic to become available\n\n @returns A valid topic handle or an error code.\n\n @retval >0\n A valid topic handle.\n @retval 0\n No topic of this name exists\n @retval DDS_RETCODE_BAD_PARAMETER\n Participant or type information was invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The provided type could not be found."]
pub fn dds_find_topic(
scope: dds_find_scope_t,
participant: dds_entity_t,
name: *const ::std::ffi::c_char,
type_info: *const dds_typeinfo_t,
timeout: dds_duration_t,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @component topic\n @deprecated Finds a locally created or discovered remote topic by topic name\n @ingroup deprecated\n Use @ref dds_find_topic instead.\n\n Finds a locally created topic or a discovered remote topic based on the topic\n name. In case the topic is not found, this function will wait for the topic\n to become available until the provided time out.\n\n In case multiple (discovered) topics exist with the provided name, this function\n will return randomly one of these topic. The caller can decide to read DCPSTopic\n data and select one of the topic definitions to create the topic.\n\n The returned topic should be released with dds_delete.\n\n @param[in] scope The scope used to find the topic\n @param[in] participant The handle of the participant the found topic will be created in\n @param[in] name The name of the topic to find.\n @param[in] timeout The timeout for waiting for the topic to become available\n\n @returns A valid topic handle or an error code.\n\n @retval >0\n A valid topic handle.\n @retval 0\n No topic of this name existed yet\n @retval DDS_RETCODE_BAD_PARAMETER\n Participant handle or scope invalid"]
pub fn dds_find_topic_scoped(
scope: dds_find_scope_t,
participant: dds_entity_t,
name: *const ::std::ffi::c_char,
timeout: dds_duration_t,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @ingroup topic\n @component topic\n @brief Creates topic descriptor for the provided type_info\n\n @param[in] scope The scope used to find the type: DDS_FIND_SCOPE_LOCAL_DOMAIN or DDS_FIND_SCOPE_GLOBAL. In case DDS_FIND_SCOPE_GLOBAL is used, a type lookup request will be sent to other nodes.\n @param[in] participant The handle of the participant.\n @param[in] type_info The type (dds_typeinfo_t) of the topic to find.\n @param[in] timeout The timeout for waiting for the type to become available\n @param[out] descriptor - Pointer to a dds_topic_descriptor_t pointer that will be allocated and populated. To free allocated memory for this descriptor, use dds_delete_topic_descriptor.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The topic descriptor has been succesfully created.\n @retval DDS_RETCODE_BAD_PARAMETER\n Type_info or descriptor parameter not provided, invalid entity (not a participant) or scope invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The participant or the type_id was not found.\n @retval DDS_RETCODE_TIMEOUT\n Type was not resolved within the provided timeout\n @retval DDS_RETCODE_UNSUPPORTED\n Cyclone DDS built without type discovery\n (cf. DDS_HAS_TYPE_DISCOVERY)"]
pub fn dds_create_topic_descriptor(
scope: dds_find_scope_t,
participant: dds_entity_t,
type_info: *const dds_typeinfo_t,
timeout: dds_duration_t,
descriptor: *mut *mut dds_topic_descriptor_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @ingroup topic\n @component topic\n @brief Delete memory allocated to the provided topic descriptor\n\n @param[in] descriptor - Pointer to a dds_topic_descriptor_t\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The topic descriptor has been succesfully deleted.\n @retval DDS_RETCODE_BAD_PARAMETER\n No descriptor provided\n @retval DDS_RETCODE_UNSUPPORTED\n Cyclone DDS built without type discovery\n (cf. DDS_HAS_TYPE_DISCOVERY)"]
pub fn dds_delete_topic_descriptor(descriptor: *mut dds_topic_descriptor_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Returns the name of a given topic.\n @ingroup topic\n @component topic\n\n @param[in] topic The topic.\n @param[out] name Buffer to write the topic name to.\n @param[in] size Number of bytes available in the buffer.\n\n @returns A dds_return_t indicating success or failure.\n\n @return Actual length of topic name (name is truncated if return value >= size) or error"]
pub fn dds_get_name(
topic: dds_entity_t,
name: *mut ::std::ffi::c_char,
size: usize,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Returns the type name of a given topic.\n @ingroup topic\n @component topic\n\n @param[in] topic The topic.\n @param[out] name Buffer to write the topic type name to.\n @param[in] size Number of bytes available in the buffer.\n\n @returns A dds_return_t indicating success or failure.\n\n @return Actual length of type name (name is truncated if return value >= size) or error"]
pub fn dds_get_type_name(
topic: dds_entity_t,
name: *mut ::std::ffi::c_char,
size: usize,
) -> dds_return_t;
}
#[doc = " @anchor dds_topic_filter_sample_fn\n @brief Topic filter function that only needs to look at the sample.\n @ingroup topic_filter\n @warning Unstable API\n @unstable"]
pub type dds_topic_filter_sample_fn =
::std::option::Option<unsafe extern "C" fn(sample: *const ::std::ffi::c_void) -> bool>;
#[doc = " @anchor dds_topic_filter_sample_arg_fn\n @brief Topic filter function that only needs to look at the sample and a custom argument.\n @ingroup topic_filter\n @warning Unstable API"]
pub type dds_topic_filter_sample_arg_fn = ::std::option::Option<
unsafe extern "C" fn(sample: *const ::std::ffi::c_void, arg: *mut ::std::ffi::c_void) -> bool,
>;
#[doc = " @anchor dds_topic_filter_sampleinfo_arg_fn\n @brief Topic filter function that only needs to look at the sampleinfo and a custom argument.\n @ingroup topic_filter\n @warning Unstable API"]
pub type dds_topic_filter_sampleinfo_arg_fn = ::std::option::Option<
unsafe extern "C" fn(
sampleinfo: *const dds_sample_info_t,
arg: *mut ::std::ffi::c_void,
) -> bool,
>;
#[doc = " @anchor dds_topic_filter_sample_sampleinfo_arg_fn\n @brief Topic filter function that needs to look at the sample, the sampleinfo and a custom argument.\n @ingroup topic_filter\n @warning Unstable API"]
pub type dds_topic_filter_sample_sampleinfo_arg_fn = ::std::option::Option<
unsafe extern "C" fn(
sample: *const ::std::ffi::c_void,
sampleinfo: *const dds_sample_info_t,
arg: *mut ::std::ffi::c_void,
) -> bool,
>;
#[doc = " @anchor dds_topic_filter_fn\n @brief See \\ref dds_topic_filter_sample_fn\n @ingroup topic_filter\n @warning Unstable API"]
pub type dds_topic_filter_fn = dds_topic_filter_sample_fn;
#[doc = " @anchor dds_topic_filter_arg_fn\n @brief See \\ref dds_topic_filter_sample_arg_fn\n @ingroup topic_filter\n @warning Unstable API"]
pub type dds_topic_filter_arg_fn = dds_topic_filter_sample_arg_fn;
#[doc = "< Can be used to reset topic filter"]
pub const dds_topic_filter_mode_DDS_TOPIC_FILTER_NONE: dds_topic_filter_mode = 0;
#[doc = "< Use with \\ref dds_topic_filter_sample_fn"]
pub const dds_topic_filter_mode_DDS_TOPIC_FILTER_SAMPLE: dds_topic_filter_mode = 1;
#[doc = "< Use with \\ref dds_topic_filter_sample_arg_fn"]
pub const dds_topic_filter_mode_DDS_TOPIC_FILTER_SAMPLE_ARG: dds_topic_filter_mode = 2;
#[doc = "< Use with \\ref dds_topic_filter_sampleinfo_arg_fn"]
pub const dds_topic_filter_mode_DDS_TOPIC_FILTER_SAMPLEINFO_ARG: dds_topic_filter_mode = 3;
#[doc = "< Use with \\ref dds_topic_filter_sample_sampleinfo_arg_fn"]
pub const dds_topic_filter_mode_DDS_TOPIC_FILTER_SAMPLE_SAMPLEINFO_ARG: dds_topic_filter_mode = 4;
#[doc = " @brief Topic filter mode;\n @ingroup topic_filter\n @warning Unstable API"]
pub type dds_topic_filter_mode = ::std::ffi::c_uint;
#[doc = " @brief Union of all filter function types;\n @ingroup topic_filter\n @warning Unstable API"]
#[repr(C)]
#[derive(Copy, Clone)]
pub union dds_topic_filter_function_union {
#[doc = "< Use with mode dds_topic_filter_mode::DDS_TOPIC_FILTER_SAMPLE"]
pub sample: dds_topic_filter_sample_fn,
#[doc = "< Use with mode dds_topic_filter_mode::DDS_TOPIC_FILTER_SAMPLE_ARG"]
pub sample_arg: dds_topic_filter_sample_arg_fn,
#[doc = "< Use with mode dds_topic_filter_mode::DDS_TOPIC_FILTER_SAMPLEINFO_ARG"]
pub sampleinfo_arg: dds_topic_filter_sampleinfo_arg_fn,
#[doc = "< Use with mode dds_topic_filter_mode::DDS_TOPIC_FILTER_SAMPLE_SAMPLEINFO_ARG"]
pub sample_sampleinfo_arg: dds_topic_filter_sample_sampleinfo_arg_fn,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_topic_filter_function_union"]
[::std::mem::size_of::<dds_topic_filter_function_union>() - 8usize];
["Alignment of dds_topic_filter_function_union"]
[::std::mem::align_of::<dds_topic_filter_function_union>() - 8usize];
["Offset of field: dds_topic_filter_function_union::sample"]
[::std::mem::offset_of!(dds_topic_filter_function_union, sample) - 0usize];
["Offset of field: dds_topic_filter_function_union::sample_arg"]
[::std::mem::offset_of!(dds_topic_filter_function_union, sample_arg) - 0usize];
["Offset of field: dds_topic_filter_function_union::sampleinfo_arg"]
[::std::mem::offset_of!(dds_topic_filter_function_union, sampleinfo_arg) - 0usize];
["Offset of field: dds_topic_filter_function_union::sample_sampleinfo_arg"]
[::std::mem::offset_of!(dds_topic_filter_function_union, sample_sampleinfo_arg) - 0usize];
};
impl Default for dds_topic_filter_function_union {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief Full topic filter container;\n @ingroup topic_filter\n @warning Unstable API"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct dds_topic_filter {
#[doc = "< Provide a mode"]
pub mode: dds_topic_filter_mode,
#[doc = "< Provide a filter function"]
pub f: dds_topic_filter_function_union,
#[doc = "< Provide an argument, can be NULL"]
pub arg: *mut ::std::ffi::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_topic_filter"][::std::mem::size_of::<dds_topic_filter>() - 24usize];
["Alignment of dds_topic_filter"][::std::mem::align_of::<dds_topic_filter>() - 8usize];
["Offset of field: dds_topic_filter::mode"]
[::std::mem::offset_of!(dds_topic_filter, mode) - 0usize];
["Offset of field: dds_topic_filter::f"][::std::mem::offset_of!(dds_topic_filter, f) - 8usize];
["Offset of field: dds_topic_filter::arg"]
[::std::mem::offset_of!(dds_topic_filter, arg) - 16usize];
};
impl Default for dds_topic_filter {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
unsafe extern "C" {
#[doc = " @anchor dds_set_topic_filter_and_arg\n @brief Sets a filter and filter argument on a topic.\n @ingroup topic_filter\n @component topic\n @warning Unstable API\n To be replaced by proper filtering on readers.\n\n Not thread-safe with respect to data being read/written using readers/writers\n using this topic. Be sure to create a topic entity specific to the reader you\n want to filter, then set the filter function, and only then create the reader.\n And don't change it unless you know there are no concurrent writes.\n\n @param[in] topic The topic on which the content filter is set.\n @param[in] filter The filter function used to filter topic samples.\n @param[in] arg Argument for the filter function.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK Filter set successfully\n @retval DDS_RETCODE_BAD_PARAMETER The topic handle is invalid"]
pub fn dds_set_topic_filter_and_arg(
topic: dds_entity_t,
filter: dds_topic_filter_arg_fn,
arg: *mut ::std::ffi::c_void,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @anchor dds_set_topic_filter_extended\n @brief Sets a filter and filter argument on a topic.\n @ingroup topic_filter\n @component topic\n @warning Unstable API\n To be replaced by proper filtering on readers.\n\n Not thread-safe with respect to data being read/written using readers/writers\n using this topic. Be sure to create a topic entity specific to the reader you\n want to filter, then set the filter function, and only then create the reader.\n And don't change it unless you know there are no concurrent writes.\n\n @param[in] topic The topic on which the content filter is set.\n @param[in] filter The filter specification.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK Filter set successfully\n @retval DDS_RETCODE_BAD_PARAMETER The topic handle is invalid"]
pub fn dds_set_topic_filter_extended(
topic: dds_entity_t,
filter: *const dds_topic_filter,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Gets the filter for a topic.\n @ingroup topic_filter\n @component topic\n @warning Unstable API\n\n To be replaced by proper filtering on readers\n\n @param[in] topic The topic from which to get the filter.\n @param[out] fn The topic filter function (fn may be NULL).\n @param[out] arg Filter function argument (arg may be NULL).\n\n @retval DDS_RETCODE_OK Filter set successfully\n @retval DDS_RETCODE_PRECONDITION_NOT_MET Filter is not of \"none\" or \"sample_arg\"\n @retval DDS_RETCODE_BAD_PARAMETER The topic handle is invalid"]
pub fn dds_get_topic_filter_and_arg(
topic: dds_entity_t,
fn_: *mut dds_topic_filter_arg_fn,
arg: *mut *mut ::std::ffi::c_void,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Gets the filter for a topic.\n @ingroup topic_filter\n @component topic\n @warning Unstable API\n\n To be replaced by proper filtering on readers\n\n @param[in] topic The topic from which to get the filter.\n @param[out] filter The topic filter specification.\n\n @retval DDS_RETCODE_OK Filter set successfully\n @retval DDS_RETCODE_BAD_PARAMETER The topic handle is invalid"]
pub fn dds_get_topic_filter_extended(
topic: dds_entity_t,
filter: *mut dds_topic_filter,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Creates a new instance of a DDS subscriber\n @ingroup subscriber\n @component subscriber\n\n @param[in] participant The participant on which the subscriber is being created.\n @param[in] qos The QoS to set on the new subscriber (can be NULL).\n @param[in] listener Any listener functions associated with the new subscriber (can be NULL).\n\n @returns A valid subscriber handle or an error code.\n\n @retval >0\n A valid subscriber handle.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the parameters is invalid."]
pub fn dds_create_subscriber(
participant: dds_entity_t,
qos: *const dds_qos_t,
listener: *const dds_listener_t,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Creates a new instance of a DDS publisher\n @ingroup publisher\n @component publisher\n\n @param[in] participant The participant to create a publisher for.\n @param[in] qos The QoS to set on the new publisher (can be NULL).\n @param[in] listener Any listener functions associated with the new publisher (can be NULL).\n\n @returns A valid publisher handle or an error code.\n\n @retval >0\n A valid publisher handle.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred."]
pub fn dds_create_publisher(
participant: dds_entity_t,
qos: *const dds_qos_t,
listener: *const dds_listener_t,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Suspends the publications of the Publisher\n @ingroup publisher\n @component publisher\n\n This operation is a hint to the Service so it can optimize its performance by e.g., collecting\n modifications to DDS writers and then batching them. The Service is not required to use the hint.\n\n Every invocation of this operation must be matched by a corresponding call to @see dds_resume\n indicating that the set of modifications has completed.\n\n @param[in] publisher The publisher for which all publications will be suspended.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n Publications suspended successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n The pub parameter is not a valid publisher.\n @retval DDS_RETCODE_UNSUPPORTED\n Operation is not supported."]
pub fn dds_suspend(publisher: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Resumes the publications of the Publisher\n @ingroup publisher\n @component publisher\n\n This operation is a hint to the Service to indicate that the application has\n completed changes initiated by a previous dds_suspend(). The Service is not\n required to use the hint.\n\n The call to resume_publications must match a previous call to @see suspend_publications.\n\n @param[in] publisher The publisher for which all publications will be resumed.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n Publications resumed successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n The pub parameter is not a valid publisher.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n No previous matching dds_suspend().\n @retval DDS_RETCODE_UNSUPPORTED\n Operation is not supported."]
pub fn dds_resume(publisher: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Waits at most for the duration timeout for acks for data in the publisher or writer.\n @ingroup publication\n @component publisher\n\n This operation blocks the calling thread until either all data written by the publisher\n or writer is acknowledged by all matched reliable reader entities, or else the duration\n specified by the timeout parameter elapses, whichever happens first.\n\n @param[in] publisher_or_writer Publisher or writer whose acknowledgments must be waited for\n @param[in] timeout How long to wait for acknowledgments before time out\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n All acknowledgments successfully received with the timeout.\n @retval DDS_RETCODE_BAD_PARAMETER\n The publisher_or_writer is not a valid publisher or writer.\n @retval DDS_RETCODE_TIMEOUT\n Timeout expired before all acknowledgments from reliable reader entities were received.\n @retval DDS_RETCODE_UNSUPPORTED\n Operation is not supported."]
pub fn dds_wait_for_acks(
publisher_or_writer: dds_entity_t,
timeout: dds_duration_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Creates a new instance of a DDS reader.\n @ingroup reader\n @component reader\n\n When a participant is used to create a reader, an implicit subscriber is created.\n This implicit subscriber will be deleted automatically when the created reader\n is deleted.\n\n @param[in] participant_or_subscriber The participant or subscriber on which the reader is being created.\n @param[in] topic The topic to read.\n @param[in] qos The QoS to set on the new reader (can be NULL).\n @param[in] listener Any listener functions associated with the new reader (can be NULL).\n\n @returns A valid reader handle or an error code.\n\n @retval >0\n A valid reader handle.\n @retval DDS_RETCODE_ERROR\n An internal error occurred.\n\n DOC_TODO: Complete list of error codes"]
pub fn dds_create_reader(
participant_or_subscriber: dds_entity_t,
topic: dds_entity_t,
qos: *const dds_qos_t,
listener: *const dds_listener_t,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Creates a new instance of a DDS reader with a custom history cache.\n @ingroup reader\n @component reader\n\n When a participant is used to create a reader, an implicit subscriber is created.\n This implicit subscriber will be deleted automatically when the created reader\n is deleted.\n\n @param[in] participant_or_subscriber The participant or subscriber on which the reader is being created.\n @param[in] topic The topic to read.\n @param[in] qos The QoS to set on the new reader (can be NULL).\n @param[in] listener Any listener functions associated with the new reader (can be NULL).\n @param[in] rhc Reader history cache to use, reader becomes the owner\n\n @returns A valid reader handle or an error code.\n\n @retval >0\n A valid reader handle.\n @retval DDS_RETCODE_ERROR\n An internal error occurred.\n\n DOC_TODO: Complete list of error codes"]
pub fn dds_create_reader_rhc(
participant_or_subscriber: dds_entity_t,
topic: dds_entity_t,
qos: *const dds_qos_t,
listener: *const dds_listener_t,
rhc: *mut dds_rhc,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Wait until reader receives all historic data\n @ingroup reader\n @component reader\n\n The operation blocks the calling thread until either all \"historical\" data is\n received, or else the duration specified by the max_wait parameter elapses, whichever happens\n first. A return value of 0 indicates that all the \"historical\" data was received; a return\n value of TIMEOUT indicates that max_wait elapsed before all the data was received.\n\n @param[in] reader The reader on which to wait for historical data.\n @param[in] max_wait How long to wait for historical data before time out.\n\n @returns a status, 0 on success, TIMEOUT on timeout or a negative value to indicate error.\n\n DOC_TODO: Complete list of error codes"]
pub fn dds_reader_wait_for_historical_data(
reader: dds_entity_t,
max_wait: dds_duration_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Creates a new instance of a DDS writer.\n @ingroup writer\n @component writer\n\n When a participant is used to create a writer, an implicit publisher is created.\n This implicit publisher will be deleted automatically when the created writer\n is deleted.\n\n @param[in] participant_or_publisher The participant or publisher on which the writer is being created.\n @param[in] topic The topic to write.\n @param[in] qos The QoS to set on the new writer (can be NULL).\n @param[in] listener Any listener functions associated with the new writer (can be NULL).\n\n @returns A valid writer handle or an error code.\n\n @returns >0\n A valid writer handle.\n @returns DDS_RETCODE_ERROR\n An internal error occurred.\n\n DOC_TODO: Complete list of error codes"]
pub fn dds_create_writer(
participant_or_publisher: dds_entity_t,
topic: dds_entity_t,
qos: *const dds_qos_t,
listener: *const dds_listener_t,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Registers an instance\n @ingroup writing\n @component data_instance\n\n This operation registers an instance with a key value to the data writer and\n returns an instance handle that could be used for successive write & dispose\n operations. When the handle is not allocated, the function will return an\n error and the handle will be un-touched.\n\n @param[in] writer The writer to which instance has be associated.\n @param[out] handle The instance handle.\n @param[in] data The instance with the key value.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object."]
pub fn dds_register_instance(
writer: dds_entity_t,
handle: *mut dds_instance_handle_t,
data: *const ::std::ffi::c_void,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Unregisters an instance by instance\n @ingroup writing\n @component data_instance\n\n This operation reverses the action of register instance, removes all information regarding\n the instance and unregisters an instance with a key value from the data writer.\n\n @param[in] writer The writer to which instance is associated.\n @param[in] data The instance with the key value.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object."]
pub fn dds_unregister_instance(
writer: dds_entity_t,
data: *const ::std::ffi::c_void,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Unregisters an instance by instance handle\n @ingroup writing\n @component data_instance\n\n This operation unregisters the instance which is identified by the key fields of the given\n typed instance handle.\n\n @param[in] writer The writer to which instance is associated.\n @param[in] handle The instance handle.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object."]
pub fn dds_unregister_instance_ih(
writer: dds_entity_t,
handle: dds_instance_handle_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Unregisters an instance by instance with timestamp\n @ingroup writing\n @component data_instance\n\n This operation reverses the action of register instance, removes all information regarding\n the instance and unregisters an instance with a key value from the data writer. It also\n provides a value for the timestamp explicitly.\n\n @param[in] writer The writer to which instance is associated.\n @param[in] data The instance with the key value.\n @param[in] timestamp The timestamp for the unregistration (>= 0).\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object."]
pub fn dds_unregister_instance_ts(
writer: dds_entity_t,
data: *const ::std::ffi::c_void,
timestamp: dds_time_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Unregisters an instance by instance handle with timestamp\n @ingroup writing\n @component data_instance\n\n This operation unregisters an instance with a key value from the handle. Instance can be identified\n from instance handle. If an unregistered key ID is passed as an instance data, an error is logged and\n not flagged as return value.\n\n @param[in] writer The writer to which instance is associated.\n @param[in] handle The instance handle.\n @param[in] timestamp The timestamp for the unregistration (>= 0).\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object"]
pub fn dds_unregister_instance_ih_ts(
writer: dds_entity_t,
handle: dds_instance_handle_t,
timestamp: dds_time_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief This operation modifies and disposes a data instance.\n @ingroup writing\n @component write_data\n\n This operation requests the Data Distribution Service to modify the instance and\n mark it for deletion. Copies of the instance and its corresponding samples, which are\n stored in every connected reader and, dependent on the QoS policy settings (also in\n the Transient and Persistent stores) will be modified and marked for deletion by\n setting their dds_instance_state_t to DDS_NOT_ALIVE_DISPOSED_INSTANCE_STATE.\n\n @par Blocking\n If the history QoS policy is set to DDS_HISTORY_KEEP_ALL, the\n dds_writedispose operation on the writer may block if the modification\n would cause data to be lost because one of the limits, specified in the\n resource_limits QoS policy, to be exceeded. In case the synchronous\n attribute value of the reliability Qos policy is set to true for\n communicating writers and readers then the writer will wait until\n all synchronous readers have acknowledged the data. Under these\n circumstances, the max_blocking_time attribute of the reliability\n QoS policy configures the maximum time the dds_writedispose operation\n may block.\n If max_blocking_time elapses before the writer is able to store the\n modification without exceeding the limits and all expected acknowledgements\n are received, the dds_writedispose operation will fail and returns\n DDS_RETCODE_TIMEOUT.\n\n @param[in] writer The writer to dispose the data instance from.\n @param[in] data The data to be written and disposed.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The sample is written and the instance is marked for deletion.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n At least one of the arguments is invalid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_TIMEOUT\n Either the current action overflowed the available resources as\n specified by the combination of the reliability QoS policy,\n history QoS policy and resource_limits QoS policy, or the\n current action was waiting for data delivery acknowledgement\n by synchronous readers. This caused blocking of this operation,\n which could not be resolved before max_blocking_time of the\n reliability QoS policy elapsed."]
pub fn dds_writedispose(writer: dds_entity_t, data: *const ::std::ffi::c_void) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief This operation modifies and disposes a data instance with a specific\n timestamp.\n @ingroup writing\n @component write_data\n\n This operation performs the same functions as dds_writedispose() except that\n the application provides the value for the source_timestamp that is made\n available to connected reader objects. This timestamp is important for the\n interpretation of the destination_order QoS policy.\n\n @param[in] writer The writer to dispose the data instance from.\n @param[in] data The data to be written and disposed.\n @param[in] timestamp The timestamp used as source timestamp (>= 0).\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The sample is written and the instance is marked for deletion.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n At least one of the arguments is invalid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_TIMEOUT\n Either the current action overflowed the available resources as\n specified by the combination of the reliability QoS policy,\n history QoS policy and resource_limits QoS policy, or the\n current action was waiting for data delivery acknowledgement\n by synchronous readers. This caused blocking of this operation,\n which could not be resolved before max_blocking_time of the\n reliability QoS policy elapsed."]
pub fn dds_writedispose_ts(
writer: dds_entity_t,
data: *const ::std::ffi::c_void,
timestamp: dds_time_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief This operation disposes an instance, identified by the data sample.\n @ingroup writing\n @component write_data\n\n This operation requests the Data Distribution Service to modify the instance and\n mark it for deletion. Copies of the instance and its corresponding samples, which are\n stored in every connected reader and, dependent on the QoS policy settings (also in\n the Transient and Persistent stores) will be modified and marked for deletion by\n setting their dds_instance_state_t to DDS_NOT_ALIVE_DISPOSED_INSTANCE_STATE.\n\n @par Blocking\n If the history QoS policy is set to DDS_HISTORY_KEEP_ALL, the\n dds_writedispose operation on the writer may block if the modification\n would cause data to be lost because one of the limits, specified in the\n resource_limits QoS policy, to be exceeded. In case the synchronous\n attribute value of the reliability Qos policy is set to true for\n communicating writers and readers then the writer will wait until\n all synchronous readers have acknowledged the data. Under these\n circumstances, the max_blocking_time attribute of the reliability\n QoS policy configures the maximum time the dds_writedispose operation\n may block.\n If max_blocking_time elapses before the writer is able to store the\n modification without exceeding the limits and all expected acknowledgements\n are received, the dds_writedispose operation will fail and returns\n DDS_RETCODE_TIMEOUT.\n\n @param[in] writer The writer to dispose the data instance from.\n @param[in] data The data sample that identifies the instance\n to be disposed.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The sample is written and the instance is marked for deletion.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n At least one of the arguments is invalid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_TIMEOUT\n Either the current action overflowed the available resources as\n specified by the combination of the reliability QoS policy,\n history QoS policy and resource_limits QoS policy, or the\n current action was waiting for data delivery acknowledgement\n by synchronous readers. This caused blocking of this operation,\n which could not be resolved before max_blocking_time of the\n reliability QoS policy elapsed."]
pub fn dds_dispose(writer: dds_entity_t, data: *const ::std::ffi::c_void) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief This operation disposes an instance with a specific timestamp, identified by the data sample.\n @ingroup writing\n @component write_data\n\n This operation performs the same functions as dds_dispose() except that\n the application provides the value for the source_timestamp that is made\n available to connected reader objects. This timestamp is important for the\n interpretation of the destination_order QoS policy.\n\n @param[in] writer The writer to dispose the data instance from.\n @param[in] data The data sample that identifies the instance\n to be disposed.\n @param[in] timestamp The timestamp used as source timestamp (>= 0).\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The sample is written and the instance is marked for deletion\n @retval DDS_RETCODE_ERROR\n An internal error has occurred\n @retval DDS_RETCODE_BAD_PARAMETER\n At least one of the arguments is invalid\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted\n @retval DDS_RETCODE_TIMEOUT\n Either the current action overflowed the available resources as\n specified by the combination of the reliability QoS policy,\n history QoS policy and resource_limits QoS policy, or the\n current action was waiting for data delivery acknowledgment\n by synchronous readers. This caused blocking of this operation,\n which could not be resolved before max_blocking_time of the\n reliability QoS policy elapsed."]
pub fn dds_dispose_ts(
writer: dds_entity_t,
data: *const ::std::ffi::c_void,
timestamp: dds_time_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief This operation disposes an instance, identified by the instance handle.\n @ingroup writing\n @component write_data\n\n This operation requests the Data Distribution Service to modify the instance and\n mark it for deletion. Copies of the instance and its corresponding samples, which are\n stored in every connected reader and, dependent on the QoS policy settings (also in\n the Transient and Persistent stores) will be modified and marked for deletion by\n setting their dds_instance_state_t to DDS_NOT_ALIVE_DISPOSED_INSTANCE_STATE.\n\n @par Instance Handle\n The given instance handle must correspond to the value that was returned by either\n the dds_register_instance operation, dds_register_instance_ts or dds_lookup_instance.\n If there is no correspondence, then the result of the operation is unspecified.\n\n @param[in] writer The writer to dispose the data instance from.\n @param[in] handle The handle to identify an instance.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The sample is written and the instance is marked for deletion.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n At least one of the arguments is invalid\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this writer"]
pub fn dds_dispose_ih(writer: dds_entity_t, handle: dds_instance_handle_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief This operation disposes an instance with a specific timestamp, identified by the instance handle.\n @ingroup writing\n @component write_data\n\n This operation performs the same functions as dds_dispose_ih() except that\n the application provides the value for the source_timestamp that is made\n available to connected reader objects. This timestamp is important for the\n interpretation of the destination_order QoS policy.\n\n @param[in] writer The writer to dispose the data instance from.\n @param[in] handle The handle to identify an instance.\n @param[in] timestamp The timestamp used as source timestamp (>= 0).\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The sample is written and the instance is marked for deletion.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n At least one of the arguments is invalid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this writer."]
pub fn dds_dispose_ih_ts(
writer: dds_entity_t,
handle: dds_instance_handle_t,
timestamp: dds_time_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Write the value of a data instance\n @ingroup writing\n @component write_data\n\n With this API, the value of the source timestamp is automatically made\n available to the data reader by the service.\n\n @param[in] writer The writer entity.\n @param[in] data Value to be written.\n\n @returns dds_return_t indicating success or failure."]
pub fn dds_write(writer: dds_entity_t, data: *const ::std::ffi::c_void) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Flush a writers batched writes\n @ingroup writing\n @component write_data\n\n When using write batching you can manually batch small writes into larger\n datapackets for network efficiency. The normal `dds_write()` no longer\n guarantee that data is sent on the network automatically.\n\n @param[in] entity The writer entity.\n\n @returns A dds_return_t indicating success or failure.\n @retval DDS_RETCODE_OK\n The writer successfully forwarded to the network.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_write_flush(entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Write a serialized value of a data instance\n @ingroup writing\n @component write_data\n\n This call causes the writer to write the serialized value that is provided\n in the serdata argument. Timestamp and statusinfo fields are set to the\n current time and 0 (indicating a regular write), respectively.\n\n @param[in] writer The writer entity.\n @param[in] serdata Serialized value to be written.\n\n @returns A dds_return_t indicating success or failure. On error, some writers failed to flush buffered messages.\n\n @retval DDS_RETCODE_OK\n The writer successfully wrote the serialized value.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_TIMEOUT\n The writer failed to write the serialized value reliably within the specified max_blocking_time."]
pub fn dds_writecdr(writer: dds_entity_t, serdata: *mut ddsi_serdata) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Write a serialized value of a data instance\n @ingroup writing\n @component write_data\n\n This call causes the writer to write the serialized value that is provided\n in the serdata argument. Timestamp and statusinfo are used as is.\n\n @param[in] writer The writer entity.\n @param[in] serdata Serialized value to be written.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The writer successfully wrote the serialized value.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_TIMEOUT\n The writer failed to write the serialized value reliably within the specified max_blocking_time."]
pub fn dds_forwardcdr(writer: dds_entity_t, serdata: *mut ddsi_serdata) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Write the value of a data instance along with the source timestamp passed.\n @ingroup writing\n @component write_data\n\n @param[in] writer The writer entity.\n @param[in] data Value to be written.\n @param[in] timestamp Source timestamp (>= 0).\n\n @returns A dds_return_t indicating success or failure."]
pub fn dds_write_ts(
writer: dds_entity_t,
data: *const ::std::ffi::c_void,
timestamp: dds_time_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Creates a readcondition associated to the given reader.\n @ingroup readcondition\n @component data_query\n\n The readcondition allows specifying which samples are of interest in\n a data reader's history, by means of a mask. The mask is or'd with\n the flags that are dds_sample_state_t, dds_view_state_t and\n dds_instance_state_t.\n\n Based on the mask value set, the readcondition gets triggered when\n data is available on the reader.\n\n Waitsets allow waiting for an event on some of any set of entities.\n This means that the readcondition can be used to wake up a waitset when\n data is in the reader history with states that matches the given mask.\n\n @note The parent reader and every of its associated conditions (whether\n they are readconditions or queryconditions) share the same resources.\n This means that one of these entities reads or takes data, the states\n of the data will change for other entities automatically. For instance,\n if one reads a sample, then the sample state will become 'read' for all\n associated reader/conditions. Or if one takes a sample, then it's not\n available to any other associated reader/condition.\n\n @param[in] reader Reader to associate the condition to.\n @param[in] mask Interest (dds_sample_state_t|dds_view_state_t|dds_instance_state_t).\n\n @returns A valid condition handle or an error code.\n\n @retval >0\n A valid condition handle\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_create_readcondition(reader: dds_entity_t, mask: u32) -> dds_entity_t;
}
#[doc = " @brief Function signature for a querycondition filter\n @ingroup querycondition"]
pub type dds_querycondition_filter_fn =
::std::option::Option<unsafe extern "C" fn(sample: *const ::std::ffi::c_void) -> bool>;
unsafe extern "C" {
#[doc = " @brief Creates a queryondition associated to the given reader.\n @ingroup querycondition\n @component data_query\n\n The queryondition allows specifying which samples are of interest in\n a data reader's history, by means of a mask and a filter. The mask is\n or'd with the flags that are dds_sample_state_t, dds_view_state_t and\n dds_instance_state_t.\n\n Based on the mask value set and data that matches the filter, the\n querycondition gets triggered when data is available on the reader.\n\n Waitsets allow waiting for an event on some of any set of entities.\n This means that the querycondition can be used to wake up a waitset when\n data is in the reader history with states that matches the given mask\n and filter.\n\n @note The parent reader and every of its associated conditions (whether\n they are readconditions or queryconditions) share the same resources.\n This means that one of these entities reads or takes data, the states\n of the data will change for other entities automatically. For instance,\n if one reads a sample, then the sample state will become 'read' for all\n associated reader/conditions. Or if one takes a sample, then it's not\n available to any other associated reader/condition.\n\n @param[in] reader Reader to associate the condition to.\n @param[in] mask Interest (dds_sample_state_t|dds_view_state_t|dds_instance_state_t).\n @param[in] filter Callback that the application can use to filter specific samples.\n\n @returns A valid condition handle or an error code\n\n @retval >=0\n A valid condition handle.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_create_querycondition(
reader: dds_entity_t,
mask: u32,
filter: dds_querycondition_filter_fn,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Creates a guardcondition.\n @ingroup guardcondition\n @component guard_condition\n\n Waitsets allow waiting for an event on some of any set of entities.\n This means that the guardcondition can be used to wake up a waitset when\n data is in the reader history with states that matches the given mask.\n\n @param[in] owner Participant on which to create the guardcondition.\n\n @returns A valid condition handle or an error code.\n\n @retval >0\n A valid condition handle\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_create_guardcondition(owner: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Sets the trigger status of a guardcondition.\n @ingroup guardcondition\n @component guard_condition\n\n @param[in] guardcond Guard condition to set the trigger status of.\n @param[in] triggered The triggered status to set.\n\n @retval DDS_RETCODE_OK\n Operation successful\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_set_guardcondition(guardcond: dds_entity_t, triggered: bool) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Reads the trigger status of a guardcondition.\n @ingroup guardcondition\n @component guard_condition\n\n @param[in] guardcond Guard condition to read the trigger status of.\n @param[out] triggered The triggered status read from the guard condition.\n\n @retval DDS_RETCODE_OK\n Operation successful\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_read_guardcondition(guardcond: dds_entity_t, triggered: *mut bool) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Reads and resets the trigger status of a guardcondition.\n @ingroup guardcondition\n @component guard_condition\n\n @param[in] guardcond Guard condition to read and reset the trigger status of.\n @param[out] triggered The triggered status read from the guard condition.\n\n @retval DDS_RETCODE_OK\n Operation successful\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_take_guardcondition(guardcond: dds_entity_t, triggered: *mut bool) -> dds_return_t;
}
#[doc = " @brief Waitset attachment argument.\n @ingroup waitset\n\n Every entity that is attached to the waitset can be accompanied by such\n an attachment argument. When the waitset wait is unblocked because of an\n entity that triggered, then the returning array will be populated with\n these attachment arguments that are related to the triggered entity."]
pub type dds_attach_t = isize;
unsafe extern "C" {
#[doc = " @brief Create a waitset and allocate the resources required\n @ingroup waitset\n @component waitset\n\n A WaitSet object allows an application to wait until one or more of the\n conditions of the attached entities evaluates to TRUE or until the timeout\n expires.\n\n @param[in] owner Domain participant which the WaitSet contains.\n\n @returns A valid waitset handle or an error code.\n\n @retval >=0\n A valid waitset handle.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_create_waitset(owner: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Acquire previously attached entities.\n @ingroup waitset\n @component waitset\n\n This functions takes a pre-allocated list to put the entities in and\n will return the number of found entities. It is possible that the given\n size of the list is not the same as the number of found entities. If\n less entities are found, then the last few entries in the list are\n untouched. When more entities are found, then only 'size' number of\n entries are inserted into the list, but still the complete count of the\n found entities is returned. Which entities are returned in the latter\n case is undefined.\n\n @param[in] waitset Waitset from which to get its attached entities.\n @param[out] entities Pre-allocated array to contain the found entities.\n @param[in] size Size of the pre-allocated entities' list.\n\n @returns A dds_return_t with the number of children or an error code.\n\n @retval >=0\n Number of children found (can be larger than 'size').\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entities parameter is NULL, while a size is provided.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The waitset has already been deleted."]
pub fn dds_waitset_get_entities(
waitset: dds_entity_t,
entities: *mut dds_entity_t,
size: usize,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief This operation attaches an Entity to the WaitSet.\n @ingroup waitset\n @component waitset\n\n This operation attaches an Entity to the WaitSet. The dds_waitset_wait()\n will block when none of the attached entities are triggered. 'Triggered'\n (dds_triggered()) doesn't mean the same for every entity:\n - Reader/Writer/Publisher/Subscriber/Topic/Participant\n - These are triggered when their status changed.\n - WaitSet\n - Triggered when trigger value was set to true by the application.\n It stays triggered until application sets the trigger value to\n false (dds_waitset_set_trigger()). This can be used to wake up an\n waitset for different reasons (f.i. termination) than the 'normal'\n status change (like new data).\n - ReadCondition/QueryCondition\n - Triggered when data is available on the related Reader that matches\n the Condition.\n\n Multiple entities can be attached to a single waitset. A particular entity\n can be attached to multiple waitsets. However, a particular entity can not\n be attached to a particular waitset multiple times.\n\n @param[in] waitset The waitset to attach the given entity to.\n @param[in] entity The entity to attach.\n @param[in] x Blob that will be supplied when the waitset wait is\n triggered by the given entity.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n Entity attached.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n The given waitset or entity are not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The waitset has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The entity was already attached."]
pub fn dds_waitset_attach(
waitset: dds_entity_t,
entity: dds_entity_t,
x: dds_attach_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief This operation detaches an Entity from the WaitSet.\n @ingroup waitset\n @component waitset\n\n @param[in] waitset The waitset to detach the given entity from.\n @param[in] entity The entity to detach.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n Entity detached.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n The given waitset or entity are not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The waitset has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The entity is not attached."]
pub fn dds_waitset_detach(waitset: dds_entity_t, entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Sets the trigger_value associated with a waitset.\n @ingroup waitset\n @component waitset\n\n When the waitset is attached to itself and the trigger value is\n set to 'true', then the waitset will wake up just like with an\n other status change of the attached entities.\n\n This can be used to forcefully wake up a waitset, for instance\n when the application wants to shut down. So, when the trigger\n value is true, the waitset will wake up or not wait at all.\n\n The trigger value will remain true until the application sets it\n false again deliberately.\n\n @param[in] waitset The waitset to set the trigger value on.\n @param[in] trigger The trigger value to set.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n Trigger value set.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n The given waitset is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The waitset has already been deleted."]
pub fn dds_waitset_set_trigger(waitset: dds_entity_t, trigger: bool) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief This operation allows an application thread to wait for the a status\n change or other trigger on (one of) the entities that are attached to\n the WaitSet.\n @ingroup waitset\n @component waitset\n\n The dds_waitset_wait() operation blocks until the some of the attached\n entities have triggered or \"reltimeout\" has elapsed.\n 'Triggered' (dds_triggered()) doesn't mean the same for every entity:\n - Reader/Writer/Publisher/Subscriber/Topic/Participant\n - These are triggered when their status changed.\n - WaitSet\n - Triggered when trigger value was set to true by the application.\n It stays triggered until application sets the trigger value to\n false (dds_waitset_set_trigger()). This can be used to wake up an\n waitset for different reasons (f.i. termination) than the 'normal'\n status change (like new data).\n - ReadCondition/QueryCondition\n - Triggered when data is available on the related Reader that matches\n the Condition.\n\n This functions takes a pre-allocated list to put the \"xs\" blobs in (that\n were provided during the attach of the related entities) and will return\n the number of triggered entities. It is possible that the given size\n of the list is not the same as the number of triggered entities. If less\n entities were triggered, then the last few entries in the list are\n untouched. When more entities are triggered, then only 'size' number of\n entries are inserted into the list, but still the complete count of the\n triggered entities is returned. Which \"xs\" blobs are returned in the\n latter case is undefined.\n\n In case of a time out, the return value is 0.\n\n Deleting the waitset while the application is blocked results in an\n error code (i.e. < 0) returned by \"wait\".\n\n Multiple threads may block on a single waitset at the same time;\n the calls are entirely independent.\n\n An empty waitset never triggers (i.e., dds_waitset_wait on an empty\n waitset is essentially equivalent to a sleep).\n\n The \"dds_waitset_wait_until\" operation is the same as the\n \"dds_waitset_wait\" except that it takes an absolute timeout.\n\n @param[in] waitset The waitset to set the trigger value on.\n @param[out] xs Pre-allocated list to store the 'blobs' that were\n provided during the attach of the triggered entities.\n @param[in] nxs The size of the pre-allocated blobs list.\n @param[in] reltimeout Relative timeout\n\n @returns A dds_return_t with the number of entities triggered or an error code\n\n @retval >0\n Number of entities triggered.\n @retval 0\n Time out (no entities were triggered).\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n The given waitset is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The waitset has already been deleted."]
pub fn dds_waitset_wait(
waitset: dds_entity_t,
xs: *mut dds_attach_t,
nxs: usize,
reltimeout: dds_duration_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief This operation allows an application thread to wait for the a status\n change or other trigger on (one of) the entities that are attached to\n the WaitSet.\n @ingroup waitset\n @component waitset\n\n The dds_waitset_wait() operation blocks until the some of the attached\n entities have triggered or \"abstimeout\" has been reached.\n 'Triggered' (dds_triggered()) doesn't mean the same for every entity:\n - Reader/Writer/Publisher/Subscriber/Topic/Participant\n - These are triggered when their status changed.\n - WaitSet\n - Triggered when trigger value was set to true by the application.\n It stays triggered until application sets the trigger value to\n false (dds_waitset_set_trigger()). This can be used to wake up an\n waitset for different reasons (f.i. termination) than the 'normal'\n status change (like new data).\n - ReadCondition/QueryCondition\n - Triggered when data is available on the related Reader that matches\n the Condition.\n\n This functions takes a pre-allocated list to put the \"xs\" blobs in (that\n were provided during the attach of the related entities) and will return\n the number of triggered entities. It is possible that the given size\n of the list is not the same as the number of triggered entities. If less\n entities were triggered, then the last few entries in the list are\n untouched. When more entities are triggered, then only 'size' number of\n entries are inserted into the list, but still the complete count of the\n triggered entities is returned. Which \"xs\" blobs are returned in the\n latter case is undefined.\n\n In case of a time out, the return value is 0.\n\n Deleting the waitset while the application is blocked results in an\n error code (i.e. < 0) returned by \"wait\".\n\n Multiple threads may block on a single waitset at the same time;\n the calls are entirely independent.\n\n An empty waitset never triggers (i.e., dds_waitset_wait on an empty\n waitset is essentially equivalent to a sleep).\n\n The \"dds_waitset_wait\" operation is the same as the\n \"dds_waitset_wait_until\" except that it takes an relative timeout.\n\n The \"dds_waitset_wait\" operation is the same as the \"dds_wait\"\n except that it takes an absolute timeout.\n\n @param[in] waitset The waitset to set the trigger value on.\n @param[out] xs Pre-allocated list to store the 'blobs' that were\n provided during the attach of the triggered entities.\n @param[in] nxs The size of the pre-allocated blobs list.\n @param[in] abstimeout Absolute timeout\n\n @returns A dds_return_t with the number of entities triggered or an error code.\n\n @retval >0\n Number of entities triggered.\n @retval 0\n Time out (no entities were triggered).\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n The given waitset is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The waitset has already been deleted."]
pub fn dds_waitset_wait_until(
waitset: dds_entity_t,
xs: *mut dds_attach_t,
nxs: usize,
abstimeout: dds_time_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read data from the data reader, read or query condition without updating state\n @ingroup reading\n @component read_data\n\n Reads samples from the reader history cache without marking these samples as \"read\". It starts\n with an arbitrary (matching) instance, reading (matching) samples from the oldest to\n the most recent, then continues with another arbitrarily selected (matching) instance,\n etc. This continues until it has traversed the entire history cache or has gathered\n `maxs` samples.\n\n The @ref dds_read operation can be used to mark the returned samples as \"read\"; the\n @ref dds_take operation can be used to also remove the returned samples from the\n history cache.\n\n For the plain `dds_peek` operation, all instances and samples match. This is different\n for the more selective variants, where the documentation refers to this function and\n only gives detailed information where it differs.\n\n The `buf` parameter is used as follows:\n - If `buf[0]` on entry is a null pointer:\n - on return `buf[0]` .. `buf[k-1]` will point to middleware-owned memory (a.k.a. loans); and\n - `buf[k]` will be a null pointer if `0 <= k < bufsz`; and\n - `0 <= k <= maxs` is the number of samples read (a.k.a. the return value).\n\n - If `buf[0]` on entry is an outstanding sample loan (i.e., resulting from a previous call to, e.g., read), then:\n - all of `buf[0]` .. `buf[k-1]` must be pointers to outstanding loans; and\n - `k` = `bufsz` or `buf[k]` is a null pointer; where\n - `1 <= k < bufsz`; and\n - all these outstanding loans are returned as-if through @ref dds_return_loan; and\n - the result will be as if `buf[0]` had been a null pointer on entry.\n\n - If `buf[0]` on entry is any other address, then:\n - all of `buf[0]` .. `buf[bufsz-1]` must point to memory suitable for storing samples; and\n - the C binding requires that this memory must be initialized such that all embedded strings, externals,\n optionals and sequences are initialized (null pointers are ok, sequences may also be all-0)\n\n The loans returned by `dds_peek` operation are potentially shared copies of the data and the contents\n may not be modified. If a private copy is required, pass in non-null pointers to memory as in the third case\n above.\n\n The `si` array is filled with sample information on all returned samples. If the\n `valid_data` flag is set in the sample info for a particular sample, all fields of that\n sample are valid. Otherwise, only the key value is valid. For the C binding, all other\n fields will be set to 0.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples (see above).\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_peek(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
bufsz: usize,
maxs: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read data matching sample/view/instance states from the data reader, read or query condition without updating state\n @ingroup reading\n @component read_data\n\n See @ref dds_peek. The matching criterion referred to there is that the\n sample/view/instance states must match the specification in the `mask` parameter.\n\n If the sample/view/instance state component in the mask is 0 and `reader_or_condition`\n references a data reader (as opposed to a read or query condition), it is treated as\n equivalent to any sample/view/instance state. If `reader_or_condition` references a\n read or query condition, the matching states are the union of `mask` and the\n condition's mask.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_peek_mask(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
bufsz: usize,
maxs: u32,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read data for a specific instance from the data reader, read or query condition without updating state\n @ingroup reading\n @component read_data\n\n See @ref dds_peek. The matching criterion referred to there is that the instance\n handle must equal the `handle` parameter.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this reader."]
pub fn dds_peek_instance(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
bufsz: usize,
maxs: u32,
handle: dds_instance_handle_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read data for a specific instance matching sample/view/instance states from the data reader, read or query condition without updating state\n @ingroup reading\n @component read_data\n\n See @ref dds_peek. The matching criterion referred to there is that:\n - the instance handle must equal the `handle` parameter; and\n - the sample/view/instance states must match the specification in the `mask` parameter.\n\n If the sample/view/instance state component in the mask is 0 and `reader_or_condition`\n references a data reader (as opposed to a read or query condition), it is treated as\n equivalent to any sample/view/instance state. If `reader_or_condition` references a\n read or query condition, the matching states are the union of `mask` and the\n condition's mask.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this reader."]
pub fn dds_peek_instance_mask(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
bufsz: usize,
maxs: u32,
handle: dds_instance_handle_t,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read the first unread sample without updating state\n @ingroup reading\n @component read_data\n\n Equivalent to `dds_peek_mask(reader, buf, si, 1, 1, DDS_NOT_READ_SAMPLE_STATE)`.\n\n @param[in] reader The reader entity.\n @param[in,out] buf A pointer to a sample.\n @param[out] si The pointer to @ref dds_sample_info_t returned for a data value.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_peek_next(
reader: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read data from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n Reads samples from the reader history cache, marking these samples as \"read\". It starts\n with an arbitrary (matching) instance, reading (matching) samples from the oldest to\n the most recent, then continues with another arbitrarily selected (matching) instance,\n etc. This continues until it has traversed the entire history cache or has gathered\n `maxs` samples.\n\n The @ref dds_peek operation can be read samples without marking them as \"read\"; the\n @ref dds_take operation can be used to also remove the returned samples from the\n history cache.\n\n For the plain `dds_read` operation, all instances and samples match. This is different\n for the more selective variants, where the documentation refers to this function and\n only gives detailed information where it differs.\n\n The `buf` parameter is used as follows:\n - If `buf[0]` on entry is a null pointer:\n - on return `buf[0]` .. `buf[k-1]` will point to middleware-owned memory (a.k.a. loans); and\n - `buf[k]` will be a null pointer if `0 <= k < bufsz`; and\n - `0 <= k <= maxs` is the number of samples read (a.k.a. the return value).\n\n - If `buf[0]` on entry is an outstanding sample loan (i.e., resulting from a previous call to, e.g., read), then:\n - all of `buf[0]` .. `buf[k-1]` must be pointers to outstanding loans; and\n - `k` = `bufsz` or `buf[k]` is a null pointer; where\n - `1 <= k < bufsz`; and\n - all these outstanding loans are returned as-if through @ref dds_return_loan; and\n - the result will be as if `buf[0]` had been a null pointer on entry.\n\n - If `buf[0]` on entry is any other address, then:\n - all of `buf[0]` .. `buf[bufsz-1]` must point to memory suitable for storing samples; and\n - the C binding requires that this memory must be initialized such that all embedded strings, externals,\n optionals and sequences are initialized (null pointers are ok, sequences may also be all-0)\n\n The loans returned by `dds_read` operation are potentially shared copies of the data and the contents\n may not be modified. If a private copy is required, pass in non-null pointers to memory as in the third case\n above.\n\n The `si` array is filled with sample information on all returned samples. If the\n `valid_data` flag is set in the sample info for a particular sample, all fields of that\n sample are valid. Otherwise, only the key value is valid. For the C binding, all other\n fields will be set to 0.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples (see above).\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_read(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
bufsz: usize,
maxs: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read data from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for `dds_read` where `bufsz` = `maxs`.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] maxs Maximum number of samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_read_wl(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
maxs: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read data matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n See @ref dds_read. The matching criterion referred to there is that the\n sample/view/instance states must match the specification in the `mask` parameter.\n\n If the sample/view/instance state component in the mask is 0 and `reader_or_condition`\n references a data reader (as opposed to a read or query condition), it is treated as\n equivalent to any sample/view/instance state. If `reader_or_condition` references a\n read or query condition, the matching states are the union of `mask` and the\n condition's mask.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_read_mask(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
bufsz: usize,
maxs: u32,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read data matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_read_mask where `bufsz` = `maxs`.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] maxs Maximum number of samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_read_mask_wl(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
maxs: u32,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read data for a specific instance from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n See @ref dds_read. The matching criterion referred to there is that the instance\n handle must equal the `handle` parameter.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this reader."]
pub fn dds_read_instance(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
bufsz: usize,
maxs: u32,
handle: dds_instance_handle_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read data for a specific instance from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_read_instance where `bufsz` = `maxs`.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this reader."]
pub fn dds_read_instance_wl(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
maxs: u32,
handle: dds_instance_handle_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read data for a specific instance matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n See @ref dds_read. The matching criterion referred to there is that:\n - the instance handle must equal the `handle` parameter; and\n - the sample/view/instance states must match the specification in the `mask` parameter.\n\n If the sample/view/instance state component in the mask is 0 and `reader_or_condition`\n references a data reader (as opposed to a read or query condition), it is treated as\n equivalent to any sample/view/instance state. If `reader_or_condition` references a\n read or query condition, the matching states are the union of `mask` and the\n condition's mask.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this reader."]
pub fn dds_read_instance_mask(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
bufsz: usize,
maxs: u32,
handle: dds_instance_handle_t,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read data for a specific instance matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_read_instance_mask where `bufsz` = `maxs`.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this reader."]
pub fn dds_read_instance_mask_wl(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
maxs: u32,
handle: dds_instance_handle_t,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read the first unread sample\n @ingroup reading\n @component read_data\n\n Equivalent to `dds_read_mask(reader, buf, si, 1, 1, DDS_NOT_READ_SAMPLE_STATE)`.\n\n @param[in] reader The reader entity.\n @param[in,out] buf A pointer to a sample.\n @param[out] si The pointer to @ref dds_sample_info_t returned for a data value.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_read_next(
reader: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read the first unread sample\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_read_next.\n\n @param[in] reader The reader entity.\n @param[in,out] buf A pointer to a sample.\n @param[out] si The pointer to @ref dds_sample_info_t returned for a data value.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_read_next_wl(
reader: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Take data from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n Reads and removes samples from the reader history cache. It starts with an arbitrary\n (matching) instance, reading (matching) samples from the oldest to the most recent,\n then continues with another arbitrarily selected (matching) instance, etc. This\n continues until it has traversed the entire history cache or has gathered `maxs`\n samples.\n\n The @ref dds_read operation can be used to read samples without removing them from\n the history cache but marking them as \"read\"; the @ref dds_peek operation can be used\n to read samples from the cache without changing any internal state.\n\n For the plain `dds_take` operation, all instances and samples match. This is different\n for the more selective variants, where the documentation refers to this function and\n only gives detailed information where it differs.\n\n The `buf` parameter is used as follows:\n - If `buf[0]` on entry is a null pointer:\n - on return `buf[0]` .. `buf[k-1]` will point to middleware-owned memory (a.k.a. loans); and\n - `buf[k]` will be a null pointer if `0 <= k < bufsz`; and\n - `0 <= k <= maxs` is the number of samples read (a.k.a. the return value).\n\n - If `buf[0]` on entry is an outstanding sample loan (i.e., resulting from a previous call to, e.g., read), then:\n - all of `buf[0]` .. `buf[k-1]` must be pointers to outstanding loans; and\n - `k` = `bufsz` or `buf[k]` is a null pointer; where\n - `1 <= k < bufsz`; and\n - all these outstanding loans are returned as-if through @ref dds_return_loan; and\n - the result will be as if `buf[0]` had been a null pointer on entry.\n\n - If `buf[0]` on entry is any other address, then:\n - all of `buf[0]` .. `buf[bufsz-1]` must point to memory suitable for storing samples; and\n - the C binding requires that this memory must be initialized such that all embedded strings, externals,\n optionals and sequences are initialized (null pointers are ok, sequences may also be all-0)\n\n The loans returned by `dds_take` operation are potentially shared copies of the data and the contents\n may not be modified. If a private copy is required, pass in non-null pointers to memory as in the third case\n above.\n\n The `si` array is filled with sample information on all returned samples. If the\n `valid_data` flag is set in the sample info for a particular sample, all fields of that\n sample are valid. Otherwise, only the key value is valid. For the C binding, all other\n fields will be set to 0.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples (see above).\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_take(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
bufsz: usize,
maxs: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Take data from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_take where `bufsz` = `maxs`.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] maxs Maximum number of samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_take_wl(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
maxs: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Take data matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n See @ref dds_take. The matching criterion referred to there is that the\n sample/view/instance states must match the specification in the `mask` parameter.\n\n If the sample/view/instance state component in the mask is 0 and `reader_or_condition`\n references a data reader (as opposed to a read or query condition), it is treated as\n equivalent to any sample/view/instance state. If `reader_or_condition` references a\n read or query condition, the matching states are the union of `mask` and the\n condition's mask.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_take_mask(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
bufsz: usize,
maxs: u32,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Take data matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for `dds_take_mask` where `bufsz` = `maxs`.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] maxs Maximum number of samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_take_mask_wl(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
maxs: u32,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Take data for a specific instance from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n See @ref dds_take. The matching criterion referred to there is that the instance\n handle must equal the `handle` parameter.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this reader."]
pub fn dds_take_instance(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
bufsz: usize,
maxs: u32,
handle: dds_instance_handle_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Take data for a specific instance from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_take_instance where `bufsz` = `maxs`.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this reader."]
pub fn dds_take_instance_wl(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
maxs: u32,
handle: dds_instance_handle_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Take data for a specific instance matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n See @ref dds_take. The matching criterion referred to there is that:\n - the instance handle must equal the `handle` parameter; and\n - the sample/view/instance states must match the specification in the `mask` parameter.\n\n If the sample/view/instance state component in the mask is 0 and `reader_or_condition`\n references a data reader (as opposed to a read or query condition), it is treated as\n equivalent to any sample/view/instance state. If `reader_or_condition` references a\n read or query condition, the matching states are the union of `mask` and the\n condition's mask.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this reader."]
pub fn dds_take_instance_mask(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
bufsz: usize,
maxs: u32,
handle: dds_instance_handle_t,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Take data for a specific instance matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_take_instance_mask where `bufsz` = `maxs`.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples or an error code.\n\n @retval >= 0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this reader."]
pub fn dds_take_instance_mask_wl(
reader_or_condition: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
maxs: u32,
handle: dds_instance_handle_t,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Take the first unread sample\n @ingroup reading\n @component read_data\n\n Equivalent to `dds_take_mask(reader, buf, si, 1, 1, DDS_NOT_READ_SAMPLE_STATE)`.\n\n @param[in] reader The reader entity.\n @param[in,out] buf A pointer to a sample.\n @param[out] si The pointer to @ref dds_sample_info_t returned for a data value.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_take_next(
reader: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Take the first unread sample\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_take_next.\n\n @param[in] reader The reader entity.\n @param[in,out] buf A pointer to a sample.\n @param[out] si The pointer to @ref dds_sample_info_t returned for a data value.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_take_next_wl(
reader: dds_entity_t,
buf: *mut *mut ::std::ffi::c_void,
si: *mut dds_sample_info_t,
) -> dds_return_t;
}
#[doc = " @brief Function type for sample collector argument in read/take-with-collector\n @ingroup reading\n @component read_data\n\n This defines the function type used by @ref dds_read_with_collector and @ref\n dds_take_with_collector for passing samples to be included in the result to an\n application defined function for collecting them in whatever way it needs. The\n function is called for each sample while the RHC is locked, and so it is advisable to\n only perform a small amount of work. Calling Cyclone DDS API functions is not\n supported.\n\n It is called for the samples in the order compatible with the requirements of the DDS\n specification, in particular that means instances are contiguous.\n\n @param[in] arg A pointer to the application-defined argument passed to read/take\n @param[in] si A fully initialized sample info object\n @param[in] st The underlying ddsi_sertype (needed only if si.valid_data is false)\n @param[in] sd The sample, if si.valid_data is false, the type has been erased (hence the \"st\" argument)\n\n @return An indication of success or failure\n @retval DDS_RETCODE_OK\n the sample was successfully handled and reading can continue\n @retval otherwise\n an error, this will propagated to the caller if it occurs on the first call\n otherwise the return valu eof read/take will be the number of samples\n successfully collected"]
pub type dds_read_with_collector_fn_t = ::std::option::Option<
unsafe extern "C" fn(
arg: *mut ::std::ffi::c_void,
si: *const dds_sample_info_t,
st: *const ddsi_sertype,
sd: *mut ddsi_serdata,
) -> dds_return_t,
>;
unsafe extern "C" {
#[doc = " @brief Read samples while collecting result in an application-defined way without updating state\n @ingroup reading\n @component read_data\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Collected samples are not marked as read.\n\n @param[in] reader_or_condition Handle of a reader or a read/query condition\n @param[in] maxs Maximum number of samples (1 .. INT32_MAX)\n @param[in] handle Instance handle or 0 if not reading a specific instance\n @param[in] mask Sample/view/instance state mask\n @param[in] collect_sample Function be called for each sample in the result\n @param[in] collect_sample_arg Arbitrary argument passed to \"collect_sample\"\n @return The number of returned samples or an error code\n @retval > 0 number of samples passed successfully collected by collect_sample\n @retval 0 success, no matching data\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval < 0 Return value of failing collect_sample on first invocation"]
pub fn dds_peek_with_collector(
reader_or_condition: dds_entity_t,
maxs: u32,
handle: dds_instance_handle_t,
mask: u32,
collect_sample: dds_read_with_collector_fn_t,
collect_sample_arg: *mut ::std::ffi::c_void,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Read samples while collecting result in an application-defined way\n @ingroup reading\n @component read_data\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Collected samples are marked as read.\n\n @param[in] reader_or_condition Handle of a reader or a read/query condition\n @param[in] maxs Maximum number of samples (1 .. INT32_MAX)\n @param[in] handle Instance handle or 0 if not reading a specific instance\n @param[in] mask Sample/view/instance state mask\n @param[in] collect_sample Function be called for each sample in the result\n @param[in] collect_sample_arg Arbitrary argument passed to \"collect_sample\"\n @return The number of returned samples or an error code\n @retval > 0 number of samples passed successfully collected by collect_sample\n @retval 0 success, no matching data\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval < 0 Return value of failing collect_sample on first invocation"]
pub fn dds_read_with_collector(
reader_or_condition: dds_entity_t,
maxs: u32,
handle: dds_instance_handle_t,
mask: u32,
collect_sample: dds_read_with_collector_fn_t,
collect_sample_arg: *mut ::std::ffi::c_void,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Take samples while collecting result in an application-defined way\n @ingroup reading\n @component read_data\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Collected samples are removed from the history cache.\n\n @param[in] reader_or_condition Handle of a reader or a read/query condition\n @param[in] maxs Maximum number of samples (1 .. INT32_MAX)\n @param[in] handle Instance handle or 0 if not taking from a specific instance\n @param[in] mask Sample/view/instance state mask\n @param[in] collect_sample Function be called for each sample in the result\n @param[in] collect_sample_arg Arbitrary argument passed to \"collect_sample\"\n @return The number of returned samples or an error code\n @retval > 0 number of samples passed successfully collected by collect_sample\n @retval 0 success, no matching data\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval < 0 Return value of failing collect_sample on first invocation"]
pub fn dds_take_with_collector(
reader_or_condition: dds_entity_t,
maxs: u32,
handle: dds_instance_handle_t,
mask: u32,
collect_sample: dds_read_with_collector_fn_t,
collect_sample_arg: *mut ::std::ffi::c_void,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get references to a representation of the samples in a reader history cache and their accompanying sample infodata values (of same type) without updating state\n @ingroup reading\n @component read_data\n\n This operation returns references to the internal representation of samples (`struct ddsi_serdata`), which can\n then be used in a variety of ways. Examples are converting it to application representation and obtaining a copy or a\n reference of the serialized representation. If the underlying implementation (`struct ddsi_sertype`) is known to\n the application, other options may exist as well.\n\n The data is left in the reader history cache and the sample state and view state of the returned samples and their\n instances are not updated; @ref dds_readcdr updates these states; @ref dds_takecdr removes the data\n from the history cache.\n\n The returned references must eventually be released by calling @ref ddsi_serdata_unref. There is no guarantee\n the type pointer survives beyond the existence of the reader from which the references were read.\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Note that this is a simple wrapper around @ref dds_peek_with_collector.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[out] buf Filled with references @ref ddsi_serdata structures.\n @param[in] maxs Maximum number of samples to read.\n @param[out] si Filled with sample info.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The precondition for this operation is not met."]
pub fn dds_peekcdr(
reader_or_condition: dds_entity_t,
buf: *mut *mut ddsi_serdata,
maxs: u32,
si: *mut dds_sample_info_t,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get references to a representation of the samples of a specific instance in a reader history cache and their accompanying sample infodata values (of same type) without updating state\n @ingroup reading\n @component read_data\n\n This operation returns references to the internal representation of samples (`struct ddsi_serdata`), which can\n then be used in a variety of ways. Examples are converting it to application representation and obtaining a copy or a\n reference of the serialized representation. If the underlying implementation (`struct ddsi_sertype`) is known to\n the application, other options may exist as well.\n\n The data is left in the reader history cache and the sample state and view state of the returned samples and their\n instances are not updated; @ref dds_readcdr updates these states; @ref dds_takecdr removes the data\n from the history cache.\n\n The returned references must eventually be released by calling @ref ddsi_serdata_unref. There is no guarantee\n the type pointer survives beyond the existence of the reader from which the references were read.\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Note that this is a simple wrapper around @ref dds_peek_with_collector.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[out] buf Filled with references @ref ddsi_serdata structures.\n @param[in] maxs Maximum number of samples to read.\n @param[out] si Filled with sample info.\n @param[in] handle Handle of instance from which to read samples.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this reader."]
pub fn dds_peekcdr_instance(
reader_or_condition: dds_entity_t,
buf: *mut *mut ddsi_serdata,
maxs: u32,
si: *mut dds_sample_info_t,
handle: dds_instance_handle_t,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get references to a representation of the samples in a reader history cache and their accompanying sample infodata values (of same type) and marking them as read\n @ingroup reading\n @component read_data\n\n This operation returns references to the internal representation of samples (`struct ddsi_serdata`), which can\n then be used in a variety of ways. Examples are converting it to application representation and obtaining a copy or a\n reference of the serialized representation. If the underlying implementation (`struct ddsi_sertype`) is known to\n the application, other options may exist as well.\n\n The data is left in the reader history cache and the sample state and view state of the returned samples and their\n instances are updated; @ref dds_peekcdr returns the data without updating these states; @ref dds_takecdr\n removes the data from the history cache.\n\n The returned references must eventually be released by calling @ref ddsi_serdata_unref. There is no guarantee\n the type pointer survives beyond the existence of the reader from which the references were read.\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Note that this is a simple wrapper around @ref dds_read_with_collector.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[out] buf Filled with references @ref ddsi_serdata structures.\n @param[in] maxs Maximum number of samples to read.\n @param[out] si Filled with sample info.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The precondition for this operation is not met."]
pub fn dds_readcdr(
reader_or_condition: dds_entity_t,
buf: *mut *mut ddsi_serdata,
maxs: u32,
si: *mut dds_sample_info_t,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get references to a representation of the samples of a specific instance in a reader history cache and their accompanying sample infodata values (of same type) and marking them as read\n @ingroup reading\n @component read_data\n\n This operation returns references to the internal representation of samples (`struct ddsi_serdata`), which can\n then be used in a variety of ways. Examples are converting it to application representation and obtaining a copy or a\n reference of the serialized representation. If the underlying implementation (`struct ddsi_sertype`) is known to\n the application, other options may exist as well.\n\n The data is left in the reader history cache and the sample state and view state of the returned samples and their\n instances are updated; @ref dds_peekcdr returns the data without updating these states; @ref dds_takecdr\n removes the data from the history cache.\n\n The returned references must eventually be released by calling @ref ddsi_serdata_unref. There is no guarantee\n the type pointer survives beyond the existence of the reader from which the references were read.\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Note that this is a simple wrapper around @ref dds_read_with_collector.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[out] buf Filled with references @ref ddsi_serdata structures.\n @param[in] maxs Maximum number of samples to read.\n @param[out] si Filled with sample info.\n @param[in] handle Handle of instance from which to read samples.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this reader."]
pub fn dds_readcdr_instance(
reader_or_condition: dds_entity_t,
buf: *mut *mut ddsi_serdata,
maxs: u32,
si: *mut dds_sample_info_t,
handle: dds_instance_handle_t,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get references to a representation of the samples in a reader history cache and their accompanying sample infodata values (of same type) and remove them from the cache\n @ingroup reading\n @component read_data\n\n This operation returns references to the internal representation of samples (`struct ddsi_serdata`), which can\n then be used in a variety of ways. Examples are converting it to application representation and obtaining a copy or a\n reference of the serialized representation. If the underlying implementation (`struct ddsi_sertype`) is known to\n the application, other options may exist as well.\n\n The data is removed from the reader history cache; @ref dds_peekcdr leaves them in and leaves the sample and\n view states unchanged; @ref dds_readcdr leaves the data in the cache but does update the sample and view\n states.\n\n The returned references must eventually be released by calling @ref ddsi_serdata_unref. There is no guarantee\n the type pointer survives beyond the existence of the reader from which the references were read.\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Note that this is a simple wrapper around @ref dds_take_with_collector.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[out] buf Filled with references @ref ddsi_serdata structures.\n @param[in] maxs Maximum number of samples to read.\n @param[out] si Filled with sample info.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The precondition for this operation is not met."]
pub fn dds_takecdr(
reader_or_condition: dds_entity_t,
buf: *mut *mut ddsi_serdata,
maxs: u32,
si: *mut dds_sample_info_t,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get references to a representation of the samples of a specific instance in a reader history cache and their accompanying sample infodata values (of same type) and remove them from the cache\n @ingroup reading\n @component read_data\n\n This operation returns references to the internal representation of samples (`struct ddsi_serdata`), which can\n then be used in a variety of ways. Examples are converting it to application representation and obtaining a copy or a\n reference of the serialized representation. If the underlying implementation (`struct ddsi_sertype`) is known to\n the application, other options may exist as well.\n\n The data is removed from the reader history cache; @ref dds_peekcdr leaves them in and leaves the sample and\n view states unchanged; @ref dds_readcdr leaves the data in the cache but does update the sample and view\n states.\n\n The returned references must eventually be released by calling @ref ddsi_serdata_unref. There is no guarantee\n the type pointer survives beyond the existence of the reader from which the references were read.\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Note that this is a simple wrapper around @ref dds_take_with_collector.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[out] buf Filled with references @ref ddsi_serdata structures.\n @param[in] maxs Maximum number of samples to read.\n @param[out] si Filled with sample info.\n @param[in] handle Handle of instance from which to read samples.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n Number of samples read.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n The instance handle has not been registered with this reader."]
pub fn dds_takecdr_instance(
reader_or_condition: dds_entity_t,
buf: *mut *mut ddsi_serdata,
maxs: u32,
si: *mut dds_sample_info_t,
handle: dds_instance_handle_t,
mask: u32,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief This operation takes a sample and returns an instance handle to be used for subsequent operations.\n @ingroup instance_handle\n @component data_instance\n\n @param[in] entity Reader or Writer entity.\n @param[in] data Sample with a key fields set.\n\n @returns instance handle or DDS_HANDLE_NIL if instance could not be found from key."]
pub fn dds_lookup_instance(
entity: dds_entity_t,
data: *const ::std::ffi::c_void,
) -> dds_instance_handle_t;
}
unsafe extern "C" {
#[doc = " @brief This operation takes an instance handle and return a key-value corresponding to it.\n @ingroup instance_handle\n @component data_instance\n\n @param[in] entity Reader, writer, readcondition or querycondition entity.\n @param[in] ih Instance handle.\n @param[out] data pointer to an instance, to which the key ID corresponding to the instance handle will be\n returned, the sample in the instance should be ignored.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n One of the parameters was invalid or the topic does not exist.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n\n DOC_TODO: Check return codes for completeness"]
pub fn dds_instance_get_key(
entity: dds_entity_t,
ih: dds_instance_handle_t,
data: *mut ::std::ffi::c_void,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Begin coherent publishing or begin accessing a coherent set in a subscriber\n @ingroup publication\n @component coherent_sets\n\n Invoking on a Writer or Reader behaves as if dds_begin_coherent was invoked on its parent\n Publisher or Subscriber respectively.\n\n @param[in] entity The entity that is prepared for coherent access.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_ERROR\n An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n The provided entity is invalid or not supported."]
pub fn dds_begin_coherent(entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief End coherent publishing or end accessing a coherent set in a subscriber\n @ingroup publication\n @component coherent_sets\n\n Invoking on a Writer or Reader behaves as if dds_end_coherent was invoked on its parent\n Publisher or Subscriber respectively.\n\n @param[in] entity The entity on which coherent access is finished.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The provided entity is invalid or not supported."]
pub fn dds_end_coherent(entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Trigger DATA_AVAILABLE event on contained readers\n @ingroup subscriber\n @component subscriber\n\n The DATA_AVAILABLE event is broadcast to all readers owned by this subscriber that currently\n have new data available. Any on_data_available listener callbacks attached to respective\n readers are invoked.\n\n @param[in] subscriber A valid subscriber handle.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The provided subscriber is invalid."]
pub fn dds_notify_readers(subscriber: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Checks whether the entity has one of its enabled statuses triggered.\n @ingroup entity\n @component entity_status\n\n @param[in] entity Entity for which to check for triggered status.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_triggered(entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get the topic\n @ingroup entity\n @component entity_relations\n\n This operation returns a topic (handle) when the function call is done\n with reader, writer, read condition or query condition. For instance, it\n will return the topic when it is used for creating the reader or writer.\n For the conditions, it returns the topic that is used for creating the reader\n which was used to create the condition.\n\n @param[in] entity The entity.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The entity has already been deleted."]
pub fn dds_get_topic(entity: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @brief Get instance handles of the data readers matching a writer\n @ingroup builtintopic\n @component writer\n\n This operation fills the provided array with the instance handles\n of the data readers that match the writer. On successful output,\n the number of entries of \"rds\" set is the minimum of the return\n value and the value of \"nrds\".\n\n @param[in] writer The writer.\n @param[in] rds The array to be filled.\n @param[in] nrds The size of the rds array, at most the first\n nrds entries will be filled. rds = NULL and nrds = 0\n is a valid way of determining the number of matched\n readers, but inefficient compared to relying on the\n matched publication status.\n\n @returns A dds_return_t indicating the number of matched readers\n or failure. The return value may be larger than nrds\n if there are more matching readers than the array can\n hold.\n\n @retval >=0\n The number of matching readers.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not valid or rds = NULL and\n nrds > 0.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object."]
pub fn dds_get_matched_subscriptions(
writer: dds_entity_t,
rds: *mut dds_instance_handle_t,
nrds: usize,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get a description of a reader matched with the provided writer\n @ingroup builtintopic\n @component writer\n\n This operation looks up the reader instance handle in the set of\n readers matched with the specified writer, returning a freshly\n allocated sample of the DCPSSubscription built-in topic if found,\n and NULL if not. The caller is responsible for freeing the\n memory allocated, e.g. using dds_builtintopic_free_endpoint.\n\n This operation is similar to performing a read of the given\n instance handle on a reader of the DCPSSubscription built-in\n topic, but this operation additionally filters on whether the\n reader is matched by the provided writer.\n\n @param[in] writer The writer.\n @param[in] ih The instance handle of a reader.\n\n @returns A newly allocated sample containing the information on the\n reader, or a NULL pointer for any kind of failure.\n\n @retval != NULL\n The requested data\n @retval NULL\n The writer is not valid or ih is not an instance handle\n of a matched reader."]
pub fn dds_get_matched_subscription_data(
writer: dds_entity_t,
ih: dds_instance_handle_t,
) -> *mut dds_builtintopic_endpoint_t;
}
unsafe extern "C" {
#[doc = " @brief Get instance handles of the data writers matching a reader\n @ingroup builtintopic\n @component reader\n\n This operation fills the provided array with the instance handles\n of the data writers that match the reader. On successful output,\n the number of entries of \"wrs\" set is the minimum of the return\n value and the value of \"nwrs\".\n\n @param[in] reader The reader.\n @param[in] wrs The array to be filled.\n @param[in] nwrs The size of the wrs array, at most the first\n nwrs entries will be filled. wrs = NULL and wrds = 0\n is a valid way of determining the number of matched\n readers, but inefficient compared to relying on the\n matched publication status.\n\n @returns A dds_return_t indicating the number of matched writers\n or failure. The return value may be larger than nwrs\n if there are more matching writers than the array can\n hold.\n\n @retval >=0\n The number of matching writers.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not valid or wrs = NULL and\n nwrs > 0.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object."]
pub fn dds_get_matched_publications(
reader: dds_entity_t,
wrs: *mut dds_instance_handle_t,
nwrs: usize,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Get a description of a writer matched with the provided reader\n @ingroup builtintopic\n @component reader\n\n This operation looks up the writer instance handle in the set of\n writers matched with the specified reader, returning a freshly\n allocated sample of the DCPSPublication built-in topic if found,\n and NULL if not. The caller is responsible for freeing the\n memory allocated, e.g. using dds_builtintopic_free_endpoint.\n\n This operation is similar to performing a read of the given\n instance handle on a reader of the DCPSPublication built-in\n topic, but this operation additionally filters on whether the\n writer is matched by the provided reader.\n\n @param[in] reader The reader.\n @param[in] ih The instance handle of a writer.\n\n @returns A newly allocated sample containing the information on the\n writer, or a NULL pointer for any kind of failure.\n\n @retval != NULL\n The requested data\n @retval NULL\n The reader is not valid or ih is not an instance handle\n of a matched writer."]
pub fn dds_get_matched_publication_data(
reader: dds_entity_t,
ih: dds_instance_handle_t,
) -> *mut dds_builtintopic_endpoint_t;
}
unsafe extern "C" {
#[doc = " @brief Gets the type information from endpoint information that was\n retrieved by dds_get_matched_subscription_data or\n dds_get_matched_publication_data\n @ingroup builtintopic\n @component builtin_topic\n\n @param[in] builtintopic_endpoint The builtintopic endpoint struct\n @param[out] type_info Type information that will be allocated by this function in case of success.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more parameters are invalid"]
pub fn dds_builtintopic_get_endpoint_type_info(
builtintopic_endpoint: *mut dds_builtintopic_endpoint_t,
type_info: *mut *const dds_typeinfo_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Free the endpoint information that was retrieved by\n dds_get_matched_subscription_data or dds_get_matched_publication_data\n @ingroup builtintopic\n @component builtin_topic\n\n This operation deallocates the memory of the fields in a\n dds_builtintopic_endpoint_t struct and deallocates the\n struct itself.\n\n @param[in] builtintopic_endpoint The builtintopic endpoint struct"]
pub fn dds_builtintopic_free_endpoint(builtintopic_endpoint: *mut dds_builtintopic_endpoint_t);
}
unsafe extern "C" {
#[doc = " @brief Free the provided topic information\n @ingroup builtintopic\n @component builtin_topic\n\n This operation deallocates the memory of the fields in a\n dds_builtintopic_topic_t struct and deallocates the\n struct itself.\n\n @param[in] builtintopic_topic The builtintopic topic struct"]
pub fn dds_builtintopic_free_topic(builtintopic_topic: *mut dds_builtintopic_topic_t);
}
unsafe extern "C" {
#[doc = " @brief Free the provided participant information\n @ingroup builtintopic\n @component builtin_topic\n\n This operation deallocates the memory of the fields in a\n dds_builtintopic_participant_t struct and deallocates the\n struct itself.\n\n @param[in] builtintopic_participant The builtintopic participant struct"]
pub fn dds_builtintopic_free_participant(
builtintopic_participant: *mut dds_builtintopic_participant_t,
);
}
unsafe extern "C" {
#[doc = " @brief This operation manually asserts the liveliness of a writer\n or domain participant.\n @ingroup entity\n @component participant\n\n This operation manually asserts the liveliness of a writer\n or domain participant. This is used in combination with the Liveliness\n QoS policy to indicate that the entity remains active. This operation need\n only be used if the liveliness kind in the QoS is either\n DDS_LIVELINESS_MANUAL_BY_PARTICIPANT or DDS_LIVELINESS_MANUAL_BY_TOPIC.\n\n @param[in] entity A domain participant or writer\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object."]
pub fn dds_assert_liveliness(entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief This operation allows making the domain's network stack temporarily deaf and/or mute.\n @ingroup testing\n @component domain\n @warning Unstable API, for testing\n @unstable\n\n This is a support function for testing and, other special uses and is subject to change.\n\n @param[in] entity A domain entity or an entity bound to a domain, such\n as a participant, reader or writer.\n @param[in] deaf Whether to network stack should pretend to be deaf and\n ignore any incoming packets.\n @param[in] mute Whether to network stack should pretend to be mute and\n discard any outgoing packets where it normally would.\n pass them to the operating system kernel for transmission.\n @param[in] reset_after Any value less than INFINITY will cause it to\n set deaf = mute = false after reset_after ns have passed.\n This is done by an event scheduled for the appropriate\n time and otherwise forgotten. These events are not\n affected by subsequent calls to this function.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object."]
pub fn dds_domain_set_deafmute(
entity: dds_entity_t,
deaf: bool,
mute: bool,
reset_after: dds_duration_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief This function resolves the type for the provided type identifier,\n which can e.g. be retrieved from endpoint or topic discovery data.\n @ingroup xtypes\n @component type_metadata\n\n @param[in] entity A domain entity or an entity bound to a domain, such\n as a participant, reader or writer.\n @param[in] type_id Type identifier\n @param[in] timeout Timeout for waiting for requested type information to be available\n @param[out] type_obj The type information, untouched if type is not resolved\n\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The entity parameter is not a valid parameter, type_id or type name\n is not provided, or the sertype out parameter is NULL\n @retval DDS_RETCODE_NOT_FOUND\n A type with the provided type_id and type_name was not found\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_UNSUPPORTED\n Cyclone DDS built without type discovery\n (cf. DDS_HAS_TYPE_DISCOVERY)"]
pub fn dds_get_typeobj(
entity: dds_entity_t,
type_id: *const dds_typeid_t,
timeout: dds_duration_t,
type_obj: *mut *mut dds_typeobj_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Free the type object that was retrieved using dds_get_typeobj\n @ingroup xtypes\n @component type_metadata\n\n @param[in] type_obj The type object\n\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The type_obj parameter is NULL\n @retval DDS_RETCODE_UNSUPPORTED\n Cyclone DDS built without type discovery\n (cf. DDS_HAS_TYPE_DISCOVERY)"]
pub fn dds_free_typeobj(type_obj: *mut dds_typeobj_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief This function gets the type information from the\n provided topic, reader or writer\n @ingroup xtypes\n @component type_metadata\n\n @param[in] entity A topic/reader/writer entity\n @param[out] type_info The type information, untouched if returncode indicates failure\n\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The type_info parameter is null\n @retval DDS_RETCODE_NOT_FOUND\n The entity does not have type information set\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_UNSUPPORTED\n Cyclone DDS built without type discovery\n (cf. DDS_HAS_TYPELIB)"]
pub fn dds_get_typeinfo(
entity: dds_entity_t,
type_info: *mut *mut dds_typeinfo_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Free the type information that was retrieved using dds_get_typeinfo\n @ingroup xtypes\n @component type_metadata\n\n @param[in] type_info The type information\n\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The type_info parameter is NULL\n @retval DDS_RETCODE_UNSUPPORTED\n Cyclone DDS built without type discovery\n (cf. DDS_HAS_TYPELIB)"]
pub fn dds_free_typeinfo(type_info: *mut dds_typeinfo_t) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Gets the sertype of an entity\n\n The provided entity must be a topic or endpoint. This function returns a pointer to\n the sertype of the entity. The refcount of the sertype is not incremented. The lifetime\n of the returned sertype pointer is at least that of the lifetime of the entity on which\n it was invoked.\n\n @param[in] entity A topic, reader or writer entity\n @param[out] sertype A pointer to the entity's sertype is stored in this parameter (see note above on lifetime of this pointer)\n\n @returns A dds_return_t indicating success or failure.\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n The sertype parameter is NULL\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n Not a topic, reader or writer entity"]
pub fn dds_get_entity_sertype(
entity: dds_entity_t,
sertype: *mut *const ddsi_sertype,
) -> dds_return_t;
}
#[doc = "< value is a 32-bit unsigned integer"]
pub const dds_stat_kind_DDS_STAT_KIND_UINT32: dds_stat_kind = 0;
#[doc = "< value is a 64-bit unsigned integer"]
pub const dds_stat_kind_DDS_STAT_KIND_UINT64: dds_stat_kind = 1;
#[doc = "< value is integral(length(t) dt)"]
pub const dds_stat_kind_DDS_STAT_KIND_LENGTHTIME: dds_stat_kind = 2;
#[doc = " @brief Kind of statistical value\n @ingroup statistics"]
pub type dds_stat_kind = ::std::ffi::c_uint;
#[doc = " @brief KeyValue statistics entry\n @ingroup statistics"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct dds_stat_keyvalue {
#[doc = "< name, memory owned by library"]
pub name: *const ::std::ffi::c_char,
#[doc = "< value type"]
pub kind: dds_stat_kind,
#[doc = "< value"]
pub u: dds_stat_keyvalue__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union dds_stat_keyvalue__bindgen_ty_1 {
#[doc = "< used if kind == DDS_STAT_KIND_UINT32"]
pub u32_: u32,
#[doc = "< used if kind == DDS_STAT_KIND_UINT64"]
pub u64_: u64,
#[doc = "< used if kind == DDS_STAT_KIND_LENGTHTIME"]
pub lengthtime: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_stat_keyvalue__bindgen_ty_1"]
[::std::mem::size_of::<dds_stat_keyvalue__bindgen_ty_1>() - 8usize];
["Alignment of dds_stat_keyvalue__bindgen_ty_1"]
[::std::mem::align_of::<dds_stat_keyvalue__bindgen_ty_1>() - 8usize];
["Offset of field: dds_stat_keyvalue__bindgen_ty_1::u32_"]
[::std::mem::offset_of!(dds_stat_keyvalue__bindgen_ty_1, u32_) - 0usize];
["Offset of field: dds_stat_keyvalue__bindgen_ty_1::u64_"]
[::std::mem::offset_of!(dds_stat_keyvalue__bindgen_ty_1, u64_) - 0usize];
["Offset of field: dds_stat_keyvalue__bindgen_ty_1::lengthtime"]
[::std::mem::offset_of!(dds_stat_keyvalue__bindgen_ty_1, lengthtime) - 0usize];
};
impl Default for dds_stat_keyvalue__bindgen_ty_1 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_stat_keyvalue"][::std::mem::size_of::<dds_stat_keyvalue>() - 24usize];
["Alignment of dds_stat_keyvalue"][::std::mem::align_of::<dds_stat_keyvalue>() - 8usize];
["Offset of field: dds_stat_keyvalue::name"]
[::std::mem::offset_of!(dds_stat_keyvalue, name) - 0usize];
["Offset of field: dds_stat_keyvalue::kind"]
[::std::mem::offset_of!(dds_stat_keyvalue, kind) - 8usize];
["Offset of field: dds_stat_keyvalue::u"]
[::std::mem::offset_of!(dds_stat_keyvalue, u) - 16usize];
};
impl Default for dds_stat_keyvalue {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief Statistics container\n @ingroup statistics"]
#[repr(C)]
pub struct dds_statistics {
#[doc = "< handle of entity to which this set of values applies"]
pub entity: dds_entity_t,
#[doc = "< internal data"]
pub opaque: u64,
#[doc = "< time stamp of latest call to dds_refresh_statistics()"]
pub time: dds_time_t,
#[doc = "< number of key-value pairs"]
pub count: usize,
#[doc = "< data"]
pub kv: __IncompleteArrayField<dds_stat_keyvalue>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_statistics"][::std::mem::size_of::<dds_statistics>() - 32usize];
["Alignment of dds_statistics"][::std::mem::align_of::<dds_statistics>() - 8usize];
["Offset of field: dds_statistics::entity"]
[::std::mem::offset_of!(dds_statistics, entity) - 0usize];
["Offset of field: dds_statistics::opaque"]
[::std::mem::offset_of!(dds_statistics, opaque) - 8usize];
["Offset of field: dds_statistics::time"]
[::std::mem::offset_of!(dds_statistics, time) - 16usize];
["Offset of field: dds_statistics::count"]
[::std::mem::offset_of!(dds_statistics, count) - 24usize];
["Offset of field: dds_statistics::kv"][::std::mem::offset_of!(dds_statistics, kv) - 32usize];
};
impl Default for dds_statistics {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
unsafe extern "C" {
#[doc = " @brief Allocate a new statistics object for entity\n @ingroup statistics\n @component statistics\n @unstable\n\n This allocates and populates a newly allocated `struct dds_statistics` for the\n specified entity.\n\n @param[in] entity the handle of the entity\n\n @returns a newly allocated and populated statistics structure or NULL if entity is\n invalid or doesn't support any statistics."]
pub fn dds_create_statistics(entity: dds_entity_t) -> *mut dds_statistics;
}
unsafe extern "C" {
#[doc = " @brief Update a previously created statistics structure with current values\n @ingroup statistics\n @component statistics\n @unstable\n\n Only the time stamp and the values (and \"opaque\") may change. The set of keys and the\n types of the values do not change.\n\n @param[in,out] stat statistics structure to update the values of\n\n @returns success or an error indication\n\n @retval DDS_RETCODE_OK\n the data was successfully updated\n @retval DDS_RETCODE_BAD_PARAMETER\n stats is a null pointer or the referenced entity no longer exists\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n library was deinitialized"]
pub fn dds_refresh_statistics(stat: *mut dds_statistics) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Free a previously created statistics object\n @ingroup statistics\n @component statistics\n @unstable\n\n This frees the statistics object. Passing a null pointer is a no-op. The operation\n succeeds also if the referenced entity no longer exists.\n\n @param[in] stat statistics object to free"]
pub fn dds_delete_statistics(stat: *mut dds_statistics);
}
unsafe extern "C" {
#[doc = " @brief Lookup a specific value by name\n @ingroup statistics\n @component statistics\n @unstable\n\n This looks up the specified name in the list of keys in `stat` and returns the address\n of the key-value pair if present, a null pointer if not. If `stat` is a null pointer,\n it returns a null pointer.\n\n @param[in] stat statistics object to lookup a name in (or NULL)\n @param[in] name name to look for\n\n @returns The address of the key-value pair inside `stat`, or NULL if `stat` is NULL or\n `name` does not match a key in `stat."]
pub fn dds_lookup_statistic(
stat: *const dds_statistics,
name: *const ::std::ffi::c_char,
) -> *const dds_stat_keyvalue;
}
pub const idtype_t_P_ALL: idtype_t = 0;
pub const idtype_t_P_PID: idtype_t = 1;
pub const idtype_t_P_PGID: idtype_t = 2;
pub type idtype_t = ::std::ffi::c_uint;
pub type pid_t = __darwin_pid_t;
pub type id_t = __darwin_id_t;
pub type sig_atomic_t = ::std::ffi::c_int;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_exception_state {
pub __exception: __uint32_t,
pub __fsr: __uint32_t,
pub __far: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_exception_state"]
[::std::mem::size_of::<__darwin_arm_exception_state>() - 12usize];
["Alignment of __darwin_arm_exception_state"]
[::std::mem::align_of::<__darwin_arm_exception_state>() - 4usize];
["Offset of field: __darwin_arm_exception_state::__exception"]
[::std::mem::offset_of!(__darwin_arm_exception_state, __exception) - 0usize];
["Offset of field: __darwin_arm_exception_state::__fsr"]
[::std::mem::offset_of!(__darwin_arm_exception_state, __fsr) - 4usize];
["Offset of field: __darwin_arm_exception_state::__far"]
[::std::mem::offset_of!(__darwin_arm_exception_state, __far) - 8usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_exception_state64 {
pub __far: __uint64_t,
pub __esr: __uint32_t,
pub __exception: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_exception_state64"]
[::std::mem::size_of::<__darwin_arm_exception_state64>() - 16usize];
["Alignment of __darwin_arm_exception_state64"]
[::std::mem::align_of::<__darwin_arm_exception_state64>() - 8usize];
["Offset of field: __darwin_arm_exception_state64::__far"]
[::std::mem::offset_of!(__darwin_arm_exception_state64, __far) - 0usize];
["Offset of field: __darwin_arm_exception_state64::__esr"]
[::std::mem::offset_of!(__darwin_arm_exception_state64, __esr) - 8usize];
["Offset of field: __darwin_arm_exception_state64::__exception"]
[::std::mem::offset_of!(__darwin_arm_exception_state64, __exception) - 12usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_exception_state64_v2 {
pub __far: __uint64_t,
pub __esr: __uint64_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_exception_state64_v2"]
[::std::mem::size_of::<__darwin_arm_exception_state64_v2>() - 16usize];
["Alignment of __darwin_arm_exception_state64_v2"]
[::std::mem::align_of::<__darwin_arm_exception_state64_v2>() - 8usize];
["Offset of field: __darwin_arm_exception_state64_v2::__far"]
[::std::mem::offset_of!(__darwin_arm_exception_state64_v2, __far) - 0usize];
["Offset of field: __darwin_arm_exception_state64_v2::__esr"]
[::std::mem::offset_of!(__darwin_arm_exception_state64_v2, __esr) - 8usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_thread_state {
pub __r: [__uint32_t; 13usize],
pub __sp: __uint32_t,
pub __lr: __uint32_t,
pub __pc: __uint32_t,
pub __cpsr: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_thread_state"]
[::std::mem::size_of::<__darwin_arm_thread_state>() - 68usize];
["Alignment of __darwin_arm_thread_state"]
[::std::mem::align_of::<__darwin_arm_thread_state>() - 4usize];
["Offset of field: __darwin_arm_thread_state::__r"]
[::std::mem::offset_of!(__darwin_arm_thread_state, __r) - 0usize];
["Offset of field: __darwin_arm_thread_state::__sp"]
[::std::mem::offset_of!(__darwin_arm_thread_state, __sp) - 52usize];
["Offset of field: __darwin_arm_thread_state::__lr"]
[::std::mem::offset_of!(__darwin_arm_thread_state, __lr) - 56usize];
["Offset of field: __darwin_arm_thread_state::__pc"]
[::std::mem::offset_of!(__darwin_arm_thread_state, __pc) - 60usize];
["Offset of field: __darwin_arm_thread_state::__cpsr"]
[::std::mem::offset_of!(__darwin_arm_thread_state, __cpsr) - 64usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_thread_state64 {
pub __x: [__uint64_t; 29usize],
pub __fp: __uint64_t,
pub __lr: __uint64_t,
pub __sp: __uint64_t,
pub __pc: __uint64_t,
pub __cpsr: __uint32_t,
pub __pad: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_thread_state64"]
[::std::mem::size_of::<__darwin_arm_thread_state64>() - 272usize];
["Alignment of __darwin_arm_thread_state64"]
[::std::mem::align_of::<__darwin_arm_thread_state64>() - 8usize];
["Offset of field: __darwin_arm_thread_state64::__x"]
[::std::mem::offset_of!(__darwin_arm_thread_state64, __x) - 0usize];
["Offset of field: __darwin_arm_thread_state64::__fp"]
[::std::mem::offset_of!(__darwin_arm_thread_state64, __fp) - 232usize];
["Offset of field: __darwin_arm_thread_state64::__lr"]
[::std::mem::offset_of!(__darwin_arm_thread_state64, __lr) - 240usize];
["Offset of field: __darwin_arm_thread_state64::__sp"]
[::std::mem::offset_of!(__darwin_arm_thread_state64, __sp) - 248usize];
["Offset of field: __darwin_arm_thread_state64::__pc"]
[::std::mem::offset_of!(__darwin_arm_thread_state64, __pc) - 256usize];
["Offset of field: __darwin_arm_thread_state64::__cpsr"]
[::std::mem::offset_of!(__darwin_arm_thread_state64, __cpsr) - 264usize];
["Offset of field: __darwin_arm_thread_state64::__pad"]
[::std::mem::offset_of!(__darwin_arm_thread_state64, __pad) - 268usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_vfp_state {
pub __r: [__uint32_t; 64usize],
pub __fpscr: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_vfp_state"][::std::mem::size_of::<__darwin_arm_vfp_state>() - 260usize];
["Alignment of __darwin_arm_vfp_state"]
[::std::mem::align_of::<__darwin_arm_vfp_state>() - 4usize];
["Offset of field: __darwin_arm_vfp_state::__r"]
[::std::mem::offset_of!(__darwin_arm_vfp_state, __r) - 0usize];
["Offset of field: __darwin_arm_vfp_state::__fpscr"]
[::std::mem::offset_of!(__darwin_arm_vfp_state, __fpscr) - 256usize];
};
impl Default for __darwin_arm_vfp_state {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_neon_state64 {
pub __v: [__uint128_t; 32usize],
pub __fpsr: __uint32_t,
pub __fpcr: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_neon_state64"]
[::std::mem::size_of::<__darwin_arm_neon_state64>() - 528usize];
["Alignment of __darwin_arm_neon_state64"]
[::std::mem::align_of::<__darwin_arm_neon_state64>() - 16usize];
["Offset of field: __darwin_arm_neon_state64::__v"]
[::std::mem::offset_of!(__darwin_arm_neon_state64, __v) - 0usize];
["Offset of field: __darwin_arm_neon_state64::__fpsr"]
[::std::mem::offset_of!(__darwin_arm_neon_state64, __fpsr) - 512usize];
["Offset of field: __darwin_arm_neon_state64::__fpcr"]
[::std::mem::offset_of!(__darwin_arm_neon_state64, __fpcr) - 516usize];
};
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_neon_state {
pub __v: [__uint128_t; 16usize],
pub __fpsr: __uint32_t,
pub __fpcr: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_neon_state"]
[::std::mem::size_of::<__darwin_arm_neon_state>() - 272usize];
["Alignment of __darwin_arm_neon_state"]
[::std::mem::align_of::<__darwin_arm_neon_state>() - 16usize];
["Offset of field: __darwin_arm_neon_state::__v"]
[::std::mem::offset_of!(__darwin_arm_neon_state, __v) - 0usize];
["Offset of field: __darwin_arm_neon_state::__fpsr"]
[::std::mem::offset_of!(__darwin_arm_neon_state, __fpsr) - 256usize];
["Offset of field: __darwin_arm_neon_state::__fpcr"]
[::std::mem::offset_of!(__darwin_arm_neon_state, __fpcr) - 260usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __arm_pagein_state {
pub __pagein_error: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __arm_pagein_state"][::std::mem::size_of::<__arm_pagein_state>() - 4usize];
["Alignment of __arm_pagein_state"][::std::mem::align_of::<__arm_pagein_state>() - 4usize];
["Offset of field: __arm_pagein_state::__pagein_error"]
[::std::mem::offset_of!(__arm_pagein_state, __pagein_error) - 0usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_sme_state {
pub __svcr: __uint64_t,
pub __tpidr2_el0: __uint64_t,
pub __svl_b: __uint16_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_sme_state"][::std::mem::size_of::<__darwin_arm_sme_state>() - 24usize];
["Alignment of __darwin_arm_sme_state"]
[::std::mem::align_of::<__darwin_arm_sme_state>() - 8usize];
["Offset of field: __darwin_arm_sme_state::__svcr"]
[::std::mem::offset_of!(__darwin_arm_sme_state, __svcr) - 0usize];
["Offset of field: __darwin_arm_sme_state::__tpidr2_el0"]
[::std::mem::offset_of!(__darwin_arm_sme_state, __tpidr2_el0) - 8usize];
["Offset of field: __darwin_arm_sme_state::__svl_b"]
[::std::mem::offset_of!(__darwin_arm_sme_state, __svl_b) - 16usize];
};
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_sve_z_state {
pub __z: [[::std::ffi::c_char; 256usize]; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_sve_z_state"]
[::std::mem::size_of::<__darwin_arm_sve_z_state>() - 4096usize];
["Alignment of __darwin_arm_sve_z_state"]
[::std::mem::align_of::<__darwin_arm_sve_z_state>() - 4usize];
["Offset of field: __darwin_arm_sve_z_state::__z"]
[::std::mem::offset_of!(__darwin_arm_sve_z_state, __z) - 0usize];
};
impl Default for __darwin_arm_sve_z_state {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_sve_p_state {
pub __p: [[::std::ffi::c_char; 32usize]; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_sve_p_state"]
[::std::mem::size_of::<__darwin_arm_sve_p_state>() - 512usize];
["Alignment of __darwin_arm_sve_p_state"]
[::std::mem::align_of::<__darwin_arm_sve_p_state>() - 4usize];
["Offset of field: __darwin_arm_sve_p_state::__p"]
[::std::mem::offset_of!(__darwin_arm_sve_p_state, __p) - 0usize];
};
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_sme_za_state {
pub __za: [::std::ffi::c_char; 4096usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_sme_za_state"]
[::std::mem::size_of::<__darwin_arm_sme_za_state>() - 4096usize];
["Alignment of __darwin_arm_sme_za_state"]
[::std::mem::align_of::<__darwin_arm_sme_za_state>() - 4usize];
["Offset of field: __darwin_arm_sme_za_state::__za"]
[::std::mem::offset_of!(__darwin_arm_sme_za_state, __za) - 0usize];
};
impl Default for __darwin_arm_sme_za_state {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_sme2_state {
pub __zt0: [::std::ffi::c_char; 64usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_sme2_state"][::std::mem::size_of::<__darwin_arm_sme2_state>() - 64usize];
["Alignment of __darwin_arm_sme2_state"]
[::std::mem::align_of::<__darwin_arm_sme2_state>() - 4usize];
["Offset of field: __darwin_arm_sme2_state::__zt0"]
[::std::mem::offset_of!(__darwin_arm_sme2_state, __zt0) - 0usize];
};
impl Default for __darwin_arm_sme2_state {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __arm_legacy_debug_state {
pub __bvr: [__uint32_t; 16usize],
pub __bcr: [__uint32_t; 16usize],
pub __wvr: [__uint32_t; 16usize],
pub __wcr: [__uint32_t; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __arm_legacy_debug_state"]
[::std::mem::size_of::<__arm_legacy_debug_state>() - 256usize];
["Alignment of __arm_legacy_debug_state"]
[::std::mem::align_of::<__arm_legacy_debug_state>() - 4usize];
["Offset of field: __arm_legacy_debug_state::__bvr"]
[::std::mem::offset_of!(__arm_legacy_debug_state, __bvr) - 0usize];
["Offset of field: __arm_legacy_debug_state::__bcr"]
[::std::mem::offset_of!(__arm_legacy_debug_state, __bcr) - 64usize];
["Offset of field: __arm_legacy_debug_state::__wvr"]
[::std::mem::offset_of!(__arm_legacy_debug_state, __wvr) - 128usize];
["Offset of field: __arm_legacy_debug_state::__wcr"]
[::std::mem::offset_of!(__arm_legacy_debug_state, __wcr) - 192usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_debug_state32 {
pub __bvr: [__uint32_t; 16usize],
pub __bcr: [__uint32_t; 16usize],
pub __wvr: [__uint32_t; 16usize],
pub __wcr: [__uint32_t; 16usize],
pub __mdscr_el1: __uint64_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_debug_state32"]
[::std::mem::size_of::<__darwin_arm_debug_state32>() - 264usize];
["Alignment of __darwin_arm_debug_state32"]
[::std::mem::align_of::<__darwin_arm_debug_state32>() - 8usize];
["Offset of field: __darwin_arm_debug_state32::__bvr"]
[::std::mem::offset_of!(__darwin_arm_debug_state32, __bvr) - 0usize];
["Offset of field: __darwin_arm_debug_state32::__bcr"]
[::std::mem::offset_of!(__darwin_arm_debug_state32, __bcr) - 64usize];
["Offset of field: __darwin_arm_debug_state32::__wvr"]
[::std::mem::offset_of!(__darwin_arm_debug_state32, __wvr) - 128usize];
["Offset of field: __darwin_arm_debug_state32::__wcr"]
[::std::mem::offset_of!(__darwin_arm_debug_state32, __wcr) - 192usize];
["Offset of field: __darwin_arm_debug_state32::__mdscr_el1"]
[::std::mem::offset_of!(__darwin_arm_debug_state32, __mdscr_el1) - 256usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_debug_state64 {
pub __bvr: [__uint64_t; 16usize],
pub __bcr: [__uint64_t; 16usize],
pub __wvr: [__uint64_t; 16usize],
pub __wcr: [__uint64_t; 16usize],
pub __mdscr_el1: __uint64_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_debug_state64"]
[::std::mem::size_of::<__darwin_arm_debug_state64>() - 520usize];
["Alignment of __darwin_arm_debug_state64"]
[::std::mem::align_of::<__darwin_arm_debug_state64>() - 8usize];
["Offset of field: __darwin_arm_debug_state64::__bvr"]
[::std::mem::offset_of!(__darwin_arm_debug_state64, __bvr) - 0usize];
["Offset of field: __darwin_arm_debug_state64::__bcr"]
[::std::mem::offset_of!(__darwin_arm_debug_state64, __bcr) - 128usize];
["Offset of field: __darwin_arm_debug_state64::__wvr"]
[::std::mem::offset_of!(__darwin_arm_debug_state64, __wvr) - 256usize];
["Offset of field: __darwin_arm_debug_state64::__wcr"]
[::std::mem::offset_of!(__darwin_arm_debug_state64, __wcr) - 384usize];
["Offset of field: __darwin_arm_debug_state64::__mdscr_el1"]
[::std::mem::offset_of!(__darwin_arm_debug_state64, __mdscr_el1) - 512usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_cpmu_state64 {
pub __ctrs: [__uint64_t; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_cpmu_state64"]
[::std::mem::size_of::<__darwin_arm_cpmu_state64>() - 128usize];
["Alignment of __darwin_arm_cpmu_state64"]
[::std::mem::align_of::<__darwin_arm_cpmu_state64>() - 8usize];
["Offset of field: __darwin_arm_cpmu_state64::__ctrs"]
[::std::mem::offset_of!(__darwin_arm_cpmu_state64, __ctrs) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext32 {
pub __es: __darwin_arm_exception_state,
pub __ss: __darwin_arm_thread_state,
pub __fs: __darwin_arm_vfp_state,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_mcontext32"][::std::mem::size_of::<__darwin_mcontext32>() - 340usize];
["Alignment of __darwin_mcontext32"][::std::mem::align_of::<__darwin_mcontext32>() - 4usize];
["Offset of field: __darwin_mcontext32::__es"]
[::std::mem::offset_of!(__darwin_mcontext32, __es) - 0usize];
["Offset of field: __darwin_mcontext32::__ss"]
[::std::mem::offset_of!(__darwin_mcontext32, __ss) - 12usize];
["Offset of field: __darwin_mcontext32::__fs"]
[::std::mem::offset_of!(__darwin_mcontext32, __fs) - 80usize];
};
impl Default for __darwin_mcontext32 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_mcontext64 {
pub __es: __darwin_arm_exception_state64,
pub __ss: __darwin_arm_thread_state64,
pub __ns: __darwin_arm_neon_state64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_mcontext64"][::std::mem::size_of::<__darwin_mcontext64>() - 816usize];
["Alignment of __darwin_mcontext64"][::std::mem::align_of::<__darwin_mcontext64>() - 16usize];
["Offset of field: __darwin_mcontext64::__es"]
[::std::mem::offset_of!(__darwin_mcontext64, __es) - 0usize];
["Offset of field: __darwin_mcontext64::__ss"]
[::std::mem::offset_of!(__darwin_mcontext64, __ss) - 16usize];
["Offset of field: __darwin_mcontext64::__ns"]
[::std::mem::offset_of!(__darwin_mcontext64, __ns) - 288usize];
};
pub type mcontext_t = *mut __darwin_mcontext64;
pub type pthread_attr_t = __darwin_pthread_attr_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_sigaltstack {
pub ss_sp: *mut ::std::ffi::c_void,
pub ss_size: __darwin_size_t,
pub ss_flags: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_sigaltstack"][::std::mem::size_of::<__darwin_sigaltstack>() - 24usize];
["Alignment of __darwin_sigaltstack"][::std::mem::align_of::<__darwin_sigaltstack>() - 8usize];
["Offset of field: __darwin_sigaltstack::ss_sp"]
[::std::mem::offset_of!(__darwin_sigaltstack, ss_sp) - 0usize];
["Offset of field: __darwin_sigaltstack::ss_size"]
[::std::mem::offset_of!(__darwin_sigaltstack, ss_size) - 8usize];
["Offset of field: __darwin_sigaltstack::ss_flags"]
[::std::mem::offset_of!(__darwin_sigaltstack, ss_flags) - 16usize];
};
impl Default for __darwin_sigaltstack {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type stack_t = __darwin_sigaltstack;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_ucontext {
pub uc_onstack: ::std::ffi::c_int,
pub uc_sigmask: __darwin_sigset_t,
pub uc_stack: __darwin_sigaltstack,
pub uc_link: *mut __darwin_ucontext,
pub uc_mcsize: __darwin_size_t,
pub uc_mcontext: *mut __darwin_mcontext64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_ucontext"][::std::mem::size_of::<__darwin_ucontext>() - 56usize];
["Alignment of __darwin_ucontext"][::std::mem::align_of::<__darwin_ucontext>() - 8usize];
["Offset of field: __darwin_ucontext::uc_onstack"]
[::std::mem::offset_of!(__darwin_ucontext, uc_onstack) - 0usize];
["Offset of field: __darwin_ucontext::uc_sigmask"]
[::std::mem::offset_of!(__darwin_ucontext, uc_sigmask) - 4usize];
["Offset of field: __darwin_ucontext::uc_stack"]
[::std::mem::offset_of!(__darwin_ucontext, uc_stack) - 8usize];
["Offset of field: __darwin_ucontext::uc_link"]
[::std::mem::offset_of!(__darwin_ucontext, uc_link) - 32usize];
["Offset of field: __darwin_ucontext::uc_mcsize"]
[::std::mem::offset_of!(__darwin_ucontext, uc_mcsize) - 40usize];
["Offset of field: __darwin_ucontext::uc_mcontext"]
[::std::mem::offset_of!(__darwin_ucontext, uc_mcontext) - 48usize];
};
impl Default for __darwin_ucontext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type ucontext_t = __darwin_ucontext;
pub type sigset_t = __darwin_sigset_t;
pub type uid_t = __darwin_uid_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub union sigval {
pub sival_int: ::std::ffi::c_int,
pub sival_ptr: *mut ::std::ffi::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigval"][::std::mem::size_of::<sigval>() - 8usize];
["Alignment of sigval"][::std::mem::align_of::<sigval>() - 8usize];
["Offset of field: sigval::sival_int"][::std::mem::offset_of!(sigval, sival_int) - 0usize];
["Offset of field: sigval::sival_ptr"][::std::mem::offset_of!(sigval, sival_ptr) - 0usize];
};
impl Default for sigval {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigevent {
pub sigev_notify: ::std::ffi::c_int,
pub sigev_signo: ::std::ffi::c_int,
pub sigev_value: sigval,
pub sigev_notify_function: ::std::option::Option<unsafe extern "C" fn(arg1: sigval)>,
pub sigev_notify_attributes: *mut pthread_attr_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigevent"][::std::mem::size_of::<sigevent>() - 32usize];
["Alignment of sigevent"][::std::mem::align_of::<sigevent>() - 8usize];
["Offset of field: sigevent::sigev_notify"]
[::std::mem::offset_of!(sigevent, sigev_notify) - 0usize];
["Offset of field: sigevent::sigev_signo"]
[::std::mem::offset_of!(sigevent, sigev_signo) - 4usize];
["Offset of field: sigevent::sigev_value"]
[::std::mem::offset_of!(sigevent, sigev_value) - 8usize];
["Offset of field: sigevent::sigev_notify_function"]
[::std::mem::offset_of!(sigevent, sigev_notify_function) - 16usize];
["Offset of field: sigevent::sigev_notify_attributes"]
[::std::mem::offset_of!(sigevent, sigev_notify_attributes) - 24usize];
};
impl Default for sigevent {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __siginfo {
pub si_signo: ::std::ffi::c_int,
pub si_errno: ::std::ffi::c_int,
pub si_code: ::std::ffi::c_int,
pub si_pid: pid_t,
pub si_uid: uid_t,
pub si_status: ::std::ffi::c_int,
pub si_addr: *mut ::std::ffi::c_void,
pub si_value: sigval,
pub si_band: ::std::ffi::c_long,
pub __pad: [::std::ffi::c_ulong; 7usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __siginfo"][::std::mem::size_of::<__siginfo>() - 104usize];
["Alignment of __siginfo"][::std::mem::align_of::<__siginfo>() - 8usize];
["Offset of field: __siginfo::si_signo"][::std::mem::offset_of!(__siginfo, si_signo) - 0usize];
["Offset of field: __siginfo::si_errno"][::std::mem::offset_of!(__siginfo, si_errno) - 4usize];
["Offset of field: __siginfo::si_code"][::std::mem::offset_of!(__siginfo, si_code) - 8usize];
["Offset of field: __siginfo::si_pid"][::std::mem::offset_of!(__siginfo, si_pid) - 12usize];
["Offset of field: __siginfo::si_uid"][::std::mem::offset_of!(__siginfo, si_uid) - 16usize];
["Offset of field: __siginfo::si_status"]
[::std::mem::offset_of!(__siginfo, si_status) - 20usize];
["Offset of field: __siginfo::si_addr"][::std::mem::offset_of!(__siginfo, si_addr) - 24usize];
["Offset of field: __siginfo::si_value"][::std::mem::offset_of!(__siginfo, si_value) - 32usize];
["Offset of field: __siginfo::si_band"][::std::mem::offset_of!(__siginfo, si_band) - 40usize];
["Offset of field: __siginfo::__pad"][::std::mem::offset_of!(__siginfo, __pad) - 48usize];
};
impl Default for __siginfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type siginfo_t = __siginfo;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __sigaction_u {
pub __sa_handler: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::ffi::c_int)>,
pub __sa_sigaction: ::std::option::Option<
unsafe extern "C" fn(
arg1: ::std::ffi::c_int,
arg2: *mut __siginfo,
arg3: *mut ::std::ffi::c_void,
),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __sigaction_u"][::std::mem::size_of::<__sigaction_u>() - 8usize];
["Alignment of __sigaction_u"][::std::mem::align_of::<__sigaction_u>() - 8usize];
["Offset of field: __sigaction_u::__sa_handler"]
[::std::mem::offset_of!(__sigaction_u, __sa_handler) - 0usize];
["Offset of field: __sigaction_u::__sa_sigaction"]
[::std::mem::offset_of!(__sigaction_u, __sa_sigaction) - 0usize];
};
impl Default for __sigaction_u {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __sigaction {
pub __sigaction_u: __sigaction_u,
pub sa_tramp: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::ffi::c_void,
arg2: ::std::ffi::c_int,
arg3: ::std::ffi::c_int,
arg4: *mut siginfo_t,
arg5: *mut ::std::ffi::c_void,
),
>,
pub sa_mask: sigset_t,
pub sa_flags: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __sigaction"][::std::mem::size_of::<__sigaction>() - 24usize];
["Alignment of __sigaction"][::std::mem::align_of::<__sigaction>() - 8usize];
["Offset of field: __sigaction::__sigaction_u"]
[::std::mem::offset_of!(__sigaction, __sigaction_u) - 0usize];
["Offset of field: __sigaction::sa_tramp"]
[::std::mem::offset_of!(__sigaction, sa_tramp) - 8usize];
["Offset of field: __sigaction::sa_mask"]
[::std::mem::offset_of!(__sigaction, sa_mask) - 16usize];
["Offset of field: __sigaction::sa_flags"]
[::std::mem::offset_of!(__sigaction, sa_flags) - 20usize];
};
impl Default for __sigaction {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigaction {
pub __sigaction_u: __sigaction_u,
pub sa_mask: sigset_t,
pub sa_flags: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigaction"][::std::mem::size_of::<sigaction>() - 16usize];
["Alignment of sigaction"][::std::mem::align_of::<sigaction>() - 8usize];
["Offset of field: sigaction::__sigaction_u"]
[::std::mem::offset_of!(sigaction, __sigaction_u) - 0usize];
["Offset of field: sigaction::sa_mask"][::std::mem::offset_of!(sigaction, sa_mask) - 8usize];
["Offset of field: sigaction::sa_flags"][::std::mem::offset_of!(sigaction, sa_flags) - 12usize];
};
impl Default for sigaction {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type sig_t = ::std::option::Option<unsafe extern "C" fn(arg1: ::std::ffi::c_int)>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct sigvec {
pub sv_handler: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::ffi::c_int)>,
pub sv_mask: ::std::ffi::c_int,
pub sv_flags: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigvec"][::std::mem::size_of::<sigvec>() - 16usize];
["Alignment of sigvec"][::std::mem::align_of::<sigvec>() - 8usize];
["Offset of field: sigvec::sv_handler"][::std::mem::offset_of!(sigvec, sv_handler) - 0usize];
["Offset of field: sigvec::sv_mask"][::std::mem::offset_of!(sigvec, sv_mask) - 8usize];
["Offset of field: sigvec::sv_flags"][::std::mem::offset_of!(sigvec, sv_flags) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sigstack {
pub ss_sp: *mut ::std::ffi::c_char,
pub ss_onstack: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigstack"][::std::mem::size_of::<sigstack>() - 16usize];
["Alignment of sigstack"][::std::mem::align_of::<sigstack>() - 8usize];
["Offset of field: sigstack::ss_sp"][::std::mem::offset_of!(sigstack, ss_sp) - 0usize];
["Offset of field: sigstack::ss_onstack"]
[::std::mem::offset_of!(sigstack, ss_onstack) - 8usize];
};
impl Default for sigstack {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
unsafe extern "C" {
pub fn signal(
arg1: ::std::ffi::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::ffi::c_int)>,
) -> ::std::option::Option<
unsafe extern "C" fn(
arg1: ::std::ffi::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::ffi::c_int)>,
),
>;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct timeval {
pub tv_sec: __darwin_time_t,
pub tv_usec: __darwin_suseconds_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of timeval"][::std::mem::size_of::<timeval>() - 16usize];
["Alignment of timeval"][::std::mem::align_of::<timeval>() - 8usize];
["Offset of field: timeval::tv_sec"][::std::mem::offset_of!(timeval, tv_sec) - 0usize];
["Offset of field: timeval::tv_usec"][::std::mem::offset_of!(timeval, tv_usec) - 8usize];
};
pub type rlim_t = __uint64_t;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage {
pub ru_utime: timeval,
pub ru_stime: timeval,
pub ru_maxrss: ::std::ffi::c_long,
pub ru_ixrss: ::std::ffi::c_long,
pub ru_idrss: ::std::ffi::c_long,
pub ru_isrss: ::std::ffi::c_long,
pub ru_minflt: ::std::ffi::c_long,
pub ru_majflt: ::std::ffi::c_long,
pub ru_nswap: ::std::ffi::c_long,
pub ru_inblock: ::std::ffi::c_long,
pub ru_oublock: ::std::ffi::c_long,
pub ru_msgsnd: ::std::ffi::c_long,
pub ru_msgrcv: ::std::ffi::c_long,
pub ru_nsignals: ::std::ffi::c_long,
pub ru_nvcsw: ::std::ffi::c_long,
pub ru_nivcsw: ::std::ffi::c_long,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage"][::std::mem::size_of::<rusage>() - 144usize];
["Alignment of rusage"][::std::mem::align_of::<rusage>() - 8usize];
["Offset of field: rusage::ru_utime"][::std::mem::offset_of!(rusage, ru_utime) - 0usize];
["Offset of field: rusage::ru_stime"][::std::mem::offset_of!(rusage, ru_stime) - 16usize];
["Offset of field: rusage::ru_maxrss"][::std::mem::offset_of!(rusage, ru_maxrss) - 32usize];
["Offset of field: rusage::ru_ixrss"][::std::mem::offset_of!(rusage, ru_ixrss) - 40usize];
["Offset of field: rusage::ru_idrss"][::std::mem::offset_of!(rusage, ru_idrss) - 48usize];
["Offset of field: rusage::ru_isrss"][::std::mem::offset_of!(rusage, ru_isrss) - 56usize];
["Offset of field: rusage::ru_minflt"][::std::mem::offset_of!(rusage, ru_minflt) - 64usize];
["Offset of field: rusage::ru_majflt"][::std::mem::offset_of!(rusage, ru_majflt) - 72usize];
["Offset of field: rusage::ru_nswap"][::std::mem::offset_of!(rusage, ru_nswap) - 80usize];
["Offset of field: rusage::ru_inblock"][::std::mem::offset_of!(rusage, ru_inblock) - 88usize];
["Offset of field: rusage::ru_oublock"][::std::mem::offset_of!(rusage, ru_oublock) - 96usize];
["Offset of field: rusage::ru_msgsnd"][::std::mem::offset_of!(rusage, ru_msgsnd) - 104usize];
["Offset of field: rusage::ru_msgrcv"][::std::mem::offset_of!(rusage, ru_msgrcv) - 112usize];
["Offset of field: rusage::ru_nsignals"]
[::std::mem::offset_of!(rusage, ru_nsignals) - 120usize];
["Offset of field: rusage::ru_nvcsw"][::std::mem::offset_of!(rusage, ru_nvcsw) - 128usize];
["Offset of field: rusage::ru_nivcsw"][::std::mem::offset_of!(rusage, ru_nivcsw) - 136usize];
};
pub type rusage_info_t = *mut ::std::ffi::c_void;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v0 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage_info_v0"][::std::mem::size_of::<rusage_info_v0>() - 96usize];
["Alignment of rusage_info_v0"][::std::mem::align_of::<rusage_info_v0>() - 8usize];
["Offset of field: rusage_info_v0::ri_uuid"]
[::std::mem::offset_of!(rusage_info_v0, ri_uuid) - 0usize];
["Offset of field: rusage_info_v0::ri_user_time"]
[::std::mem::offset_of!(rusage_info_v0, ri_user_time) - 16usize];
["Offset of field: rusage_info_v0::ri_system_time"]
[::std::mem::offset_of!(rusage_info_v0, ri_system_time) - 24usize];
["Offset of field: rusage_info_v0::ri_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v0, ri_pkg_idle_wkups) - 32usize];
["Offset of field: rusage_info_v0::ri_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v0, ri_interrupt_wkups) - 40usize];
["Offset of field: rusage_info_v0::ri_pageins"]
[::std::mem::offset_of!(rusage_info_v0, ri_pageins) - 48usize];
["Offset of field: rusage_info_v0::ri_wired_size"]
[::std::mem::offset_of!(rusage_info_v0, ri_wired_size) - 56usize];
["Offset of field: rusage_info_v0::ri_resident_size"]
[::std::mem::offset_of!(rusage_info_v0, ri_resident_size) - 64usize];
["Offset of field: rusage_info_v0::ri_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v0, ri_phys_footprint) - 72usize];
["Offset of field: rusage_info_v0::ri_proc_start_abstime"]
[::std::mem::offset_of!(rusage_info_v0, ri_proc_start_abstime) - 80usize];
["Offset of field: rusage_info_v0::ri_proc_exit_abstime"]
[::std::mem::offset_of!(rusage_info_v0, ri_proc_exit_abstime) - 88usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v1 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage_info_v1"][::std::mem::size_of::<rusage_info_v1>() - 144usize];
["Alignment of rusage_info_v1"][::std::mem::align_of::<rusage_info_v1>() - 8usize];
["Offset of field: rusage_info_v1::ri_uuid"]
[::std::mem::offset_of!(rusage_info_v1, ri_uuid) - 0usize];
["Offset of field: rusage_info_v1::ri_user_time"]
[::std::mem::offset_of!(rusage_info_v1, ri_user_time) - 16usize];
["Offset of field: rusage_info_v1::ri_system_time"]
[::std::mem::offset_of!(rusage_info_v1, ri_system_time) - 24usize];
["Offset of field: rusage_info_v1::ri_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v1, ri_pkg_idle_wkups) - 32usize];
["Offset of field: rusage_info_v1::ri_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v1, ri_interrupt_wkups) - 40usize];
["Offset of field: rusage_info_v1::ri_pageins"]
[::std::mem::offset_of!(rusage_info_v1, ri_pageins) - 48usize];
["Offset of field: rusage_info_v1::ri_wired_size"]
[::std::mem::offset_of!(rusage_info_v1, ri_wired_size) - 56usize];
["Offset of field: rusage_info_v1::ri_resident_size"]
[::std::mem::offset_of!(rusage_info_v1, ri_resident_size) - 64usize];
["Offset of field: rusage_info_v1::ri_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v1, ri_phys_footprint) - 72usize];
["Offset of field: rusage_info_v1::ri_proc_start_abstime"]
[::std::mem::offset_of!(rusage_info_v1, ri_proc_start_abstime) - 80usize];
["Offset of field: rusage_info_v1::ri_proc_exit_abstime"]
[::std::mem::offset_of!(rusage_info_v1, ri_proc_exit_abstime) - 88usize];
["Offset of field: rusage_info_v1::ri_child_user_time"]
[::std::mem::offset_of!(rusage_info_v1, ri_child_user_time) - 96usize];
["Offset of field: rusage_info_v1::ri_child_system_time"]
[::std::mem::offset_of!(rusage_info_v1, ri_child_system_time) - 104usize];
["Offset of field: rusage_info_v1::ri_child_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v1, ri_child_pkg_idle_wkups) - 112usize];
["Offset of field: rusage_info_v1::ri_child_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v1, ri_child_interrupt_wkups) - 120usize];
["Offset of field: rusage_info_v1::ri_child_pageins"]
[::std::mem::offset_of!(rusage_info_v1, ri_child_pageins) - 128usize];
["Offset of field: rusage_info_v1::ri_child_elapsed_abstime"]
[::std::mem::offset_of!(rusage_info_v1, ri_child_elapsed_abstime) - 136usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v2 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage_info_v2"][::std::mem::size_of::<rusage_info_v2>() - 160usize];
["Alignment of rusage_info_v2"][::std::mem::align_of::<rusage_info_v2>() - 8usize];
["Offset of field: rusage_info_v2::ri_uuid"]
[::std::mem::offset_of!(rusage_info_v2, ri_uuid) - 0usize];
["Offset of field: rusage_info_v2::ri_user_time"]
[::std::mem::offset_of!(rusage_info_v2, ri_user_time) - 16usize];
["Offset of field: rusage_info_v2::ri_system_time"]
[::std::mem::offset_of!(rusage_info_v2, ri_system_time) - 24usize];
["Offset of field: rusage_info_v2::ri_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v2, ri_pkg_idle_wkups) - 32usize];
["Offset of field: rusage_info_v2::ri_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v2, ri_interrupt_wkups) - 40usize];
["Offset of field: rusage_info_v2::ri_pageins"]
[::std::mem::offset_of!(rusage_info_v2, ri_pageins) - 48usize];
["Offset of field: rusage_info_v2::ri_wired_size"]
[::std::mem::offset_of!(rusage_info_v2, ri_wired_size) - 56usize];
["Offset of field: rusage_info_v2::ri_resident_size"]
[::std::mem::offset_of!(rusage_info_v2, ri_resident_size) - 64usize];
["Offset of field: rusage_info_v2::ri_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v2, ri_phys_footprint) - 72usize];
["Offset of field: rusage_info_v2::ri_proc_start_abstime"]
[::std::mem::offset_of!(rusage_info_v2, ri_proc_start_abstime) - 80usize];
["Offset of field: rusage_info_v2::ri_proc_exit_abstime"]
[::std::mem::offset_of!(rusage_info_v2, ri_proc_exit_abstime) - 88usize];
["Offset of field: rusage_info_v2::ri_child_user_time"]
[::std::mem::offset_of!(rusage_info_v2, ri_child_user_time) - 96usize];
["Offset of field: rusage_info_v2::ri_child_system_time"]
[::std::mem::offset_of!(rusage_info_v2, ri_child_system_time) - 104usize];
["Offset of field: rusage_info_v2::ri_child_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v2, ri_child_pkg_idle_wkups) - 112usize];
["Offset of field: rusage_info_v2::ri_child_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v2, ri_child_interrupt_wkups) - 120usize];
["Offset of field: rusage_info_v2::ri_child_pageins"]
[::std::mem::offset_of!(rusage_info_v2, ri_child_pageins) - 128usize];
["Offset of field: rusage_info_v2::ri_child_elapsed_abstime"]
[::std::mem::offset_of!(rusage_info_v2, ri_child_elapsed_abstime) - 136usize];
["Offset of field: rusage_info_v2::ri_diskio_bytesread"]
[::std::mem::offset_of!(rusage_info_v2, ri_diskio_bytesread) - 144usize];
["Offset of field: rusage_info_v2::ri_diskio_byteswritten"]
[::std::mem::offset_of!(rusage_info_v2, ri_diskio_byteswritten) - 152usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v3 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage_info_v3"][::std::mem::size_of::<rusage_info_v3>() - 232usize];
["Alignment of rusage_info_v3"][::std::mem::align_of::<rusage_info_v3>() - 8usize];
["Offset of field: rusage_info_v3::ri_uuid"]
[::std::mem::offset_of!(rusage_info_v3, ri_uuid) - 0usize];
["Offset of field: rusage_info_v3::ri_user_time"]
[::std::mem::offset_of!(rusage_info_v3, ri_user_time) - 16usize];
["Offset of field: rusage_info_v3::ri_system_time"]
[::std::mem::offset_of!(rusage_info_v3, ri_system_time) - 24usize];
["Offset of field: rusage_info_v3::ri_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v3, ri_pkg_idle_wkups) - 32usize];
["Offset of field: rusage_info_v3::ri_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v3, ri_interrupt_wkups) - 40usize];
["Offset of field: rusage_info_v3::ri_pageins"]
[::std::mem::offset_of!(rusage_info_v3, ri_pageins) - 48usize];
["Offset of field: rusage_info_v3::ri_wired_size"]
[::std::mem::offset_of!(rusage_info_v3, ri_wired_size) - 56usize];
["Offset of field: rusage_info_v3::ri_resident_size"]
[::std::mem::offset_of!(rusage_info_v3, ri_resident_size) - 64usize];
["Offset of field: rusage_info_v3::ri_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v3, ri_phys_footprint) - 72usize];
["Offset of field: rusage_info_v3::ri_proc_start_abstime"]
[::std::mem::offset_of!(rusage_info_v3, ri_proc_start_abstime) - 80usize];
["Offset of field: rusage_info_v3::ri_proc_exit_abstime"]
[::std::mem::offset_of!(rusage_info_v3, ri_proc_exit_abstime) - 88usize];
["Offset of field: rusage_info_v3::ri_child_user_time"]
[::std::mem::offset_of!(rusage_info_v3, ri_child_user_time) - 96usize];
["Offset of field: rusage_info_v3::ri_child_system_time"]
[::std::mem::offset_of!(rusage_info_v3, ri_child_system_time) - 104usize];
["Offset of field: rusage_info_v3::ri_child_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v3, ri_child_pkg_idle_wkups) - 112usize];
["Offset of field: rusage_info_v3::ri_child_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v3, ri_child_interrupt_wkups) - 120usize];
["Offset of field: rusage_info_v3::ri_child_pageins"]
[::std::mem::offset_of!(rusage_info_v3, ri_child_pageins) - 128usize];
["Offset of field: rusage_info_v3::ri_child_elapsed_abstime"]
[::std::mem::offset_of!(rusage_info_v3, ri_child_elapsed_abstime) - 136usize];
["Offset of field: rusage_info_v3::ri_diskio_bytesread"]
[::std::mem::offset_of!(rusage_info_v3, ri_diskio_bytesread) - 144usize];
["Offset of field: rusage_info_v3::ri_diskio_byteswritten"]
[::std::mem::offset_of!(rusage_info_v3, ri_diskio_byteswritten) - 152usize];
["Offset of field: rusage_info_v3::ri_cpu_time_qos_default"]
[::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_default) - 160usize];
["Offset of field: rusage_info_v3::ri_cpu_time_qos_maintenance"]
[::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_maintenance) - 168usize];
["Offset of field: rusage_info_v3::ri_cpu_time_qos_background"]
[::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_background) - 176usize];
["Offset of field: rusage_info_v3::ri_cpu_time_qos_utility"]
[::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_utility) - 184usize];
["Offset of field: rusage_info_v3::ri_cpu_time_qos_legacy"]
[::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_legacy) - 192usize];
["Offset of field: rusage_info_v3::ri_cpu_time_qos_user_initiated"]
[::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_user_initiated) - 200usize];
["Offset of field: rusage_info_v3::ri_cpu_time_qos_user_interactive"]
[::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_user_interactive) - 208usize];
["Offset of field: rusage_info_v3::ri_billed_system_time"]
[::std::mem::offset_of!(rusage_info_v3, ri_billed_system_time) - 216usize];
["Offset of field: rusage_info_v3::ri_serviced_system_time"]
[::std::mem::offset_of!(rusage_info_v3, ri_serviced_system_time) - 224usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v4 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
pub ri_logical_writes: u64,
pub ri_lifetime_max_phys_footprint: u64,
pub ri_instructions: u64,
pub ri_cycles: u64,
pub ri_billed_energy: u64,
pub ri_serviced_energy: u64,
pub ri_interval_max_phys_footprint: u64,
pub ri_runnable_time: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage_info_v4"][::std::mem::size_of::<rusage_info_v4>() - 296usize];
["Alignment of rusage_info_v4"][::std::mem::align_of::<rusage_info_v4>() - 8usize];
["Offset of field: rusage_info_v4::ri_uuid"]
[::std::mem::offset_of!(rusage_info_v4, ri_uuid) - 0usize];
["Offset of field: rusage_info_v4::ri_user_time"]
[::std::mem::offset_of!(rusage_info_v4, ri_user_time) - 16usize];
["Offset of field: rusage_info_v4::ri_system_time"]
[::std::mem::offset_of!(rusage_info_v4, ri_system_time) - 24usize];
["Offset of field: rusage_info_v4::ri_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v4, ri_pkg_idle_wkups) - 32usize];
["Offset of field: rusage_info_v4::ri_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v4, ri_interrupt_wkups) - 40usize];
["Offset of field: rusage_info_v4::ri_pageins"]
[::std::mem::offset_of!(rusage_info_v4, ri_pageins) - 48usize];
["Offset of field: rusage_info_v4::ri_wired_size"]
[::std::mem::offset_of!(rusage_info_v4, ri_wired_size) - 56usize];
["Offset of field: rusage_info_v4::ri_resident_size"]
[::std::mem::offset_of!(rusage_info_v4, ri_resident_size) - 64usize];
["Offset of field: rusage_info_v4::ri_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v4, ri_phys_footprint) - 72usize];
["Offset of field: rusage_info_v4::ri_proc_start_abstime"]
[::std::mem::offset_of!(rusage_info_v4, ri_proc_start_abstime) - 80usize];
["Offset of field: rusage_info_v4::ri_proc_exit_abstime"]
[::std::mem::offset_of!(rusage_info_v4, ri_proc_exit_abstime) - 88usize];
["Offset of field: rusage_info_v4::ri_child_user_time"]
[::std::mem::offset_of!(rusage_info_v4, ri_child_user_time) - 96usize];
["Offset of field: rusage_info_v4::ri_child_system_time"]
[::std::mem::offset_of!(rusage_info_v4, ri_child_system_time) - 104usize];
["Offset of field: rusage_info_v4::ri_child_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v4, ri_child_pkg_idle_wkups) - 112usize];
["Offset of field: rusage_info_v4::ri_child_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v4, ri_child_interrupt_wkups) - 120usize];
["Offset of field: rusage_info_v4::ri_child_pageins"]
[::std::mem::offset_of!(rusage_info_v4, ri_child_pageins) - 128usize];
["Offset of field: rusage_info_v4::ri_child_elapsed_abstime"]
[::std::mem::offset_of!(rusage_info_v4, ri_child_elapsed_abstime) - 136usize];
["Offset of field: rusage_info_v4::ri_diskio_bytesread"]
[::std::mem::offset_of!(rusage_info_v4, ri_diskio_bytesread) - 144usize];
["Offset of field: rusage_info_v4::ri_diskio_byteswritten"]
[::std::mem::offset_of!(rusage_info_v4, ri_diskio_byteswritten) - 152usize];
["Offset of field: rusage_info_v4::ri_cpu_time_qos_default"]
[::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_default) - 160usize];
["Offset of field: rusage_info_v4::ri_cpu_time_qos_maintenance"]
[::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_maintenance) - 168usize];
["Offset of field: rusage_info_v4::ri_cpu_time_qos_background"]
[::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_background) - 176usize];
["Offset of field: rusage_info_v4::ri_cpu_time_qos_utility"]
[::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_utility) - 184usize];
["Offset of field: rusage_info_v4::ri_cpu_time_qos_legacy"]
[::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_legacy) - 192usize];
["Offset of field: rusage_info_v4::ri_cpu_time_qos_user_initiated"]
[::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_user_initiated) - 200usize];
["Offset of field: rusage_info_v4::ri_cpu_time_qos_user_interactive"]
[::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_user_interactive) - 208usize];
["Offset of field: rusage_info_v4::ri_billed_system_time"]
[::std::mem::offset_of!(rusage_info_v4, ri_billed_system_time) - 216usize];
["Offset of field: rusage_info_v4::ri_serviced_system_time"]
[::std::mem::offset_of!(rusage_info_v4, ri_serviced_system_time) - 224usize];
["Offset of field: rusage_info_v4::ri_logical_writes"]
[::std::mem::offset_of!(rusage_info_v4, ri_logical_writes) - 232usize];
["Offset of field: rusage_info_v4::ri_lifetime_max_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v4, ri_lifetime_max_phys_footprint) - 240usize];
["Offset of field: rusage_info_v4::ri_instructions"]
[::std::mem::offset_of!(rusage_info_v4, ri_instructions) - 248usize];
["Offset of field: rusage_info_v4::ri_cycles"]
[::std::mem::offset_of!(rusage_info_v4, ri_cycles) - 256usize];
["Offset of field: rusage_info_v4::ri_billed_energy"]
[::std::mem::offset_of!(rusage_info_v4, ri_billed_energy) - 264usize];
["Offset of field: rusage_info_v4::ri_serviced_energy"]
[::std::mem::offset_of!(rusage_info_v4, ri_serviced_energy) - 272usize];
["Offset of field: rusage_info_v4::ri_interval_max_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v4, ri_interval_max_phys_footprint) - 280usize];
["Offset of field: rusage_info_v4::ri_runnable_time"]
[::std::mem::offset_of!(rusage_info_v4, ri_runnable_time) - 288usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v5 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
pub ri_logical_writes: u64,
pub ri_lifetime_max_phys_footprint: u64,
pub ri_instructions: u64,
pub ri_cycles: u64,
pub ri_billed_energy: u64,
pub ri_serviced_energy: u64,
pub ri_interval_max_phys_footprint: u64,
pub ri_runnable_time: u64,
pub ri_flags: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage_info_v5"][::std::mem::size_of::<rusage_info_v5>() - 304usize];
["Alignment of rusage_info_v5"][::std::mem::align_of::<rusage_info_v5>() - 8usize];
["Offset of field: rusage_info_v5::ri_uuid"]
[::std::mem::offset_of!(rusage_info_v5, ri_uuid) - 0usize];
["Offset of field: rusage_info_v5::ri_user_time"]
[::std::mem::offset_of!(rusage_info_v5, ri_user_time) - 16usize];
["Offset of field: rusage_info_v5::ri_system_time"]
[::std::mem::offset_of!(rusage_info_v5, ri_system_time) - 24usize];
["Offset of field: rusage_info_v5::ri_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v5, ri_pkg_idle_wkups) - 32usize];
["Offset of field: rusage_info_v5::ri_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v5, ri_interrupt_wkups) - 40usize];
["Offset of field: rusage_info_v5::ri_pageins"]
[::std::mem::offset_of!(rusage_info_v5, ri_pageins) - 48usize];
["Offset of field: rusage_info_v5::ri_wired_size"]
[::std::mem::offset_of!(rusage_info_v5, ri_wired_size) - 56usize];
["Offset of field: rusage_info_v5::ri_resident_size"]
[::std::mem::offset_of!(rusage_info_v5, ri_resident_size) - 64usize];
["Offset of field: rusage_info_v5::ri_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v5, ri_phys_footprint) - 72usize];
["Offset of field: rusage_info_v5::ri_proc_start_abstime"]
[::std::mem::offset_of!(rusage_info_v5, ri_proc_start_abstime) - 80usize];
["Offset of field: rusage_info_v5::ri_proc_exit_abstime"]
[::std::mem::offset_of!(rusage_info_v5, ri_proc_exit_abstime) - 88usize];
["Offset of field: rusage_info_v5::ri_child_user_time"]
[::std::mem::offset_of!(rusage_info_v5, ri_child_user_time) - 96usize];
["Offset of field: rusage_info_v5::ri_child_system_time"]
[::std::mem::offset_of!(rusage_info_v5, ri_child_system_time) - 104usize];
["Offset of field: rusage_info_v5::ri_child_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v5, ri_child_pkg_idle_wkups) - 112usize];
["Offset of field: rusage_info_v5::ri_child_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v5, ri_child_interrupt_wkups) - 120usize];
["Offset of field: rusage_info_v5::ri_child_pageins"]
[::std::mem::offset_of!(rusage_info_v5, ri_child_pageins) - 128usize];
["Offset of field: rusage_info_v5::ri_child_elapsed_abstime"]
[::std::mem::offset_of!(rusage_info_v5, ri_child_elapsed_abstime) - 136usize];
["Offset of field: rusage_info_v5::ri_diskio_bytesread"]
[::std::mem::offset_of!(rusage_info_v5, ri_diskio_bytesread) - 144usize];
["Offset of field: rusage_info_v5::ri_diskio_byteswritten"]
[::std::mem::offset_of!(rusage_info_v5, ri_diskio_byteswritten) - 152usize];
["Offset of field: rusage_info_v5::ri_cpu_time_qos_default"]
[::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_default) - 160usize];
["Offset of field: rusage_info_v5::ri_cpu_time_qos_maintenance"]
[::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_maintenance) - 168usize];
["Offset of field: rusage_info_v5::ri_cpu_time_qos_background"]
[::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_background) - 176usize];
["Offset of field: rusage_info_v5::ri_cpu_time_qos_utility"]
[::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_utility) - 184usize];
["Offset of field: rusage_info_v5::ri_cpu_time_qos_legacy"]
[::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_legacy) - 192usize];
["Offset of field: rusage_info_v5::ri_cpu_time_qos_user_initiated"]
[::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_user_initiated) - 200usize];
["Offset of field: rusage_info_v5::ri_cpu_time_qos_user_interactive"]
[::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_user_interactive) - 208usize];
["Offset of field: rusage_info_v5::ri_billed_system_time"]
[::std::mem::offset_of!(rusage_info_v5, ri_billed_system_time) - 216usize];
["Offset of field: rusage_info_v5::ri_serviced_system_time"]
[::std::mem::offset_of!(rusage_info_v5, ri_serviced_system_time) - 224usize];
["Offset of field: rusage_info_v5::ri_logical_writes"]
[::std::mem::offset_of!(rusage_info_v5, ri_logical_writes) - 232usize];
["Offset of field: rusage_info_v5::ri_lifetime_max_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v5, ri_lifetime_max_phys_footprint) - 240usize];
["Offset of field: rusage_info_v5::ri_instructions"]
[::std::mem::offset_of!(rusage_info_v5, ri_instructions) - 248usize];
["Offset of field: rusage_info_v5::ri_cycles"]
[::std::mem::offset_of!(rusage_info_v5, ri_cycles) - 256usize];
["Offset of field: rusage_info_v5::ri_billed_energy"]
[::std::mem::offset_of!(rusage_info_v5, ri_billed_energy) - 264usize];
["Offset of field: rusage_info_v5::ri_serviced_energy"]
[::std::mem::offset_of!(rusage_info_v5, ri_serviced_energy) - 272usize];
["Offset of field: rusage_info_v5::ri_interval_max_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v5, ri_interval_max_phys_footprint) - 280usize];
["Offset of field: rusage_info_v5::ri_runnable_time"]
[::std::mem::offset_of!(rusage_info_v5, ri_runnable_time) - 288usize];
["Offset of field: rusage_info_v5::ri_flags"]
[::std::mem::offset_of!(rusage_info_v5, ri_flags) - 296usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v6 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
pub ri_logical_writes: u64,
pub ri_lifetime_max_phys_footprint: u64,
pub ri_instructions: u64,
pub ri_cycles: u64,
pub ri_billed_energy: u64,
pub ri_serviced_energy: u64,
pub ri_interval_max_phys_footprint: u64,
pub ri_runnable_time: u64,
pub ri_flags: u64,
pub ri_user_ptime: u64,
pub ri_system_ptime: u64,
pub ri_pinstructions: u64,
pub ri_pcycles: u64,
pub ri_energy_nj: u64,
pub ri_penergy_nj: u64,
pub ri_secure_time_in_system: u64,
pub ri_secure_ptime_in_system: u64,
pub ri_neural_footprint: u64,
pub ri_lifetime_max_neural_footprint: u64,
pub ri_interval_max_neural_footprint: u64,
pub ri_reserved: [u64; 9usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage_info_v6"][::std::mem::size_of::<rusage_info_v6>() - 464usize];
["Alignment of rusage_info_v6"][::std::mem::align_of::<rusage_info_v6>() - 8usize];
["Offset of field: rusage_info_v6::ri_uuid"]
[::std::mem::offset_of!(rusage_info_v6, ri_uuid) - 0usize];
["Offset of field: rusage_info_v6::ri_user_time"]
[::std::mem::offset_of!(rusage_info_v6, ri_user_time) - 16usize];
["Offset of field: rusage_info_v6::ri_system_time"]
[::std::mem::offset_of!(rusage_info_v6, ri_system_time) - 24usize];
["Offset of field: rusage_info_v6::ri_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v6, ri_pkg_idle_wkups) - 32usize];
["Offset of field: rusage_info_v6::ri_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v6, ri_interrupt_wkups) - 40usize];
["Offset of field: rusage_info_v6::ri_pageins"]
[::std::mem::offset_of!(rusage_info_v6, ri_pageins) - 48usize];
["Offset of field: rusage_info_v6::ri_wired_size"]
[::std::mem::offset_of!(rusage_info_v6, ri_wired_size) - 56usize];
["Offset of field: rusage_info_v6::ri_resident_size"]
[::std::mem::offset_of!(rusage_info_v6, ri_resident_size) - 64usize];
["Offset of field: rusage_info_v6::ri_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v6, ri_phys_footprint) - 72usize];
["Offset of field: rusage_info_v6::ri_proc_start_abstime"]
[::std::mem::offset_of!(rusage_info_v6, ri_proc_start_abstime) - 80usize];
["Offset of field: rusage_info_v6::ri_proc_exit_abstime"]
[::std::mem::offset_of!(rusage_info_v6, ri_proc_exit_abstime) - 88usize];
["Offset of field: rusage_info_v6::ri_child_user_time"]
[::std::mem::offset_of!(rusage_info_v6, ri_child_user_time) - 96usize];
["Offset of field: rusage_info_v6::ri_child_system_time"]
[::std::mem::offset_of!(rusage_info_v6, ri_child_system_time) - 104usize];
["Offset of field: rusage_info_v6::ri_child_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v6, ri_child_pkg_idle_wkups) - 112usize];
["Offset of field: rusage_info_v6::ri_child_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v6, ri_child_interrupt_wkups) - 120usize];
["Offset of field: rusage_info_v6::ri_child_pageins"]
[::std::mem::offset_of!(rusage_info_v6, ri_child_pageins) - 128usize];
["Offset of field: rusage_info_v6::ri_child_elapsed_abstime"]
[::std::mem::offset_of!(rusage_info_v6, ri_child_elapsed_abstime) - 136usize];
["Offset of field: rusage_info_v6::ri_diskio_bytesread"]
[::std::mem::offset_of!(rusage_info_v6, ri_diskio_bytesread) - 144usize];
["Offset of field: rusage_info_v6::ri_diskio_byteswritten"]
[::std::mem::offset_of!(rusage_info_v6, ri_diskio_byteswritten) - 152usize];
["Offset of field: rusage_info_v6::ri_cpu_time_qos_default"]
[::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_default) - 160usize];
["Offset of field: rusage_info_v6::ri_cpu_time_qos_maintenance"]
[::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_maintenance) - 168usize];
["Offset of field: rusage_info_v6::ri_cpu_time_qos_background"]
[::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_background) - 176usize];
["Offset of field: rusage_info_v6::ri_cpu_time_qos_utility"]
[::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_utility) - 184usize];
["Offset of field: rusage_info_v6::ri_cpu_time_qos_legacy"]
[::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_legacy) - 192usize];
["Offset of field: rusage_info_v6::ri_cpu_time_qos_user_initiated"]
[::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_user_initiated) - 200usize];
["Offset of field: rusage_info_v6::ri_cpu_time_qos_user_interactive"]
[::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_user_interactive) - 208usize];
["Offset of field: rusage_info_v6::ri_billed_system_time"]
[::std::mem::offset_of!(rusage_info_v6, ri_billed_system_time) - 216usize];
["Offset of field: rusage_info_v6::ri_serviced_system_time"]
[::std::mem::offset_of!(rusage_info_v6, ri_serviced_system_time) - 224usize];
["Offset of field: rusage_info_v6::ri_logical_writes"]
[::std::mem::offset_of!(rusage_info_v6, ri_logical_writes) - 232usize];
["Offset of field: rusage_info_v6::ri_lifetime_max_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v6, ri_lifetime_max_phys_footprint) - 240usize];
["Offset of field: rusage_info_v6::ri_instructions"]
[::std::mem::offset_of!(rusage_info_v6, ri_instructions) - 248usize];
["Offset of field: rusage_info_v6::ri_cycles"]
[::std::mem::offset_of!(rusage_info_v6, ri_cycles) - 256usize];
["Offset of field: rusage_info_v6::ri_billed_energy"]
[::std::mem::offset_of!(rusage_info_v6, ri_billed_energy) - 264usize];
["Offset of field: rusage_info_v6::ri_serviced_energy"]
[::std::mem::offset_of!(rusage_info_v6, ri_serviced_energy) - 272usize];
["Offset of field: rusage_info_v6::ri_interval_max_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v6, ri_interval_max_phys_footprint) - 280usize];
["Offset of field: rusage_info_v6::ri_runnable_time"]
[::std::mem::offset_of!(rusage_info_v6, ri_runnable_time) - 288usize];
["Offset of field: rusage_info_v6::ri_flags"]
[::std::mem::offset_of!(rusage_info_v6, ri_flags) - 296usize];
["Offset of field: rusage_info_v6::ri_user_ptime"]
[::std::mem::offset_of!(rusage_info_v6, ri_user_ptime) - 304usize];
["Offset of field: rusage_info_v6::ri_system_ptime"]
[::std::mem::offset_of!(rusage_info_v6, ri_system_ptime) - 312usize];
["Offset of field: rusage_info_v6::ri_pinstructions"]
[::std::mem::offset_of!(rusage_info_v6, ri_pinstructions) - 320usize];
["Offset of field: rusage_info_v6::ri_pcycles"]
[::std::mem::offset_of!(rusage_info_v6, ri_pcycles) - 328usize];
["Offset of field: rusage_info_v6::ri_energy_nj"]
[::std::mem::offset_of!(rusage_info_v6, ri_energy_nj) - 336usize];
["Offset of field: rusage_info_v6::ri_penergy_nj"]
[::std::mem::offset_of!(rusage_info_v6, ri_penergy_nj) - 344usize];
["Offset of field: rusage_info_v6::ri_secure_time_in_system"]
[::std::mem::offset_of!(rusage_info_v6, ri_secure_time_in_system) - 352usize];
["Offset of field: rusage_info_v6::ri_secure_ptime_in_system"]
[::std::mem::offset_of!(rusage_info_v6, ri_secure_ptime_in_system) - 360usize];
["Offset of field: rusage_info_v6::ri_neural_footprint"]
[::std::mem::offset_of!(rusage_info_v6, ri_neural_footprint) - 368usize];
["Offset of field: rusage_info_v6::ri_lifetime_max_neural_footprint"]
[::std::mem::offset_of!(rusage_info_v6, ri_lifetime_max_neural_footprint) - 376usize];
["Offset of field: rusage_info_v6::ri_interval_max_neural_footprint"]
[::std::mem::offset_of!(rusage_info_v6, ri_interval_max_neural_footprint) - 384usize];
["Offset of field: rusage_info_v6::ri_reserved"]
[::std::mem::offset_of!(rusage_info_v6, ri_reserved) - 392usize];
};
pub type rusage_info_current = rusage_info_v6;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rlimit {
pub rlim_cur: rlim_t,
pub rlim_max: rlim_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rlimit"][::std::mem::size_of::<rlimit>() - 16usize];
["Alignment of rlimit"][::std::mem::align_of::<rlimit>() - 8usize];
["Offset of field: rlimit::rlim_cur"][::std::mem::offset_of!(rlimit, rlim_cur) - 0usize];
["Offset of field: rlimit::rlim_max"][::std::mem::offset_of!(rlimit, rlim_max) - 8usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct proc_rlimit_control_wakeupmon {
pub wm_flags: u32,
pub wm_rate: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of proc_rlimit_control_wakeupmon"]
[::std::mem::size_of::<proc_rlimit_control_wakeupmon>() - 8usize];
["Alignment of proc_rlimit_control_wakeupmon"]
[::std::mem::align_of::<proc_rlimit_control_wakeupmon>() - 4usize];
["Offset of field: proc_rlimit_control_wakeupmon::wm_flags"]
[::std::mem::offset_of!(proc_rlimit_control_wakeupmon, wm_flags) - 0usize];
["Offset of field: proc_rlimit_control_wakeupmon::wm_rate"]
[::std::mem::offset_of!(proc_rlimit_control_wakeupmon, wm_rate) - 4usize];
};
unsafe extern "C" {
pub fn getpriority(arg1: ::std::ffi::c_int, arg2: id_t) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn getiopolicy_np(arg1: ::std::ffi::c_int, arg2: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn getrlimit(arg1: ::std::ffi::c_int, arg2: *mut rlimit) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn getrusage(arg1: ::std::ffi::c_int, arg2: *mut rusage) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn setpriority(
arg1: ::std::ffi::c_int,
arg2: id_t,
arg3: ::std::ffi::c_int,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn setiopolicy_np(
arg1: ::std::ffi::c_int,
arg2: ::std::ffi::c_int,
arg3: ::std::ffi::c_int,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn setrlimit(arg1: ::std::ffi::c_int, arg2: *const rlimit) -> ::std::ffi::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union wait {
pub w_status: ::std::ffi::c_int,
pub w_T: wait__bindgen_ty_1,
pub w_S: wait__bindgen_ty_2,
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct wait__bindgen_ty_1 {
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of wait__bindgen_ty_1"][::std::mem::size_of::<wait__bindgen_ty_1>() - 4usize];
["Alignment of wait__bindgen_ty_1"][::std::mem::align_of::<wait__bindgen_ty_1>() - 4usize];
};
impl wait__bindgen_ty_1 {
#[inline]
pub fn w_Termsig(&self) -> ::std::ffi::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 7u8) as u32) }
}
#[inline]
pub fn set_w_Termsig(&mut self, val: ::std::ffi::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 7u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Termsig_raw(this: *const Self) -> ::std::ffi::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
0usize,
7u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Termsig_raw(this: *mut Self, val: ::std::ffi::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
0usize,
7u8,
val as u64,
)
}
}
#[inline]
pub fn w_Coredump(&self) -> ::std::ffi::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
}
#[inline]
pub fn set_w_Coredump(&mut self, val: ::std::ffi::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(7usize, 1u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Coredump_raw(this: *const Self) -> ::std::ffi::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
7usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Coredump_raw(this: *mut Self, val: ::std::ffi::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
7usize,
1u8,
val as u64,
)
}
}
#[inline]
pub fn w_Retcode(&self) -> ::std::ffi::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
}
#[inline]
pub fn set_w_Retcode(&mut self, val: ::std::ffi::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 8u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Retcode_raw(this: *const Self) -> ::std::ffi::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
8usize,
8u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Retcode_raw(this: *mut Self, val: ::std::ffi::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
8usize,
8u8,
val as u64,
)
}
}
#[inline]
pub fn w_Filler(&self) -> ::std::ffi::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
}
#[inline]
pub fn set_w_Filler(&mut self, val: ::std::ffi::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 16u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Filler_raw(this: *const Self) -> ::std::ffi::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
16usize,
16u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Filler_raw(this: *mut Self, val: ::std::ffi::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
16usize,
16u8,
val as u64,
)
}
}
#[inline]
pub fn new_bitfield_1(
w_Termsig: ::std::ffi::c_uint,
w_Coredump: ::std::ffi::c_uint,
w_Retcode: ::std::ffi::c_uint,
w_Filler: ::std::ffi::c_uint,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 7u8, {
let w_Termsig: u32 = unsafe { ::std::mem::transmute(w_Termsig) };
w_Termsig as u64
});
__bindgen_bitfield_unit.set(7usize, 1u8, {
let w_Coredump: u32 = unsafe { ::std::mem::transmute(w_Coredump) };
w_Coredump as u64
});
__bindgen_bitfield_unit.set(8usize, 8u8, {
let w_Retcode: u32 = unsafe { ::std::mem::transmute(w_Retcode) };
w_Retcode as u64
});
__bindgen_bitfield_unit.set(16usize, 16u8, {
let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) };
w_Filler as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct wait__bindgen_ty_2 {
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of wait__bindgen_ty_2"][::std::mem::size_of::<wait__bindgen_ty_2>() - 4usize];
["Alignment of wait__bindgen_ty_2"][::std::mem::align_of::<wait__bindgen_ty_2>() - 4usize];
};
impl wait__bindgen_ty_2 {
#[inline]
pub fn w_Stopval(&self) -> ::std::ffi::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
}
#[inline]
pub fn set_w_Stopval(&mut self, val: ::std::ffi::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 8u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Stopval_raw(this: *const Self) -> ::std::ffi::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
0usize,
8u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Stopval_raw(this: *mut Self, val: ::std::ffi::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
0usize,
8u8,
val as u64,
)
}
}
#[inline]
pub fn w_Stopsig(&self) -> ::std::ffi::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
}
#[inline]
pub fn set_w_Stopsig(&mut self, val: ::std::ffi::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 8u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Stopsig_raw(this: *const Self) -> ::std::ffi::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
8usize,
8u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Stopsig_raw(this: *mut Self, val: ::std::ffi::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
8usize,
8u8,
val as u64,
)
}
}
#[inline]
pub fn w_Filler(&self) -> ::std::ffi::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
}
#[inline]
pub fn set_w_Filler(&mut self, val: ::std::ffi::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 16u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Filler_raw(this: *const Self) -> ::std::ffi::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
16usize,
16u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Filler_raw(this: *mut Self, val: ::std::ffi::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
16usize,
16u8,
val as u64,
)
}
}
#[inline]
pub fn new_bitfield_1(
w_Stopval: ::std::ffi::c_uint,
w_Stopsig: ::std::ffi::c_uint,
w_Filler: ::std::ffi::c_uint,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 8u8, {
let w_Stopval: u32 = unsafe { ::std::mem::transmute(w_Stopval) };
w_Stopval as u64
});
__bindgen_bitfield_unit.set(8usize, 8u8, {
let w_Stopsig: u32 = unsafe { ::std::mem::transmute(w_Stopsig) };
w_Stopsig as u64
});
__bindgen_bitfield_unit.set(16usize, 16u8, {
let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) };
w_Filler as u64
});
__bindgen_bitfield_unit
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of wait"][::std::mem::size_of::<wait>() - 4usize];
["Alignment of wait"][::std::mem::align_of::<wait>() - 4usize];
["Offset of field: wait::w_status"][::std::mem::offset_of!(wait, w_status) - 0usize];
["Offset of field: wait::w_T"][::std::mem::offset_of!(wait, w_T) - 0usize];
["Offset of field: wait::w_S"][::std::mem::offset_of!(wait, w_S) - 0usize];
};
impl Default for wait {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
unsafe extern "C" {
pub fn wait(arg1: *mut ::std::ffi::c_int) -> pid_t;
}
unsafe extern "C" {
pub fn waitpid(arg1: pid_t, arg2: *mut ::std::ffi::c_int, arg3: ::std::ffi::c_int) -> pid_t;
}
unsafe extern "C" {
pub fn waitid(
arg1: idtype_t,
arg2: id_t,
arg3: *mut siginfo_t,
arg4: ::std::ffi::c_int,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn wait3(arg1: *mut ::std::ffi::c_int, arg2: ::std::ffi::c_int, arg3: *mut rusage)
-> pid_t;
}
unsafe extern "C" {
pub fn wait4(
arg1: pid_t,
arg2: *mut ::std::ffi::c_int,
arg3: ::std::ffi::c_int,
arg4: *mut rusage,
) -> pid_t;
}
unsafe extern "C" {
pub fn alloca(__size: ::std::ffi::c_ulong) -> *mut ::std::ffi::c_void;
}
pub type ct_rune_t = __darwin_ct_rune_t;
pub type rune_t = __darwin_rune_t;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct div_t {
pub quot: ::std::ffi::c_int,
pub rem: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of div_t"][::std::mem::size_of::<div_t>() - 8usize];
["Alignment of div_t"][::std::mem::align_of::<div_t>() - 4usize];
["Offset of field: div_t::quot"][::std::mem::offset_of!(div_t, quot) - 0usize];
["Offset of field: div_t::rem"][::std::mem::offset_of!(div_t, rem) - 4usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct ldiv_t {
pub quot: ::std::ffi::c_long,
pub rem: ::std::ffi::c_long,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of ldiv_t"][::std::mem::size_of::<ldiv_t>() - 16usize];
["Alignment of ldiv_t"][::std::mem::align_of::<ldiv_t>() - 8usize];
["Offset of field: ldiv_t::quot"][::std::mem::offset_of!(ldiv_t, quot) - 0usize];
["Offset of field: ldiv_t::rem"][::std::mem::offset_of!(ldiv_t, rem) - 8usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct lldiv_t {
pub quot: ::std::ffi::c_longlong,
pub rem: ::std::ffi::c_longlong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of lldiv_t"][::std::mem::size_of::<lldiv_t>() - 16usize];
["Alignment of lldiv_t"][::std::mem::align_of::<lldiv_t>() - 8usize];
["Offset of field: lldiv_t::quot"][::std::mem::offset_of!(lldiv_t, quot) - 0usize];
["Offset of field: lldiv_t::rem"][::std::mem::offset_of!(lldiv_t, rem) - 8usize];
};
unsafe extern "C" {
pub static mut __mb_cur_max: ::std::ffi::c_int;
}
pub type malloc_type_id_t = ::std::ffi::c_ulonglong;
unsafe extern "C" {
pub fn malloc_type_malloc(size: usize, type_id: malloc_type_id_t) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn malloc_type_calloc(
count: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn malloc_type_free(ptr: *mut ::std::ffi::c_void, type_id: malloc_type_id_t);
}
unsafe extern "C" {
pub fn malloc_type_realloc(
ptr: *mut ::std::ffi::c_void,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn malloc_type_valloc(size: usize, type_id: malloc_type_id_t) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn malloc_type_aligned_alloc(
alignment: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn malloc_type_posix_memalign(
memptr: *mut *mut ::std::ffi::c_void,
alignment: usize,
size: usize,
type_id: malloc_type_id_t,
) -> ::std::ffi::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _malloc_zone_t {
_unused: [u8; 0],
}
pub type malloc_zone_t = _malloc_zone_t;
unsafe extern "C" {
pub fn malloc_type_zone_malloc(
zone: *mut malloc_zone_t,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn malloc_type_zone_calloc(
zone: *mut malloc_zone_t,
count: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn malloc_type_zone_free(
zone: *mut malloc_zone_t,
ptr: *mut ::std::ffi::c_void,
type_id: malloc_type_id_t,
);
}
unsafe extern "C" {
pub fn malloc_type_zone_realloc(
zone: *mut malloc_zone_t,
ptr: *mut ::std::ffi::c_void,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn malloc_type_zone_valloc(
zone: *mut malloc_zone_t,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn malloc_type_zone_memalign(
zone: *mut malloc_zone_t,
alignment: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn malloc(__size: ::std::ffi::c_ulong) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn calloc(
__count: ::std::ffi::c_ulong,
__size: ::std::ffi::c_ulong,
) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn free(arg1: *mut ::std::ffi::c_void);
}
unsafe extern "C" {
pub fn realloc(
__ptr: *mut ::std::ffi::c_void,
__size: ::std::ffi::c_ulong,
) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn reallocf(__ptr: *mut ::std::ffi::c_void, __size: usize) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn valloc(__size: usize) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn aligned_alloc(
__alignment: ::std::ffi::c_ulong,
__size: ::std::ffi::c_ulong,
) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn posix_memalign(
__memptr: *mut *mut ::std::ffi::c_void,
__alignment: usize,
__size: usize,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn abort() -> !;
}
unsafe extern "C" {
pub fn abs(arg1: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn atexit(arg1: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn at_quick_exit(arg1: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn atof(arg1: *const ::std::ffi::c_char) -> f64;
}
unsafe extern "C" {
pub fn atoi(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn atol(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_long;
}
unsafe extern "C" {
pub fn atoll(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_longlong;
}
unsafe extern "C" {
pub fn bsearch(
__key: *const ::std::ffi::c_void,
__base: *const ::std::ffi::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::ffi::c_void,
arg2: *const ::std::ffi::c_void,
) -> ::std::ffi::c_int,
>,
) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn div(arg1: ::std::ffi::c_int, arg2: ::std::ffi::c_int) -> div_t;
}
unsafe extern "C" {
pub fn exit(arg1: ::std::ffi::c_int) -> !;
}
unsafe extern "C" {
pub fn getenv(arg1: *const ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn labs(arg1: ::std::ffi::c_long) -> ::std::ffi::c_long;
}
unsafe extern "C" {
pub fn ldiv(arg1: ::std::ffi::c_long, arg2: ::std::ffi::c_long) -> ldiv_t;
}
unsafe extern "C" {
pub fn llabs(arg1: ::std::ffi::c_longlong) -> ::std::ffi::c_longlong;
}
unsafe extern "C" {
pub fn lldiv(arg1: ::std::ffi::c_longlong, arg2: ::std::ffi::c_longlong) -> lldiv_t;
}
unsafe extern "C" {
pub fn mblen(__s: *const ::std::ffi::c_char, __n: usize) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn mbstowcs(arg1: *mut wchar_t, arg2: *const ::std::ffi::c_char, __n: usize) -> usize;
}
unsafe extern "C" {
pub fn mbtowc(
arg1: *mut wchar_t,
arg2: *const ::std::ffi::c_char,
__n: usize,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn qsort(
__base: *mut ::std::ffi::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::ffi::c_void,
arg2: *const ::std::ffi::c_void,
) -> ::std::ffi::c_int,
>,
);
}
unsafe extern "C" {
pub fn quick_exit(arg1: ::std::ffi::c_int) -> !;
}
unsafe extern "C" {
pub fn rand() -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn srand(arg1: ::std::ffi::c_uint);
}
unsafe extern "C" {
pub fn strtod(arg1: *const ::std::ffi::c_char, arg2: *mut *mut ::std::ffi::c_char) -> f64;
}
unsafe extern "C" {
pub fn strtof(arg1: *const ::std::ffi::c_char, arg2: *mut *mut ::std::ffi::c_char) -> f32;
}
unsafe extern "C" {
pub fn strtol(
__str: *const ::std::ffi::c_char,
__endptr: *mut *mut ::std::ffi::c_char,
__base: ::std::ffi::c_int,
) -> ::std::ffi::c_long;
}
unsafe extern "C" {
pub fn strtold(arg1: *const ::std::ffi::c_char, arg2: *mut *mut ::std::ffi::c_char) -> f64;
}
unsafe extern "C" {
pub fn strtoll(
__str: *const ::std::ffi::c_char,
__endptr: *mut *mut ::std::ffi::c_char,
__base: ::std::ffi::c_int,
) -> ::std::ffi::c_longlong;
}
unsafe extern "C" {
pub fn strtoul(
__str: *const ::std::ffi::c_char,
__endptr: *mut *mut ::std::ffi::c_char,
__base: ::std::ffi::c_int,
) -> ::std::ffi::c_ulong;
}
unsafe extern "C" {
pub fn strtoull(
__str: *const ::std::ffi::c_char,
__endptr: *mut *mut ::std::ffi::c_char,
__base: ::std::ffi::c_int,
) -> ::std::ffi::c_ulonglong;
}
unsafe extern "C" {
pub fn system(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn wcstombs(arg1: *mut ::std::ffi::c_char, arg2: *const wchar_t, __n: usize) -> usize;
}
unsafe extern "C" {
pub fn wctomb(arg1: *mut ::std::ffi::c_char, arg2: wchar_t) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn _Exit(arg1: ::std::ffi::c_int) -> !;
}
unsafe extern "C" {
pub fn a64l(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_long;
}
unsafe extern "C" {
pub fn drand48() -> f64;
}
unsafe extern "C" {
pub fn ecvt(
arg1: f64,
arg2: ::std::ffi::c_int,
arg3: *mut ::std::ffi::c_int,
arg4: *mut ::std::ffi::c_int,
) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn erand48(arg1: *mut ::std::ffi::c_ushort) -> f64;
}
unsafe extern "C" {
pub fn fcvt(
arg1: f64,
arg2: ::std::ffi::c_int,
arg3: *mut ::std::ffi::c_int,
arg4: *mut ::std::ffi::c_int,
) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn gcvt(
arg1: f64,
arg2: ::std::ffi::c_int,
arg3: *mut ::std::ffi::c_char,
) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn getsubopt(
arg1: *mut *mut ::std::ffi::c_char,
arg2: *const *mut ::std::ffi::c_char,
arg3: *mut *mut ::std::ffi::c_char,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn grantpt(arg1: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn initstate(
arg1: ::std::ffi::c_uint,
arg2: *mut ::std::ffi::c_char,
__size: usize,
) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn jrand48(arg1: *mut ::std::ffi::c_ushort) -> ::std::ffi::c_long;
}
unsafe extern "C" {
pub fn l64a(arg1: ::std::ffi::c_long) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn lcong48(arg1: *mut ::std::ffi::c_ushort);
}
unsafe extern "C" {
pub fn lrand48() -> ::std::ffi::c_long;
}
unsafe extern "C" {
pub fn mktemp(arg1: *mut ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn mkstemp(arg1: *mut ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn mrand48() -> ::std::ffi::c_long;
}
unsafe extern "C" {
pub fn nrand48(arg1: *mut ::std::ffi::c_ushort) -> ::std::ffi::c_long;
}
unsafe extern "C" {
pub fn posix_openpt(arg1: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn ptsname(arg1: ::std::ffi::c_int) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn ptsname_r(
fildes: ::std::ffi::c_int,
buffer: *mut ::std::ffi::c_char,
buflen: usize,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn putenv(arg1: *mut ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn random() -> ::std::ffi::c_long;
}
unsafe extern "C" {
pub fn rand_r(arg1: *mut ::std::ffi::c_uint) -> ::std::ffi::c_int;
}
unsafe extern "C" {
#[link_name = "\u{1}_realpath$DARWIN_EXTSN"]
pub fn realpath(
arg1: *const ::std::ffi::c_char,
arg2: *mut ::std::ffi::c_char,
) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn seed48(arg1: *mut ::std::ffi::c_ushort) -> *mut ::std::ffi::c_ushort;
}
unsafe extern "C" {
pub fn setenv(
__name: *const ::std::ffi::c_char,
__value: *const ::std::ffi::c_char,
__overwrite: ::std::ffi::c_int,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn setkey(arg1: *const ::std::ffi::c_char);
}
unsafe extern "C" {
pub fn setstate(arg1: *const ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn srand48(arg1: ::std::ffi::c_long);
}
unsafe extern "C" {
pub fn srandom(arg1: ::std::ffi::c_uint);
}
unsafe extern "C" {
pub fn unlockpt(arg1: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn unsetenv(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_int;
}
pub type dev_t = __darwin_dev_t;
pub type mode_t = __darwin_mode_t;
unsafe extern "C" {
pub fn arc4random() -> u32;
}
unsafe extern "C" {
pub fn arc4random_addrandom(arg1: *mut ::std::ffi::c_uchar, __datlen: ::std::ffi::c_int);
}
unsafe extern "C" {
pub fn arc4random_buf(__buf: *mut ::std::ffi::c_void, __nbytes: usize);
}
unsafe extern "C" {
pub fn arc4random_stir();
}
unsafe extern "C" {
pub fn arc4random_uniform(__upper_bound: u32) -> u32;
}
unsafe extern "C" {
pub fn atexit_b(arg1: *mut ::std::ffi::c_void) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn bsearch_b(
__key: *const ::std::ffi::c_void,
__base: *const ::std::ffi::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::ffi::c_void,
) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
pub fn cgetcap(
arg1: *mut ::std::ffi::c_char,
arg2: *const ::std::ffi::c_char,
arg3: ::std::ffi::c_int,
) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn cgetclose() -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn cgetent(
arg1: *mut *mut ::std::ffi::c_char,
arg2: *mut *mut ::std::ffi::c_char,
arg3: *const ::std::ffi::c_char,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn cgetfirst(
arg1: *mut *mut ::std::ffi::c_char,
arg2: *mut *mut ::std::ffi::c_char,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn cgetmatch(
arg1: *const ::std::ffi::c_char,
arg2: *const ::std::ffi::c_char,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn cgetnext(
arg1: *mut *mut ::std::ffi::c_char,
arg2: *mut *mut ::std::ffi::c_char,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn cgetnum(
arg1: *mut ::std::ffi::c_char,
arg2: *const ::std::ffi::c_char,
arg3: *mut ::std::ffi::c_long,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn cgetset(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn cgetstr(
arg1: *mut ::std::ffi::c_char,
arg2: *const ::std::ffi::c_char,
arg3: *mut *mut ::std::ffi::c_char,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn cgetustr(
arg1: *mut ::std::ffi::c_char,
arg2: *const ::std::ffi::c_char,
arg3: *mut *mut ::std::ffi::c_char,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn daemon(arg1: ::std::ffi::c_int, arg2: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn devname(arg1: dev_t, arg2: mode_t) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn devname_r(
arg1: dev_t,
arg2: mode_t,
buf: *mut ::std::ffi::c_char,
len: ::std::ffi::c_int,
) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn getbsize(
arg1: *mut ::std::ffi::c_int,
arg2: *mut ::std::ffi::c_long,
) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn getloadavg(arg1: *mut f64, __nelem: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn getprogname() -> *const ::std::ffi::c_char;
}
unsafe extern "C" {
pub fn setprogname(arg1: *const ::std::ffi::c_char);
}
unsafe extern "C" {
pub fn heapsort(
__base: *mut ::std::ffi::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::ffi::c_void,
arg2: *const ::std::ffi::c_void,
) -> ::std::ffi::c_int,
>,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn heapsort_b(
__base: *mut ::std::ffi::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::ffi::c_void,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn mergesort(
__base: *mut ::std::ffi::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::ffi::c_void,
arg2: *const ::std::ffi::c_void,
) -> ::std::ffi::c_int,
>,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn mergesort_b(
__base: *mut ::std::ffi::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::ffi::c_void,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn psort(
__base: *mut ::std::ffi::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::ffi::c_void,
arg2: *const ::std::ffi::c_void,
) -> ::std::ffi::c_int,
>,
);
}
unsafe extern "C" {
pub fn psort_b(
__base: *mut ::std::ffi::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::ffi::c_void,
);
}
unsafe extern "C" {
pub fn psort_r(
__base: *mut ::std::ffi::c_void,
__nel: usize,
__width: usize,
arg1: *mut ::std::ffi::c_void,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::ffi::c_void,
arg2: *const ::std::ffi::c_void,
arg3: *const ::std::ffi::c_void,
) -> ::std::ffi::c_int,
>,
);
}
unsafe extern "C" {
pub fn qsort_b(
__base: *mut ::std::ffi::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::ffi::c_void,
);
}
unsafe extern "C" {
pub fn qsort_r(
__base: *mut ::std::ffi::c_void,
__nel: usize,
__width: usize,
arg1: *mut ::std::ffi::c_void,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::ffi::c_void,
arg2: *const ::std::ffi::c_void,
arg3: *const ::std::ffi::c_void,
) -> ::std::ffi::c_int,
>,
);
}
unsafe extern "C" {
pub fn radixsort(
__base: *mut *const ::std::ffi::c_uchar,
__nel: ::std::ffi::c_int,
__table: *const ::std::ffi::c_uchar,
__endbyte: ::std::ffi::c_uint,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn rpmatch(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn sradixsort(
__base: *mut *const ::std::ffi::c_uchar,
__nel: ::std::ffi::c_int,
__table: *const ::std::ffi::c_uchar,
__endbyte: ::std::ffi::c_uint,
) -> ::std::ffi::c_int;
}
unsafe extern "C" {
pub fn sranddev();
}
unsafe extern "C" {
pub fn srandomdev();
}
unsafe extern "C" {
pub fn strtonum(
__numstr: *const ::std::ffi::c_char,
__minval: ::std::ffi::c_longlong,
__maxval: ::std::ffi::c_longlong,
__errstrp: *mut *const ::std::ffi::c_char,
) -> ::std::ffi::c_longlong;
}
unsafe extern "C" {
pub fn strtoq(
__str: *const ::std::ffi::c_char,
__endptr: *mut *mut ::std::ffi::c_char,
__base: ::std::ffi::c_int,
) -> ::std::ffi::c_longlong;
}
unsafe extern "C" {
pub fn strtouq(
__str: *const ::std::ffi::c_char,
__endptr: *mut *mut ::std::ffi::c_char,
__base: ::std::ffi::c_int,
) -> ::std::ffi::c_ulonglong;
}
unsafe extern "C" {
pub static mut suboptarg: *mut ::std::ffi::c_char;
}
unsafe extern "C" {
#[doc = " @brief Degenerate empty hash table that will return \"not present\" for any lookup"]
pub static ddsrt_hh_empty: ddsrt_hh;
}
pub type dds_data_type_properties_t = u64;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_cdr_header {
pub identifier: ::std::ffi::c_ushort,
pub options: ::std::ffi::c_ushort,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_cdr_header"][::std::mem::size_of::<dds_cdr_header>() - 4usize];
["Alignment of dds_cdr_header"][::std::mem::align_of::<dds_cdr_header>() - 2usize];
["Offset of field: dds_cdr_header::identifier"]
[::std::mem::offset_of!(dds_cdr_header, identifier) - 0usize];
["Offset of field: dds_cdr_header::options"]
[::std::mem::offset_of!(dds_cdr_header, options) - 2usize];
};
pub const dds_cdr_type_extensibility_DDS_CDR_TYPE_EXT_FINAL: dds_cdr_type_extensibility = 0;
pub const dds_cdr_type_extensibility_DDS_CDR_TYPE_EXT_APPENDABLE: dds_cdr_type_extensibility = 1;
pub const dds_cdr_type_extensibility_DDS_CDR_TYPE_EXT_MUTABLE: dds_cdr_type_extensibility = 2;
pub type dds_cdr_type_extensibility = ::std::ffi::c_uint;
pub const dds_cdr_key_serialization_kind_DDS_CDR_KEY_SERIALIZATION_SAMPLE:
dds_cdr_key_serialization_kind = 0;
pub const dds_cdr_key_serialization_kind_DDS_CDR_KEY_SERIALIZATION_KEYHASH:
dds_cdr_key_serialization_kind = 1;
pub type dds_cdr_key_serialization_kind = ::std::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_istream {
pub m_buffer: *const ::std::ffi::c_uchar,
pub m_size: u32,
pub m_index: u32,
pub m_xcdr_version: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_istream"][::std::mem::size_of::<dds_istream>() - 24usize];
["Alignment of dds_istream"][::std::mem::align_of::<dds_istream>() - 8usize];
["Offset of field: dds_istream::m_buffer"]
[::std::mem::offset_of!(dds_istream, m_buffer) - 0usize];
["Offset of field: dds_istream::m_size"][::std::mem::offset_of!(dds_istream, m_size) - 8usize];
["Offset of field: dds_istream::m_index"]
[::std::mem::offset_of!(dds_istream, m_index) - 12usize];
["Offset of field: dds_istream::m_xcdr_version"]
[::std::mem::offset_of!(dds_istream, m_xcdr_version) - 16usize];
};
impl Default for dds_istream {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type dds_istream_t = dds_istream;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_ostream {
pub m_buffer: *mut ::std::ffi::c_uchar,
pub m_size: u32,
pub m_index: u32,
pub m_xcdr_version: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_ostream"][::std::mem::size_of::<dds_ostream>() - 24usize];
["Alignment of dds_ostream"][::std::mem::align_of::<dds_ostream>() - 8usize];
["Offset of field: dds_ostream::m_buffer"]
[::std::mem::offset_of!(dds_ostream, m_buffer) - 0usize];
["Offset of field: dds_ostream::m_size"][::std::mem::offset_of!(dds_ostream, m_size) - 8usize];
["Offset of field: dds_ostream::m_index"]
[::std::mem::offset_of!(dds_ostream, m_index) - 12usize];
["Offset of field: dds_ostream::m_xcdr_version"]
[::std::mem::offset_of!(dds_ostream, m_xcdr_version) - 16usize];
};
impl Default for dds_ostream {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type dds_ostream_t = dds_ostream;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_ostreamBE {
pub x: dds_ostream_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_ostreamBE"][::std::mem::size_of::<dds_ostreamBE>() - 24usize];
["Alignment of dds_ostreamBE"][::std::mem::align_of::<dds_ostreamBE>() - 8usize];
["Offset of field: dds_ostreamBE::x"][::std::mem::offset_of!(dds_ostreamBE, x) - 0usize];
};
impl Default for dds_ostreamBE {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type dds_ostreamBE_t = dds_ostreamBE;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_ostreamLE {
pub x: dds_ostream_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_ostreamLE"][::std::mem::size_of::<dds_ostreamLE>() - 24usize];
["Alignment of dds_ostreamLE"][::std::mem::align_of::<dds_ostreamLE>() - 8usize];
["Offset of field: dds_ostreamLE::x"][::std::mem::offset_of!(dds_ostreamLE, x) - 0usize];
};
impl Default for dds_ostreamLE {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type dds_ostreamLE_t = dds_ostreamLE;
pub type dds_cdrstream_allocator_t = dds_cdrstream_allocator;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_cdrstream_desc_key {
pub ops_offs: u32,
pub idx: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_cdrstream_desc_key"][::std::mem::size_of::<dds_cdrstream_desc_key>() - 8usize];
["Alignment of dds_cdrstream_desc_key"]
[::std::mem::align_of::<dds_cdrstream_desc_key>() - 4usize];
["Offset of field: dds_cdrstream_desc_key::ops_offs"]
[::std::mem::offset_of!(dds_cdrstream_desc_key, ops_offs) - 0usize];
["Offset of field: dds_cdrstream_desc_key::idx"]
[::std::mem::offset_of!(dds_cdrstream_desc_key, idx) - 4usize];
};
pub type dds_cdrstream_desc_key_t = dds_cdrstream_desc_key;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_cdrstream_desc_keys {
pub nkeys: u32,
pub keys: *mut dds_cdrstream_desc_key,
pub keys_definition_order: *mut dds_cdrstream_desc_key,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_cdrstream_desc_keys"][::std::mem::size_of::<dds_cdrstream_desc_keys>() - 24usize];
["Alignment of dds_cdrstream_desc_keys"]
[::std::mem::align_of::<dds_cdrstream_desc_keys>() - 8usize];
["Offset of field: dds_cdrstream_desc_keys::nkeys"]
[::std::mem::offset_of!(dds_cdrstream_desc_keys, nkeys) - 0usize];
["Offset of field: dds_cdrstream_desc_keys::keys"]
[::std::mem::offset_of!(dds_cdrstream_desc_keys, keys) - 8usize];
["Offset of field: dds_cdrstream_desc_keys::keys_definition_order"]
[::std::mem::offset_of!(dds_cdrstream_desc_keys, keys_definition_order) - 16usize];
};
impl Default for dds_cdrstream_desc_keys {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type dds_cdrstream_desc_keys_t = dds_cdrstream_desc_keys;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_cdrstream_desc_op_seq {
pub nops: u32,
pub ops: *mut u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_cdrstream_desc_op_seq"]
[::std::mem::size_of::<dds_cdrstream_desc_op_seq>() - 16usize];
["Alignment of dds_cdrstream_desc_op_seq"]
[::std::mem::align_of::<dds_cdrstream_desc_op_seq>() - 8usize];
["Offset of field: dds_cdrstream_desc_op_seq::nops"]
[::std::mem::offset_of!(dds_cdrstream_desc_op_seq, nops) - 0usize];
["Offset of field: dds_cdrstream_desc_op_seq::ops"]
[::std::mem::offset_of!(dds_cdrstream_desc_op_seq, ops) - 8usize];
};
impl Default for dds_cdrstream_desc_op_seq {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type dds_cdrstream_desc_op_seq_t = dds_cdrstream_desc_op_seq;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_cdrstream_desc_mid_table {
pub table: *mut ddsrt_hh,
pub op0: *const u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_cdrstream_desc_mid_table"]
[::std::mem::size_of::<dds_cdrstream_desc_mid_table>() - 16usize];
["Alignment of dds_cdrstream_desc_mid_table"]
[::std::mem::align_of::<dds_cdrstream_desc_mid_table>() - 8usize];
["Offset of field: dds_cdrstream_desc_mid_table::table"]
[::std::mem::offset_of!(dds_cdrstream_desc_mid_table, table) - 0usize];
["Offset of field: dds_cdrstream_desc_mid_table::op0"]
[::std::mem::offset_of!(dds_cdrstream_desc_mid_table, op0) - 8usize];
};
impl Default for dds_cdrstream_desc_mid_table {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_cdrstream_desc_mid {
pub adr_offs: u32,
pub mid: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_cdrstream_desc_mid"][::std::mem::size_of::<dds_cdrstream_desc_mid>() - 8usize];
["Alignment of dds_cdrstream_desc_mid"]
[::std::mem::align_of::<dds_cdrstream_desc_mid>() - 4usize];
["Offset of field: dds_cdrstream_desc_mid::adr_offs"]
[::std::mem::offset_of!(dds_cdrstream_desc_mid, adr_offs) - 0usize];
["Offset of field: dds_cdrstream_desc_mid::mid"]
[::std::mem::offset_of!(dds_cdrstream_desc_mid, mid) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_cdrstream_desc {
pub size: u32,
pub align: u32,
pub flagset: u32,
pub keys: dds_cdrstream_desc_keys,
pub ops: dds_cdrstream_desc_op_seq_t,
pub opt_size_xcdr1: usize,
pub opt_size_xcdr2: usize,
pub member_ids: dds_cdrstream_desc_mid_table,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_cdrstream_desc"][::std::mem::size_of::<dds_cdrstream_desc>() - 88usize];
["Alignment of dds_cdrstream_desc"][::std::mem::align_of::<dds_cdrstream_desc>() - 8usize];
["Offset of field: dds_cdrstream_desc::size"]
[::std::mem::offset_of!(dds_cdrstream_desc, size) - 0usize];
["Offset of field: dds_cdrstream_desc::align"]
[::std::mem::offset_of!(dds_cdrstream_desc, align) - 4usize];
["Offset of field: dds_cdrstream_desc::flagset"]
[::std::mem::offset_of!(dds_cdrstream_desc, flagset) - 8usize];
["Offset of field: dds_cdrstream_desc::keys"]
[::std::mem::offset_of!(dds_cdrstream_desc, keys) - 16usize];
["Offset of field: dds_cdrstream_desc::ops"]
[::std::mem::offset_of!(dds_cdrstream_desc, ops) - 40usize];
["Offset of field: dds_cdrstream_desc::opt_size_xcdr1"]
[::std::mem::offset_of!(dds_cdrstream_desc, opt_size_xcdr1) - 56usize];
["Offset of field: dds_cdrstream_desc::opt_size_xcdr2"]
[::std::mem::offset_of!(dds_cdrstream_desc, opt_size_xcdr2) - 64usize];
["Offset of field: dds_cdrstream_desc::member_ids"]
[::std::mem::offset_of!(dds_cdrstream_desc, member_ids) - 72usize];
};
impl Default for dds_cdrstream_desc {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct static_assert_157 {
pub cond: [::std::ffi::c_char; 1usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of static_assert_157"][::std::mem::size_of::<static_assert_157>() - 1usize];
["Alignment of static_assert_157"][::std::mem::align_of::<static_assert_157>() - 1usize];
["Offset of field: static_assert_157::cond"]
[::std::mem::offset_of!(static_assert_157, cond) - 0usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct static_assert_158 {
pub cond: [::std::ffi::c_char; 1usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of static_assert_158"][::std::mem::size_of::<static_assert_158>() - 1usize];
["Alignment of static_assert_158"][::std::mem::align_of::<static_assert_158>() - 1usize];
["Offset of field: static_assert_158::cond"]
[::std::mem::offset_of!(static_assert_158, cond) - 0usize];
};
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_cdr_alignto4_clear_and_resize(
os: *mut dds_ostream_t,
allocator: *const dds_cdrstream_allocator,
xcdr_version: u32,
) -> u32;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_istream_init(
is: *mut dds_istream_t,
size: u32,
input: *const ::std::ffi::c_void,
xcdr_version: u32,
);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_istream_fini(is: *mut dds_istream_t);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_ostream_init(
os: *mut dds_ostream_t,
allocator: *const dds_cdrstream_allocator,
size: u32,
xcdr_version: u32,
);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_ostream_fini(os: *mut dds_ostream_t, allocator: *const dds_cdrstream_allocator);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_ostreamLE_init(
os: *mut dds_ostreamLE_t,
allocator: *const dds_cdrstream_allocator,
size: u32,
xcdr_version: u32,
);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_ostreamLE_fini(os: *mut dds_ostreamLE_t, allocator: *const dds_cdrstream_allocator);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_ostreamBE_init(
os: *mut dds_ostreamBE_t,
allocator: *const dds_cdrstream_allocator,
size: u32,
xcdr_version: u32,
);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_ostreamBE_fini(os: *mut dds_ostreamBE_t, allocator: *const dds_cdrstream_allocator);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_ostream_from_buffer(
buffer: *mut ::std::ffi::c_void,
size: usize,
write_encoding_version: u16,
) -> dds_ostream_t;
}
unsafe extern "C" {
#[doc = " @brief Normalized and validates CDR data\n @component cdr_serializer\n\n @param data data sample\n @param size size of the data\n @param bswap byte-swapping required\n @param xcdr_version XCDR version of the CDR data\n @param desc type descriptor\n @param just_key indicates if the data is a serialized key or a complete sample\n @param actual_size is set to the actual size of the data (*actual_size <= size) on successful return\n @returns True iff validation and normalization succeeded"]
pub fn dds_stream_normalize(
data: *mut ::std::ffi::c_void,
size: u32,
bswap: bool,
xcdr_version: u32,
desc: *const dds_cdrstream_desc,
just_key: bool,
actual_size: *mut u32,
) -> bool;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_normalize_xcdr2_data(
data: *mut ::std::ffi::c_char,
off: *mut u32,
size: u32,
bswap: bool,
ops: *const u32,
) -> *const u32;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_write(
os: *mut dds_ostream_t,
allocator: *const dds_cdrstream_allocator,
data: *const ::std::ffi::c_char,
ops: *const u32,
) -> *const u32;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_writeLE(
os: *mut dds_ostreamLE_t,
allocator: *const dds_cdrstream_allocator,
data: *const ::std::ffi::c_char,
ops: *const u32,
) -> *const u32;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_writeBE(
os: *mut dds_ostreamBE_t,
allocator: *const dds_cdrstream_allocator,
data: *const ::std::ffi::c_char,
ops: *const u32,
) -> *const u32;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_write_with_mid(
os: *mut dds_ostream_t,
allocator: *const dds_cdrstream_allocator,
mid_table: *const dds_cdrstream_desc_mid_table,
data: *const ::std::ffi::c_char,
ops: *const u32,
) -> *const u32;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_write_with_midLE(
os: *mut dds_ostreamLE_t,
allocator: *const dds_cdrstream_allocator,
mid_table: *const dds_cdrstream_desc_mid_table,
data: *const ::std::ffi::c_char,
ops: *const u32,
) -> *const u32;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_write_with_midBE(
os: *mut dds_ostreamBE_t,
allocator: *const dds_cdrstream_allocator,
mid_table: *const dds_cdrstream_desc_mid_table,
data: *const ::std::ffi::c_char,
ops: *const u32,
) -> *const u32;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_write_with_byte_order(
os: *mut dds_ostream_t,
allocator: *const dds_cdrstream_allocator,
mid_table: *const dds_cdrstream_desc_mid_table,
data: *const ::std::ffi::c_char,
ops: *const u32,
bo: ddsrt_byte_order_selector,
) -> *const u32;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_write_sample(
os: *mut dds_ostream_t,
allocator: *const dds_cdrstream_allocator,
data: *const ::std::ffi::c_void,
desc: *const dds_cdrstream_desc,
) -> bool;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_write_sampleLE(
os: *mut dds_ostreamLE_t,
allocator: *const dds_cdrstream_allocator,
data: *const ::std::ffi::c_void,
desc: *const dds_cdrstream_desc,
) -> bool;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_write_sampleBE(
os: *mut dds_ostreamBE_t,
allocator: *const dds_cdrstream_allocator,
data: *const ::std::ffi::c_void,
desc: *const dds_cdrstream_desc,
) -> bool;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_read_sample(
is: *mut dds_istream_t,
data: *mut ::std::ffi::c_void,
allocator: *const dds_cdrstream_allocator,
desc: *const dds_cdrstream_desc,
);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_free_sample(
data: *mut ::std::ffi::c_void,
allocator: *const dds_cdrstream_allocator,
ops: *const u32,
);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_countops(
ops: *const u32,
nkeys: u32,
keys: *const dds_key_descriptor_t,
) -> u32;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_check_optimize(desc: *const dds_cdrstream_desc, xcdr_version: u32) -> usize;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_write_key(
os: *mut dds_ostream_t,
ser_kind: dds_cdr_key_serialization_kind,
allocator: *const dds_cdrstream_allocator,
sample: *const ::std::ffi::c_char,
desc: *const dds_cdrstream_desc,
) -> bool;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_write_keyBE(
os: *mut dds_ostreamBE_t,
ser_kind: dds_cdr_key_serialization_kind,
allocator: *const dds_cdrstream_allocator,
sample: *const ::std::ffi::c_char,
desc: *const dds_cdrstream_desc,
) -> bool;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_extract_key_from_data(
is: *mut dds_istream_t,
os: *mut dds_ostream_t,
allocator: *const dds_cdrstream_allocator,
desc: *const dds_cdrstream_desc,
) -> bool;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_extract_key_from_key(
is: *mut dds_istream_t,
os: *mut dds_ostream_t,
ser_kind: dds_cdr_key_serialization_kind,
allocator: *const dds_cdrstream_allocator,
desc: *const dds_cdrstream_desc,
);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_extract_keyBE_from_data(
is: *mut dds_istream_t,
os: *mut dds_ostreamBE_t,
allocator: *const dds_cdrstream_allocator,
desc: *const dds_cdrstream_desc,
) -> bool;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_extract_keyBE_from_key(
is: *mut dds_istream_t,
os: *mut dds_ostreamBE_t,
ser_kind: dds_cdr_key_serialization_kind,
allocator: *const dds_cdrstream_allocator,
desc: *const dds_cdrstream_desc,
);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_read(
is: *mut dds_istream_t,
data: *mut ::std::ffi::c_char,
allocator: *const dds_cdrstream_allocator,
ops: *const u32,
) -> *const u32;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_read_key(
is: *mut dds_istream_t,
sample: *mut ::std::ffi::c_char,
allocator: *const dds_cdrstream_allocator,
desc: *const dds_cdrstream_desc,
);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_print_key(
is: *mut dds_istream_t,
desc: *const dds_cdrstream_desc,
buf: *mut ::std::ffi::c_char,
size: usize,
) -> usize;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_print_sample(
is: *mut dds_istream_t,
desc: *const dds_cdrstream_desc,
buf: *mut ::std::ffi::c_char,
size: usize,
) -> usize;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer; returns SIZE_MAX on error"]
pub fn dds_stream_getsize_sample(
data: *const ::std::ffi::c_char,
desc: *const dds_cdrstream_desc,
xcdr_version: u32,
) -> usize;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer; returns SIZE_MAX on error"]
pub fn dds_stream_getsize_key(
sample: *const ::std::ffi::c_char,
desc: *const dds_cdrstream_desc,
xcdr_version: u32,
) -> usize;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_minimum_xcdr_version(ops: *const u32) -> u16;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_type_nesting_depth(ops: *const u32) -> u32;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_key_flags(
desc: *mut dds_cdrstream_desc,
keysz_xcdrv1: *mut u32,
keysz_xcdrv2: *mut u32,
) -> u32;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_extensibility(ops: *const u32, ext: *mut dds_cdr_type_extensibility) -> bool;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_stream_data_types(ops: *const u32) -> dds_data_type_properties_t;
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_cdrstream_desc_init_with_nops(
desc: *mut dds_cdrstream_desc,
allocator: *const dds_cdrstream_allocator,
size: u32,
align: u32,
flagset: u32,
ops: *const u32,
nops: u32,
keys: *const dds_key_descriptor_t,
nkeys: u32,
);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_cdrstream_desc_init(
desc: *mut dds_cdrstream_desc,
allocator: *const dds_cdrstream_allocator,
size: u32,
align: u32,
flagset: u32,
ops: *const u32,
keys: *const dds_key_descriptor_t,
nkeys: u32,
);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_cdrstream_desc_fini(
desc: *mut dds_cdrstream_desc,
allocator: *const dds_cdrstream_allocator,
);
}
unsafe extern "C" {
#[doc = " @component cdr_serializer"]
pub fn dds_cdrstream_desc_from_topic_desc(
desc: *mut dds_cdrstream_desc,
topic_desc: *const dds_topic_descriptor_t,
);
}
unsafe extern "C" {
#[doc = " @ingroup internal\n @component participant\n @unstable\n @brief Create a participant with the specified GUID\n\n @param[in] domain The domain in which to create the participant (can be DDS_DOMAIN_DEFAULT). DDS_DOMAIN_DEFAULT is for using the domain in the configuration.\n @param[in] qos The QoS to set on the new participant (can be NULL).\n @param[in] listener Any listener functions associated with the new participant (can be NULL).\n @param[in] flags The flags to be used when creating the participant\n @param[in] guid The GUID for the new participant\n\n @returns A valid participant handle or an error code. @see dds_create_participant for details"]
pub fn dds_create_participant_guid(
domain: dds_domainid_t,
qos: *const dds_qos_t,
listener: *const dds_listener_t,
flags: u32,
guid: *const dds_guid_t,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @ingroup internal\n @component writer\n @unstable\n @brief Create a writer with the specified GUID\n\n @param[in] participant_or_publisher The participant or publisher on which the writer is being created.\n @param[in] topic The topic to write.\n @param[in] qos The QoS to set on the new writer (can be NULL).\n @param[in] listener Any listener functions associated with the new writer (can be NULL).\n @param[in] guid The GUID for the new writer\n\n @returns A valid writer handle or an error code. @see dds_create_writer for details"]
pub fn dds_create_writer_guid(
participant_or_publisher: dds_entity_t,
topic: dds_entity_t,
qos: *const dds_qos_t,
listener: *const dds_listener_t,
guid: *mut dds_guid_t,
) -> dds_entity_t;
}
unsafe extern "C" {
#[doc = " @ingroup internal\n @component reader\n @unstable\n @brief Create a reader with the specified GUID\n\n @param[in] participant_or_subscriber The participant or subscriber on which the reader is being created.\n @param[in] topic The topic to read.\n @param[in] qos The QoS to set on the new reader (can be NULL).\n @param[in] listener Any listener functions associated with the new reader (can be NULL).\n @param[in] guid The GUID for the new reader\n\n @returns A valid reader handle or an error code. @see dds_create_reader for details"]
pub fn dds_create_reader_guid(
participant_or_subscriber: dds_entity_t,
topic: dds_entity_t,
qos: *const dds_qos_t,
listener: *const dds_listener_t,
guid: *mut dds_guid_t,
) -> dds_entity_t;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_loan_pool {
_unused: [u8; 0],
}
#[doc = "!< state not set yet; not passed through PSMX interface"]
pub const dds_loaned_sample_state_DDS_LOANED_SAMPLE_STATE_UNITIALIZED: dds_loaned_sample_state = 0;
#[doc = "!< application representation, only key fields initialized"]
pub const dds_loaned_sample_state_DDS_LOANED_SAMPLE_STATE_RAW_KEY: dds_loaned_sample_state = 1;
#[doc = "!< application representation, full sample initialized"]
pub const dds_loaned_sample_state_DDS_LOANED_SAMPLE_STATE_RAW_DATA: dds_loaned_sample_state = 2;
#[doc = "!< CDR/XCDR1/XCDR2-serialized key value serialized"]
pub const dds_loaned_sample_state_DDS_LOANED_SAMPLE_STATE_SERIALIZED_KEY: dds_loaned_sample_state =
3;
#[doc = "!< CDR/XCDR1/XCDR2-serialized sample value serialized"]
pub const dds_loaned_sample_state_DDS_LOANED_SAMPLE_STATE_SERIALIZED_DATA: dds_loaned_sample_state =
4;
#[doc = " @brief State of the data contained in a Loaned Sample\n @ingroup loaned_sample\n"]
pub type dds_loaned_sample_state = ::std::ffi::c_uint;
#[doc = " @brief State of the data contained in a Loaned Sample\n @ingroup loaned_sample\n"]
pub use self::dds_loaned_sample_state as dds_loaned_sample_state_t;
#[doc = " @brief Identifier used to distinguish between raw data types (C/C++/Python/...) in a Loaned Sample\n @ingroup loaned_sample"]
pub type dds_loan_data_type_t = u32;
#[doc = " @brief Definition for function to free a Loaned Sample\n @ingroup loaned_sample\n\n @param[in] loaned_sample A loaned sample"]
pub type dds_loaned_sample_free_f =
::std::option::Option<unsafe extern "C" fn(loaned_sample: *mut dds_loaned_sample)>;
#[doc = " @brief Container for implementation specific operations\n @ingroup loaned_sample"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_loaned_sample_ops {
pub free: dds_loaned_sample_free_f,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_loaned_sample_ops"][::std::mem::size_of::<dds_loaned_sample_ops>() - 8usize];
["Alignment of dds_loaned_sample_ops"]
[::std::mem::align_of::<dds_loaned_sample_ops>() - 8usize];
["Offset of field: dds_loaned_sample_ops::free"]
[::std::mem::offset_of!(dds_loaned_sample_ops, free) - 0usize];
};
#[doc = " @brief Container for implementation specific operations\n @ingroup loaned_sample"]
pub type dds_loaned_sample_ops_t = dds_loaned_sample_ops;
#[doc = "!< Loaned sample allocated on the heap (and owned by Cyclone DDS)"]
pub const dds_loaned_sample_origin_kind_DDS_LOAN_ORIGIN_KIND_HEAP: dds_loaned_sample_origin_kind =
0;
#[doc = "!< Loaned sample owned by a PSMX Endpoint"]
pub const dds_loaned_sample_origin_kind_DDS_LOAN_ORIGIN_KIND_PSMX: dds_loaned_sample_origin_kind =
1;
pub type dds_loaned_sample_origin_kind = ::std::ffi::c_uint;
pub use self::dds_loaned_sample_origin_kind as dds_loaned_sample_origin_kind_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_loaned_sample_origin {
#[doc = "!< Whether on the HEAP or provided by a PSMX Endpoint"]
pub origin_kind: dds_loaned_sample_origin_kind,
#[doc = "!< Owning PSMX Endpoint, null if KIND_HEAP"]
pub psmx_endpoint: *mut dds_psmx_endpoint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_loaned_sample_origin"]
[::std::mem::size_of::<dds_loaned_sample_origin>() - 16usize];
["Alignment of dds_loaned_sample_origin"]
[::std::mem::align_of::<dds_loaned_sample_origin>() - 8usize];
["Offset of field: dds_loaned_sample_origin::origin_kind"]
[::std::mem::offset_of!(dds_loaned_sample_origin, origin_kind) - 0usize];
["Offset of field: dds_loaned_sample_origin::psmx_endpoint"]
[::std::mem::offset_of!(dds_loaned_sample_origin, psmx_endpoint) - 8usize];
};
impl Default for dds_loaned_sample_origin {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type dds_loaned_sample_origin_t = dds_loaned_sample_origin;
#[doc = " @brief The definition of a Loaned Sample\n @ingroup loaned_sample"]
#[repr(C)]
pub struct dds_loaned_sample {
#[doc = "!< the implementation specific ops for this sample"]
pub ops: dds_loaned_sample_ops_t,
#[doc = "!< the origin of the loan"]
pub loan_origin: dds_loaned_sample_origin,
#[doc = "!< pointer to the associated metadata"]
pub metadata: *mut dds_psmx_metadata,
#[doc = "!< pointer to the loaned sample"]
pub sample_ptr: *mut ::std::ffi::c_void,
#[doc = "!< the number of references to this loan"]
pub refc: ddsrt_atomic_uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_loaned_sample"][::std::mem::size_of::<dds_loaned_sample>() - 48usize];
["Alignment of dds_loaned_sample"][::std::mem::align_of::<dds_loaned_sample>() - 8usize];
["Offset of field: dds_loaned_sample::ops"]
[::std::mem::offset_of!(dds_loaned_sample, ops) - 0usize];
["Offset of field: dds_loaned_sample::loan_origin"]
[::std::mem::offset_of!(dds_loaned_sample, loan_origin) - 8usize];
["Offset of field: dds_loaned_sample::metadata"]
[::std::mem::offset_of!(dds_loaned_sample, metadata) - 24usize];
["Offset of field: dds_loaned_sample::sample_ptr"]
[::std::mem::offset_of!(dds_loaned_sample, sample_ptr) - 32usize];
["Offset of field: dds_loaned_sample::refc"]
[::std::mem::offset_of!(dds_loaned_sample, refc) - 40usize];
};
impl Default for dds_loaned_sample {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief The definition of a Loaned Sample\n @ingroup loaned_sample"]
pub type dds_loaned_sample_t = dds_loaned_sample;
unsafe extern "C" {
#[doc = " @brief insert data from a loaned sample into the reader history cache\n @ingroup reading\n\n Constructs a serdata of the reader's type from the loaned sample and stores it in the\n reader's history cache. If the serdata references the loan, `dds_loaned_sample_ref` is\n used to increment its reference count.\n\n If data is not from a known writer, this is a no-op.\n\n @param[in] reader The reader entity.\n @param[in] data Pointer to the loaned sample of the entity received\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more parameters are invalid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The reader entity has already been deleted."]
pub fn dds_reader_store_loaned_sample(
reader: dds_entity_t,
data: *mut dds_loaned_sample_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief insert data from a loaned sample into the reader history cache using the provided writer meta-data\n @ingroup reading\n\n Constructs a serdata of the reader's type from the loaned sample and stores it in the\n reader's history cache. If the serdata references the loan, `dds_loaned_sample_ref` is\n used to increment its reference count.\n\n It is equivalent to `dds_reader_store_loaned_sample`, except that for this function no\n writer look-up takes place (it doesn't need to because the required information is\n passed in directly) and data unknown writers is accepted.\n\n @param[in] reader The reader entity.\n @param[in] data Pointer to the loaned sample of the entity received\n @param[in] ownership_strength The ownership strength of the writer\n @param[in] autodispose_unregistered_instances Writer setting for auto-disposing unregistered entities\n @param[in] lifespan_duration Lifespan duration value configured for the writer\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n One or more parameters are invalid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n The reader entity has already been deleted."]
pub fn dds_reader_store_loaned_sample_wr_metadata(
reader: dds_entity_t,
data: *mut dds_loaned_sample_t,
ownership_strength: i32,
autodispose_unregistered_instances: bool,
lifespan_duration: dds_duration_t,
) -> dds_return_t;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_type {
_unused: [u8; 0],
}
#[doc = "< inapplicable or applies to both"]
pub const dds_psmx_endpoint_type_DDS_PSMX_ENDPOINT_TYPE_UNSET: dds_psmx_endpoint_type = 0;
#[doc = "< applies to reader only"]
pub const dds_psmx_endpoint_type_DDS_PSMX_ENDPOINT_TYPE_READER: dds_psmx_endpoint_type = 1;
#[doc = "< applies to writer only"]
pub const dds_psmx_endpoint_type_DDS_PSMX_ENDPOINT_TYPE_WRITER: dds_psmx_endpoint_type = 2;
#[doc = " @brief Type of the PSMX endpoint\n @ingroup psmx\n\n The PSMX interface distinguishes between readers and writers, and in some cases needs\n to specify that an operation applies to both or neither (depending on context).\n \"Reader\" and \"writer\" here are used as in DDS, outside the DDS context these often are\n known as subscribers and publishers."]
pub type dds_psmx_endpoint_type = ::std::ffi::c_uint;
#[doc = " @brief Type of the PSMX endpoint\n @ingroup psmx\n\n The PSMX interface distinguishes between readers and writers, and in some cases needs\n to specify that an operation applies to both or neither (depending on context).\n \"Reader\" and \"writer\" here are used as in DDS, outside the DDS context these often are\n known as subscribers and publishers."]
pub use self::dds_psmx_endpoint_type as dds_psmx_endpoint_type_t;
#[doc = " @brief The numeric PSMX Instance ID\n @ingroup psmx"]
pub type dds_psmx_instance_id_t = u32;
pub type dds_psmx_features_t = u32;
#[doc = " @brief Describes the data which is transferred in addition to the application data\n @ingroup psmx\n\n All fields are filled in by Cyclone DDS during the write prior to handing it to the\n PSMX plug-in. The plug-in is only required to pass the contents to Cyclone DDS on the\n receiving side."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_psmx_metadata {
#[doc = "< Representation of this sample/key"]
pub sample_state: dds_loaned_sample_state_t,
#[doc = "< Reserved, must be 0"]
pub data_type: dds_loan_data_type_t,
#[doc = "< PSMX instance id for this sample"]
pub instance_id: dds_psmx_instance_id_t,
#[doc = "< Size of payload"]
pub sample_size: u32,
#[doc = "< GUID of original writer"]
pub guid: dds_guid_t,
#[doc = "< Source timestamp of DDS sample"]
pub timestamp: dds_time_t,
#[doc = "< DDSI status info (write/dispose/unregister)"]
pub statusinfo: u32,
#[doc = "< CDR encoding (DDSI_RTPS_SAMPLE_NATIVE if not serialized)"]
pub cdr_identifier: u16,
#[doc = "< CDR options field (0 if not serialized)"]
pub cdr_options: u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_psmx_metadata"][::std::mem::size_of::<dds_psmx_metadata>() - 48usize];
["Alignment of dds_psmx_metadata"][::std::mem::align_of::<dds_psmx_metadata>() - 8usize];
["Offset of field: dds_psmx_metadata::sample_state"]
[::std::mem::offset_of!(dds_psmx_metadata, sample_state) - 0usize];
["Offset of field: dds_psmx_metadata::data_type"]
[::std::mem::offset_of!(dds_psmx_metadata, data_type) - 4usize];
["Offset of field: dds_psmx_metadata::instance_id"]
[::std::mem::offset_of!(dds_psmx_metadata, instance_id) - 8usize];
["Offset of field: dds_psmx_metadata::sample_size"]
[::std::mem::offset_of!(dds_psmx_metadata, sample_size) - 12usize];
["Offset of field: dds_psmx_metadata::guid"]
[::std::mem::offset_of!(dds_psmx_metadata, guid) - 16usize];
["Offset of field: dds_psmx_metadata::timestamp"]
[::std::mem::offset_of!(dds_psmx_metadata, timestamp) - 32usize];
["Offset of field: dds_psmx_metadata::statusinfo"]
[::std::mem::offset_of!(dds_psmx_metadata, statusinfo) - 40usize];
["Offset of field: dds_psmx_metadata::cdr_identifier"]
[::std::mem::offset_of!(dds_psmx_metadata, cdr_identifier) - 44usize];
["Offset of field: dds_psmx_metadata::cdr_options"]
[::std::mem::offset_of!(dds_psmx_metadata, cdr_options) - 46usize];
};
impl Default for dds_psmx_metadata {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief Describes the data which is transferred in addition to the application data\n @ingroup psmx\n\n All fields are filled in by Cyclone DDS during the write prior to handing it to the\n PSMX plug-in. The plug-in is only required to pass the contents to Cyclone DDS on the\n receiving side."]
pub type dds_psmx_metadata_t = dds_psmx_metadata;
#[doc = " @brief PSMX Locator\n @ingroup psmx"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_psmx_node_identifier {
pub x: [u8; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_psmx_node_identifier"]
[::std::mem::size_of::<dds_psmx_node_identifier>() - 16usize];
["Alignment of dds_psmx_node_identifier"]
[::std::mem::align_of::<dds_psmx_node_identifier>() - 1usize];
["Offset of field: dds_psmx_node_identifier::x"]
[::std::mem::offset_of!(dds_psmx_node_identifier, x) - 0usize];
};
#[doc = " @brief PSMX Locator\n @ingroup psmx"]
pub type dds_psmx_node_identifier_t = dds_psmx_node_identifier;
#[doc = " @brief Definition of the function checking support for type and QoS\n @ingroup psmx\n\n A PSMX Instance in the \"PSMX Instances\" QoS may accept or reject a given DDS\n Topic/Reader/Writer based on information on the type and the QoS settings. PSMX\n Instances not in the \"PSMX Instances\" QoS setting are not asked.\n\n @param[in] psmx_instance The PSMX Instance\n @param[in] forwhat Whether for a topic/writer/reader (UNSET if topic)\n @param[in] data_type_props Data type properties (see there)\n @param[in] qos QoS of the DDS topic\n @returns True if the PSMX Instance is willing to handle this DDS entity, false otherwise"]
pub type dds_psmx_type_qos_supported_fn = ::std::option::Option<
unsafe extern "C" fn(
psmx_instance: *mut dds_psmx,
forwhat: dds_psmx_endpoint_type_t,
data_type_props: dds_data_type_properties_t,
qos: *const dds_qos,
) -> bool,
>;
#[doc = " @brief Definition of the function for creating a PSMX Topic (interface version 1)\n @ingroup psmx\n\n Definition for a function that is called to construct a new PSMX Topic in a PSMX Instance\n representing a new topic in the DDS Domain Entity.\n\n The PSMX Plugin is expected to represent a PSMX Topic using an extended version of the\n `dds_psmx_topic` structure. The plugin is responsible for setting `ops` to the addresses\n of the various functions implementing the operations. The other members of the `dds_psmx_topic`\n structure are initialized by Cyclone DDS and should not be initialized by the plugin.\n\n If `type_definition` is not a null pointer, it points into the Cyclone type library. A\n (default, C) serializer can be constructed using `ddsi_topic_descriptor_from_type`,\n an XTypes TypeObject using `ddsi_type_get_typeobj`.\n\n If the function returns failure (a null pointer), creation of the DDS Entity fails.\n\n @param[in] psmx_instance The PSMX instance.\n @param[in] topic_name The name of the topic to create\n @param[in] type_name The name of the DDS data type for this topic\n @param[in] data_type_props The data type properties for the topic's data type.\n @param[in] type_definition Optional pointer to type definition in type library.\n @param[in] sizeof_type In-memory size of a single instance of the type, 0 if unknown.\n @returns A new PSMX Topic structure, or NULL on error"]
pub type dds_psmx_create_topic_with_type_fn = ::std::option::Option<
unsafe extern "C" fn(
psmx_instance: *mut dds_psmx,
topic_name: *const ::std::ffi::c_char,
type_name: *const ::std::ffi::c_char,
data_type_props: dds_data_type_properties_t,
type_definition: *const ddsi_type,
sizeof_type: u32,
) -> *mut dds_psmx_topic,
>;
#[doc = " @brief Definition of the function for destructing and freeing a PSMX Topic\n @ingroup psmx\n\n Definition for a function that is called on deleting the topic in the DDS Domain.\n Called exactly once for each successful invocation of `dds_psmx_create_topic`/\n `dds_psmx_create_topic_with_type`, all PSMX Endpoints related to this PSMX Topic will have\n been destructed prior to calling this function.\n\n When using interface version 0 (so the PSMX Topic was created using `dds_psmx_create_topic`),\n the PSMX Plugin is required to call `dds_psmx_topic_cleanup_generic` and to do so prior to\n invalidating the memory associated with the PSMX Topic and releasing any memory allocated for\n it during construction.\n\n @param[in] psmx_topic The PSMX Topic to destruct\n @returns A DDS return code, should be DDS_RETCODE_OK."]
pub type dds_psmx_delete_topic_fn =
::std::option::Option<unsafe extern "C" fn(psmx_topic: *mut dds_psmx_topic) -> dds_return_t>;
#[doc = " @brief Definition of the function for creating a PSMX Topic (interface version 0)\n @ingroup psmx\n\n Equivalent to `dds_psmx_create_topic_type` with `type_definition` and `sizeof_type`\n a null pointer and 0, respectively. It is required to initialize the generic fields using\n `dds_psmx_topic_init_generic`.\n\n @param[in] psmx_instance The PSMX instance.\n @param[in] topic_name The name of the topic to create\n @param[in] type_name The name of the DDS data type for this topic\n @param[in] data_type_props The data type properties for the topic's data type.\n @returns A new PSMX Topic structure, or NULL on error"]
pub type dds_psmx_create_topic_fn = ::std::option::Option<
unsafe extern "C" fn(
psmx_instance: *mut dds_psmx,
topic_name: *const ::std::ffi::c_char,
type_name: *const ::std::ffi::c_char,
data_type_props: dds_data_type_properties_t,
) -> *mut dds_psmx_topic,
>;
#[doc = " @brief Definition of the function for destructing and freeing a PSMX Instance (interface version 1)\n @ingroup psmx\n\n Function called on shutdown of a DDS Domain Entity, before unloading the PSMX Plugin\n and after all other operations have completed and all objects created in the PSMX\n Instance have been destructed using the various \"delete\" functions.\n\n @param[in] psmx_instance The PSMX Instance to de-initialize"]
pub type dds_psmx_delete_fn =
::std::option::Option<unsafe extern "C" fn(psmx_instance: *mut dds_psmx)>;
#[doc = " @brief Definition of the function for destructing and freeing a PSMX Instance (interface version 0)\n @ingroup psmx\n\n Function called on shutdown of a DDS Domain Entity, before unloading the PSMX Plugin\n and after all other operations have completed and all objects created in the PSMX\n Instance have been destructed using the various \"delete\" functions.\n\n The PSMX Plugin is required to call `dds_psmx_cleanup_generic` and to do so prior to\n invalidating the memory associated with the PSMX Instance and releasing any memory\n allocated for it during construction.\n\n @param[in] psmx_instance The PSMX Instance to de-initialize\n @returns A DDS return code, should be DDS_RETCODE_OK."]
pub type dds_psmx_deinit_fn =
::std::option::Option<unsafe extern "C" fn(psmx_instance: *mut dds_psmx) -> dds_return_t>;
#[doc = " @brief Definition of the function returning the PSMX Locator\n @ingroup psmx\n\n All PSMX Instances that can communicate must return the same PSMX Locator, PSMX\n Instances that do not communicate must return different PSMX Locators.\n\n The function may be called by `dds_psmx_init_generic`.\n\n @param[in] psmx_instance A PSMX Instance\n @returns The PSMX Locator for this PSMX Instance"]
pub type dds_psmx_get_node_identifier_fn = ::std::option::Option<
unsafe extern "C" fn(psmx_instance: *const dds_psmx) -> dds_psmx_node_identifier_t,
>;
#[doc = " @brief Definition of the function to query the features supported by the PSMX Instance\n @ingroup psmx\n\n Returns an integer with the flags set for the features that are supported by the\n provided PSMX Instance.\n\n @param[in] psmx_instance A PSMX instance\n @returns The set of features supported by this PSMX instance"]
pub type dds_psmx_supported_features_fn = ::std::option::Option<
unsafe extern "C" fn(psmx_instance: *const dds_psmx) -> dds_psmx_features_t,
>;
#[doc = " @brief Table of pointers to functions operating on a PSMX Instance\n @ingroup psmx"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_psmx_ops {
pub type_qos_supported: dds_psmx_type_qos_supported_fn,
#[doc = "< non-null for interface version 0, null for version 1"]
pub create_topic: dds_psmx_create_topic_fn,
pub delete_topic: dds_psmx_delete_topic_fn,
#[doc = "< non-null for interface version 0, null for version 1"]
pub deinit: dds_psmx_deinit_fn,
pub get_node_id: dds_psmx_get_node_identifier_fn,
pub supported_features: dds_psmx_supported_features_fn,
#[doc = "< undefined for interface version 0, non-null for version 1"]
pub create_topic_with_type: dds_psmx_create_topic_with_type_fn,
#[doc = "< undefined for interface version 0, non-null for version 1"]
pub delete_psmx: dds_psmx_delete_fn,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_psmx_ops"][::std::mem::size_of::<dds_psmx_ops>() - 64usize];
["Alignment of dds_psmx_ops"][::std::mem::align_of::<dds_psmx_ops>() - 8usize];
["Offset of field: dds_psmx_ops::type_qos_supported"]
[::std::mem::offset_of!(dds_psmx_ops, type_qos_supported) - 0usize];
["Offset of field: dds_psmx_ops::create_topic"]
[::std::mem::offset_of!(dds_psmx_ops, create_topic) - 8usize];
["Offset of field: dds_psmx_ops::delete_topic"]
[::std::mem::offset_of!(dds_psmx_ops, delete_topic) - 16usize];
["Offset of field: dds_psmx_ops::deinit"]
[::std::mem::offset_of!(dds_psmx_ops, deinit) - 24usize];
["Offset of field: dds_psmx_ops::get_node_id"]
[::std::mem::offset_of!(dds_psmx_ops, get_node_id) - 32usize];
["Offset of field: dds_psmx_ops::supported_features"]
[::std::mem::offset_of!(dds_psmx_ops, supported_features) - 40usize];
["Offset of field: dds_psmx_ops::create_topic_with_type"]
[::std::mem::offset_of!(dds_psmx_ops, create_topic_with_type) - 48usize];
["Offset of field: dds_psmx_ops::delete_psmx"]
[::std::mem::offset_of!(dds_psmx_ops, delete_psmx) - 56usize];
};
#[doc = " @brief Table of pointers to functions operating on a PSMX Instance\n @ingroup psmx"]
pub type dds_psmx_ops_t = dds_psmx_ops;
#[doc = " @brief Definition of the function for constructing a PSMX Endpoint for a PSMX Topic\n @ingroup psmx\n\n The PSMX Plugin is expected to represent a PSMX Endpoint using an extended version of the\n `dds_psmx_endpoint` structure. The behaviour of the plugin is dependent on the interface\n version it implements:\n\n - For version 0, it is responsible for setting:\n\n - ops to the addresses of the various functions implementing the operations\n - endpoint_type to the value that is passed in the `endpoint_type` parameter\n - psmx_topic to the PSMX Topic that is passed in the `psmx_topic` parameter\n\n - For version 1, it is responsible for setting:\n\n - ops\n\n The other members of the `dds_psmx_endpoint` structure are initialized by Cyclone DDS.\n\n @param[in] psmx_topic The PSMX Topic to create the PSMX Endpoint for\n @param[in] qos QoS of the corresponding DDS endpoint\n @param[in] endpoint_type The type of endpoint to create, either READER or WRITER\n @returns A new PSMX Endpoint or a null pointer on error"]
pub type dds_psmx_create_endpoint_fn = ::std::option::Option<
unsafe extern "C" fn(
psmx_topic: *mut dds_psmx_topic,
qos: *const dds_qos,
endpoint_type: dds_psmx_endpoint_type_t,
) -> *mut dds_psmx_endpoint,
>;
#[doc = " @brief Definition of the function for destructing a PSMX Endpoint\n @ingroup psmx\n\n Called after the last operation on the PSMX Endpoint has completed and no further\n operations will be invoked; called prior to destructing the PSMX Topic.\n\n @param[in] psmx_endpoint The PSMX Endpoint to be destructed\n @returns a DDS return code, should be DDS_RETCODE_OK"]
pub type dds_psmx_delete_endpoint_fn = ::std::option::Option<
unsafe extern "C" fn(psmx_endpoint: *mut dds_psmx_endpoint) -> dds_return_t,
>;
#[doc = " @brief Table of pointers to functions operating on a PSMX Topic\n @ingroup psmx"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_psmx_topic_ops {
pub create_endpoint: dds_psmx_create_endpoint_fn,
pub delete_endpoint: dds_psmx_delete_endpoint_fn,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_psmx_topic_ops"][::std::mem::size_of::<dds_psmx_topic_ops>() - 16usize];
["Alignment of dds_psmx_topic_ops"][::std::mem::align_of::<dds_psmx_topic_ops>() - 8usize];
["Offset of field: dds_psmx_topic_ops::create_endpoint"]
[::std::mem::offset_of!(dds_psmx_topic_ops, create_endpoint) - 0usize];
["Offset of field: dds_psmx_topic_ops::delete_endpoint"]
[::std::mem::offset_of!(dds_psmx_topic_ops, delete_endpoint) - 8usize];
};
#[doc = " @brief Table of pointers to functions operating on a PSMX Topic\n @ingroup psmx"]
pub type dds_psmx_topic_ops_t = dds_psmx_topic_ops;
#[doc = " @brief Definition of the function for requesting a loan from a PSMX Writer\n @ingroup psmx\n\n The PSMX Instance is the owner of the loan and implements the allocation and the\n freeing of the memory for the `dds_loaned_sample_t`, the `dds_psmx_metadata_t` it\n references and the payload it references.\n\n The `dds_loaned_sample_t` is reference counted and the free function referenced through\n the \"ops\" table is invoked once the reference count drops to 0.\n\n The PSMX Plugin is required to properly initialize all fields:\n\n - ops\n - metadata, the contents of the memory it points to may be undefined\n - sample_ptr, the contents of the memory it points to may be undefined\n\n The loan_origin and refc fields are set by Cyclone DDS following a succesful return.\n\n The `sample_ptr` in the Loaned Sample must point to a unique memory block of at least\n `size_requested` bytes and be suitably aligned to directly store any of the types in\n application-representation to which the various supported IDL types map.\n\n `size_requested` is equal to `sizeof_type` in the PSMX create topic call if:\n - the loan is to be used for a raw sample (implies `IS_MEMCPY_SAFE` set in the type properties)\n - `sizeof_type` was non-0 in the call to create the PSMX Topic\n\n @param[in] psmx_endpoint The PSMX Writer to borrow from\n @param[in] size_requested The size of the loan requested in bytes\n @returns A pointer to the Loaned Sample on success or a null pointer on failure"]
pub type dds_psmx_endpoint_request_loan_fn = ::std::option::Option<
unsafe extern "C" fn(
psmx_endpoint: *mut dds_psmx_endpoint,
size_requested: u32,
) -> *mut dds_loaned_sample_t,
>;
#[doc = " @brief Definition of function for writing data via a PSMX Writer\n @ingroup psmx\n\n The PSMX Plugin is expected to publish the payload and the metadata of the Loaned\n Sample via the PSMX Instance to its subscribers as described in the overview. The\n Loaned Sample:\n\n - originated in a successful request for a loan from this PSMX Instance;\n - has the metadata and payload set correctly;\n - has a metadata state that is not `UNINITIALIZED`.\n\n Cyclone DDS assumes:\n\n - that the `dds_loaned_sample_t` outlives the PSMX write operation\n - that the `sample_ptr` and `metadata` are invalidated by the PSMX write operation\n\n and will consequently not touch the `sample_ptr` and `metadata` after the operation and\n only invoke the Loaned Sample's `free` function.\n\n If the operations fails and returns an error, the DDS write (or write-like) operation\n that caused it will report an error to the application. It is unspecified whether or\n not any other deliver paths may or may not have been provided with the data when this\n happens.\n\n @param[in] psmx_endpoint The PSMX Writer to publish the data on\n @param[in] data The Loaned Sample containing the data to publish\n @param[in] keysz The size of the serialized key blob, 0 for keyless topics\n @param[in] key The serialized key, a null pointer for keyless topics\n @returns A DDS return code"]
pub type dds_psmx_endpoint_write_with_key_fn = ::std::option::Option<
unsafe extern "C" fn(
psmx_endpoint: *mut dds_psmx_endpoint,
data: *mut dds_loaned_sample_t,
keysz: usize,
key: *const ::std::ffi::c_void,
) -> dds_return_t,
>;
#[doc = " @brief Definition of function for writing data via a PSMX Writer\n @ingroup psmx\n\n Equivalent to `dds_psmx_endpoint_write_with_key_fn` with `keysz` = 0 and `key` = NULL"]
pub type dds_psmx_endpoint_write_fn = ::std::option::Option<
unsafe extern "C" fn(
psmx_endpoint: *mut dds_psmx_endpoint,
data: *mut dds_loaned_sample_t,
) -> dds_return_t,
>;
#[doc = " @brief Definition of function for taking data from a PSMX Reader\n @ingroup psmx\n\n Return an unread sample available to the PSMX Reader and remove it from the set of\n samples available to the PSMX Reader. It should ensure, firstly, that a sample for\n each key value for which data is available shall eventually be returned, and, secondly,\n that samples for a given key value are returned in the order of publication.\n\n The Loaned Sample shall be fully initialized on return, with a metadata sample state\n different from `UNINITIALIZED`.\n\n (Currently not called.)\n\n @param[in] psmx_endpoint The PSMX Reader to take the data from\n @returns a Loaned Sample for an unread sample, or a null pointer if none is available"]
pub type dds_psmx_endpoint_take_fn = ::std::option::Option<
unsafe extern "C" fn(psmx_endpoint: *mut dds_psmx_endpoint) -> *mut dds_loaned_sample_t,
>;
#[doc = " @brief Definition of function to request asynchronous delivery of new data by a PSMX Reader\n @ingroup psmx\n\n The PSMX Plugin is requested to arrange for data arriving at the PSMX Reader to be\n delivered to Cyclone DDS as if a background thread exists that contains a loop body:\n ```\n dds_loaned_sample_t *ls = dds_psmx_endpoint_ops.take(psmx_endpoint)\n if (ls != NULL) {\n dds_reader_store_loaned_sample(reader, ls);\n }\n dds_loaned_sample_unref(ls)\n ```\n (alternatively calling `dds_reader_store_loaned_sample_wr_metadata` for each sample)\n\n @param[in] psmx_endpoint The PSMX Reader on which to enable asynchronous delivery\n @param[in] reader The DDS Reader to which the data is to be delivered\n @returns a DDS return code"]
pub type dds_psmx_endpoint_on_data_available_fn = ::std::option::Option<
unsafe extern "C" fn(
psmx_endpoint: *mut dds_psmx_endpoint,
reader: dds_entity_t,
) -> dds_return_t,
>;
#[doc = " @brief Table of pointers to functions that are used on a PSMX Endpoint\n @ingroup psmx"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_psmx_endpoint_ops {
pub request_loan: dds_psmx_endpoint_request_loan_fn,
#[doc = "< write, not required if `write_key` is defined"]
pub write: dds_psmx_endpoint_write_fn,
pub take: dds_psmx_endpoint_take_fn,
pub on_data_available: dds_psmx_endpoint_on_data_available_fn,
#[doc = "< may be null for backwards compatibility if `write` is defined"]
pub write_with_key: dds_psmx_endpoint_write_with_key_fn,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_psmx_endpoint_ops"][::std::mem::size_of::<dds_psmx_endpoint_ops>() - 40usize];
["Alignment of dds_psmx_endpoint_ops"]
[::std::mem::align_of::<dds_psmx_endpoint_ops>() - 8usize];
["Offset of field: dds_psmx_endpoint_ops::request_loan"]
[::std::mem::offset_of!(dds_psmx_endpoint_ops, request_loan) - 0usize];
["Offset of field: dds_psmx_endpoint_ops::write"]
[::std::mem::offset_of!(dds_psmx_endpoint_ops, write) - 8usize];
["Offset of field: dds_psmx_endpoint_ops::take"]
[::std::mem::offset_of!(dds_psmx_endpoint_ops, take) - 16usize];
["Offset of field: dds_psmx_endpoint_ops::on_data_available"]
[::std::mem::offset_of!(dds_psmx_endpoint_ops, on_data_available) - 24usize];
["Offset of field: dds_psmx_endpoint_ops::write_with_key"]
[::std::mem::offset_of!(dds_psmx_endpoint_ops, write_with_key) - 32usize];
};
#[doc = " @brief Table of pointers to functions that are used on a PSMX Endpoint\n @ingroup psmx"]
pub type dds_psmx_endpoint_ops_t = dds_psmx_endpoint_ops;
#[doc = " @brief Type representing a PSMX Instance in a DDS Domain Entity\n @ingroup psmx\n\n Each PSMX Instance is represented in a DDS Domain Entity by a pointer to a `struct dds_psmx`.\n The PSMX Plugin is responsible for allocating and constructing it on initialization in a constructor\n as described in the overview."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_psmx {
#[doc = "< operations on the PSMX Instance"]
pub ops: dds_psmx_ops_t,
#[doc = "< name of this PSMX Instance"]
pub instance_name: *const ::std::ffi::c_char,
#[doc = "< priority for this interface"]
pub priority: i32,
#[doc = "< PSMX Locator for this PSMX Instance"]
pub locator: *mut ddsi_locator,
#[doc = "< Numeric PSMX Instance ID for this PSMX Instance"]
pub instance_id: dds_psmx_instance_id_t,
#[doc = "< Reserved, must be 0"]
pub psmx_topics: *mut ::std::ffi::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_psmx"][::std::mem::size_of::<dds_psmx>() - 104usize];
["Alignment of dds_psmx"][::std::mem::align_of::<dds_psmx>() - 8usize];
["Offset of field: dds_psmx::ops"][::std::mem::offset_of!(dds_psmx, ops) - 0usize];
["Offset of field: dds_psmx::instance_name"]
[::std::mem::offset_of!(dds_psmx, instance_name) - 64usize];
["Offset of field: dds_psmx::priority"][::std::mem::offset_of!(dds_psmx, priority) - 72usize];
["Offset of field: dds_psmx::locator"][::std::mem::offset_of!(dds_psmx, locator) - 80usize];
["Offset of field: dds_psmx::instance_id"]
[::std::mem::offset_of!(dds_psmx, instance_id) - 88usize];
["Offset of field: dds_psmx::psmx_topics"]
[::std::mem::offset_of!(dds_psmx, psmx_topics) - 96usize];
};
impl Default for dds_psmx {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief Type representing a PSMX Instance in a DDS Domain Entity\n @ingroup psmx\n\n Each PSMX Instance is represented in a DDS Domain Entity by a pointer to a `struct dds_psmx`.\n The PSMX Plugin is responsible for allocating and constructing it on initialization in a constructor\n as described in the overview."]
pub type dds_psmx_t = dds_psmx;
#[doc = " @brief Type representing a PSMX Topic in a DDS Domain Entity\n @ingroup psmx"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_psmx_topic {
#[doc = "< operations on the PSMX Topic"]
pub ops: dds_psmx_topic_ops_t,
#[doc = "< PSMX Instance which created this PSMX Topic"]
pub psmx_instance: *mut dds_psmx,
#[doc = "< Topic name"]
pub topic_name: *const ::std::ffi::c_char,
#[doc = "< Type name"]
pub type_name: *const ::std::ffi::c_char,
#[doc = "< Reserved, must be 0"]
pub data_type: dds_loan_data_type_t,
#[doc = "< Reserved, must be 0"]
pub psmx_endpoints: *mut ::std::ffi::c_void,
#[doc = "< Properties of the data type associated with this topic"]
pub data_type_props: dds_data_type_properties_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_psmx_topic"][::std::mem::size_of::<dds_psmx_topic>() - 64usize];
["Alignment of dds_psmx_topic"][::std::mem::align_of::<dds_psmx_topic>() - 8usize];
["Offset of field: dds_psmx_topic::ops"][::std::mem::offset_of!(dds_psmx_topic, ops) - 0usize];
["Offset of field: dds_psmx_topic::psmx_instance"]
[::std::mem::offset_of!(dds_psmx_topic, psmx_instance) - 16usize];
["Offset of field: dds_psmx_topic::topic_name"]
[::std::mem::offset_of!(dds_psmx_topic, topic_name) - 24usize];
["Offset of field: dds_psmx_topic::type_name"]
[::std::mem::offset_of!(dds_psmx_topic, type_name) - 32usize];
["Offset of field: dds_psmx_topic::data_type"]
[::std::mem::offset_of!(dds_psmx_topic, data_type) - 40usize];
["Offset of field: dds_psmx_topic::psmx_endpoints"]
[::std::mem::offset_of!(dds_psmx_topic, psmx_endpoints) - 48usize];
["Offset of field: dds_psmx_topic::data_type_props"]
[::std::mem::offset_of!(dds_psmx_topic, data_type_props) - 56usize];
};
impl Default for dds_psmx_topic {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief Type representing a PSMX Topic in a DDS Domain Entity\n @ingroup psmx"]
pub type dds_psmx_topic_t = dds_psmx_topic;
#[doc = " @brief Type representing a PSMX Endpoint in a DDS Domain Entity\n @ingroup psmx"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_psmx_endpoint {
#[doc = "< operations on the PSMX Endpoint"]
pub ops: dds_psmx_endpoint_ops_t,
#[doc = "< PSMX Topic for this endpoint"]
pub psmx_topic: *mut dds_psmx_topic,
#[doc = "< Type of endpoint (READER or WRITER)"]
pub endpoint_type: dds_psmx_endpoint_type_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_psmx_endpoint"][::std::mem::size_of::<dds_psmx_endpoint>() - 56usize];
["Alignment of dds_psmx_endpoint"][::std::mem::align_of::<dds_psmx_endpoint>() - 8usize];
["Offset of field: dds_psmx_endpoint::ops"]
[::std::mem::offset_of!(dds_psmx_endpoint, ops) - 0usize];
["Offset of field: dds_psmx_endpoint::psmx_topic"]
[::std::mem::offset_of!(dds_psmx_endpoint, psmx_topic) - 40usize];
["Offset of field: dds_psmx_endpoint::endpoint_type"]
[::std::mem::offset_of!(dds_psmx_endpoint, endpoint_type) - 48usize];
};
impl Default for dds_psmx_endpoint {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[doc = " @brief Type representing a PSMX Endpoint in a DDS Domain Entity\n @ingroup psmx"]
pub type dds_psmx_endpoint_t = dds_psmx_endpoint;
unsafe extern "C" {
#[doc = " @brief nop\n @ingroup psmx\n\n does nothing, exists for backwards compatibility only\n\n @param[in] psmx_topic ignored\n @param[in,out] list ignored\n @return `DDS_RETCODE_OK`"]
pub fn dds_add_psmx_topic_to_list(
psmx_topic: *mut dds_psmx_topic,
list: *mut *mut ::std::ffi::c_void,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief nop\n @ingroup psmx\n\n does nothing, exists for backwards compatibility only\n\n @param[in] psmx_topic ignored\n @param[in,out] list ignored\n @return `DDS_RETCODE_OK`"]
pub fn dds_remove_psmx_topic_from_list(
psmx_topic: *mut dds_psmx_topic,
list: *mut *mut ::std::ffi::c_void,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief nop\n @ingroup psmx\n\n does nothing, exists for backwards compatibility only\n\n @param[in] psmx_endpoint ignored\n @param[in,out] list ignored\n @return `DDS_RETCODE_OK`"]
pub fn dds_add_psmx_endpoint_to_list(
psmx_endpoint: *mut dds_psmx_endpoint,
list: *mut *mut ::std::ffi::c_void,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief nop\n @ingroup psmx\n\n does nothing, exists for backwards compatibility only\n\n @param[in] psmx_endpoint ignored\n @param[in,out] list ignored\n @return `DDS_RETCODE_OK`"]
pub fn dds_remove_psmx_endpoint_from_list(
psmx_endpoint: *mut dds_psmx_endpoint,
list: *mut *mut ::std::ffi::c_void,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief initialization function for PSMX instance (interface version 0)\n @ingroup psmx\n\n Shall be called by a constructor function for a PSMX Plugin implementing interface\n version 0 as described in the overview.\n\n @param[in] psmx The PSMX instance to initialize\n @return a DDS return code"]
pub fn dds_psmx_init_generic(psmx: *mut dds_psmx) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief cleanup function for a PSMX instance (interface version 0)\n @ingroup psmx\n\n Shall be called by the destructor function of PSMX Plugin implementing interface\n version 0 as described in the documentation of \"dds_psmx_deinit_fn\".\n\n @param[in] psmx the PSMX instance to cleanup\n @return a DDS return code"]
pub fn dds_psmx_cleanup_generic(psmx: *mut dds_psmx) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief init function for topic (interface version 0)\n @ingroup psmx\n\n Shall be called by de topic constructor function for a PSMX Plugin implementing\n interface version 0.\n\n @param[in] psmx_topic the topic to initialize\n @param[in] ops vtable for this psmx_topic\n @param[in] psmx the PSMX instance\n @param[in] topic_name the topic name\n @param[in] type_name the DDS type name for this topic\n @param[in] data_type_props the data type's properties\n @return a DDS return code"]
pub fn dds_psmx_topic_init_generic(
psmx_topic: *mut dds_psmx_topic,
ops: *const dds_psmx_topic_ops_t,
psmx: *const dds_psmx,
topic_name: *const ::std::ffi::c_char,
type_name: *const ::std::ffi::c_char,
data_type_props: dds_data_type_properties_t,
) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief cleanup function for a topic (interface version 0)\n @ingroup psmx\n\n Shall be called by de topic destructor function for a PSMX Plugin implementing\n interface version 0 as described in the documentation of \"dds_psmx_delete_topic_fn\".\n\n @param[in] psmx_topic the topic to de-initialize\n @return a DDS return code"]
pub fn dds_psmx_topic_cleanup_generic(psmx_topic: *mut dds_psmx_topic) -> dds_return_t;
}
unsafe extern "C" {
#[doc = " @brief Returns the string associated with the option_name in the PSMX config string.\n @ingroup psmx\n\n The C string returned from this function should be freed by the user using `ddsrt_free`.\n\n The option \"SERVICE_NAME\" is treated as an alias for \"INSTANCE_NAME\".\n\n @param[in] conf a double-\\0 terminated configuration string in the\n same format as that passed to the PSMX Plugin's constructor\n function (see the overview).\n @param[in] option_name the option to look up\n @return pointer to a newly allocated string on the heap if found, NULL if not found or out of memory."]
pub fn dds_psmx_get_config_option_value(
conf: *const ::std::ffi::c_char,
option_name: *const ::std::ffi::c_char,
) -> *mut ::std::ffi::c_char;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union ddsi_guid_prefix {
pub s: [::std::ffi::c_uchar; 12usize],
pub u: [u32; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of ddsi_guid_prefix"][::std::mem::size_of::<ddsi_guid_prefix>() - 12usize];
["Alignment of ddsi_guid_prefix"][::std::mem::align_of::<ddsi_guid_prefix>() - 4usize];
["Offset of field: ddsi_guid_prefix::s"][::std::mem::offset_of!(ddsi_guid_prefix, s) - 0usize];
["Offset of field: ddsi_guid_prefix::u"][::std::mem::offset_of!(ddsi_guid_prefix, u) - 0usize];
};
impl Default for ddsi_guid_prefix {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type ddsi_guid_prefix_t = ddsi_guid_prefix;
#[repr(C)]
#[derive(Copy, Clone)]
pub union ddsi_entityid {
pub u: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of ddsi_entityid"][::std::mem::size_of::<ddsi_entityid>() - 4usize];
["Alignment of ddsi_entityid"][::std::mem::align_of::<ddsi_entityid>() - 4usize];
["Offset of field: ddsi_entityid::u"][::std::mem::offset_of!(ddsi_entityid, u) - 0usize];
};
impl Default for ddsi_entityid {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type ddsi_entityid_t = ddsi_entityid;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ddsi_guid {
pub prefix: ddsi_guid_prefix_t,
pub entityid: ddsi_entityid_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of ddsi_guid"][::std::mem::size_of::<ddsi_guid>() - 16usize];
["Alignment of ddsi_guid"][::std::mem::align_of::<ddsi_guid>() - 4usize];
["Offset of field: ddsi_guid::prefix"][::std::mem::offset_of!(ddsi_guid, prefix) - 0usize];
["Offset of field: ddsi_guid::entityid"][::std::mem::offset_of!(ddsi_guid, entityid) - 12usize];
};
impl Default for ddsi_guid {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type ddsi_guid_t = ddsi_guid;
unsafe extern "C" {
#[doc = " @component misc"]
pub fn ddsi_hton_guid(g: ddsi_guid_t) -> ddsi_guid_t;
}
unsafe extern "C" {
#[doc = " @component misc"]
pub fn ddsi_ntoh_guid(g: ddsi_guid_t) -> ddsi_guid_t;
}
unsafe extern "C" {
#[doc = " @component misc"]
pub fn ddsi_hton_guid_prefix(p: ddsi_guid_prefix_t) -> ddsi_guid_prefix_t;
}
unsafe extern "C" {
#[doc = " @component misc"]
pub fn ddsi_ntoh_guid_prefix(p: ddsi_guid_prefix_t) -> ddsi_guid_prefix_t;
}
unsafe extern "C" {
#[doc = " @component misc"]
pub fn ddsi_hton_entityid(e: ddsi_entityid_t) -> ddsi_entityid_t;
}
unsafe extern "C" {
#[doc = " @component misc"]
pub fn ddsi_ntoh_entityid(e: ddsi_entityid_t) -> ddsi_entityid_t;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_tkmap_instance {
_unused: [u8; 0],
}
#[repr(C)]
pub struct ddsi_writer_info {
pub guid: ddsi_guid_t,
pub auto_dispose: bool,
pub ownership_strength: i32,
pub iid: u64,
pub lifespan_exp: ddsrt_mtime_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of ddsi_writer_info"][::std::mem::size_of::<ddsi_writer_info>() - 40usize];
["Alignment of ddsi_writer_info"][::std::mem::align_of::<ddsi_writer_info>() - 8usize];
["Offset of field: ddsi_writer_info::guid"]
[::std::mem::offset_of!(ddsi_writer_info, guid) - 0usize];
["Offset of field: ddsi_writer_info::auto_dispose"]
[::std::mem::offset_of!(ddsi_writer_info, auto_dispose) - 16usize];
["Offset of field: ddsi_writer_info::ownership_strength"]
[::std::mem::offset_of!(ddsi_writer_info, ownership_strength) - 20usize];
["Offset of field: ddsi_writer_info::iid"]
[::std::mem::offset_of!(ddsi_writer_info, iid) - 24usize];
["Offset of field: ddsi_writer_info::lifespan_exp"]
[::std::mem::offset_of!(ddsi_writer_info, lifespan_exp) - 32usize];
};
impl Default for ddsi_writer_info {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type ddsi_rhc_free_t = ::std::option::Option<unsafe extern "C" fn(rhc: *mut ddsi_rhc)>;
pub type ddsi_rhc_store_t = ::std::option::Option<
unsafe extern "C" fn(
rhc: *mut ddsi_rhc,
wrinfo: *const ddsi_writer_info,
sample: *mut ddsi_serdata,
tk: *mut ddsi_tkmap_instance,
) -> bool,
>;
pub type ddsi_rhc_unregister_wr_t = ::std::option::Option<
unsafe extern "C" fn(rhc: *mut ddsi_rhc, wrinfo: *const ddsi_writer_info),
>;
pub type ddsi_rhc_relinquish_ownership_t =
::std::option::Option<unsafe extern "C" fn(rhc: *mut ddsi_rhc, wr_iid: u64)>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct ddsi_rhc_ops {
pub store: ddsi_rhc_store_t,
pub unregister_wr: ddsi_rhc_unregister_wr_t,
pub relinquish_ownership: ddsi_rhc_relinquish_ownership_t,
pub free: ddsi_rhc_free_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of ddsi_rhc_ops"][::std::mem::size_of::<ddsi_rhc_ops>() - 32usize];
["Alignment of ddsi_rhc_ops"][::std::mem::align_of::<ddsi_rhc_ops>() - 8usize];
["Offset of field: ddsi_rhc_ops::store"][::std::mem::offset_of!(ddsi_rhc_ops, store) - 0usize];
["Offset of field: ddsi_rhc_ops::unregister_wr"]
[::std::mem::offset_of!(ddsi_rhc_ops, unregister_wr) - 8usize];
["Offset of field: ddsi_rhc_ops::relinquish_ownership"]
[::std::mem::offset_of!(ddsi_rhc_ops, relinquish_ownership) - 16usize];
["Offset of field: ddsi_rhc_ops::free"][::std::mem::offset_of!(ddsi_rhc_ops, free) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_rhc {
pub ops: *const ddsi_rhc_ops,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of ddsi_rhc"][::std::mem::size_of::<ddsi_rhc>() - 8usize];
["Alignment of ddsi_rhc"][::std::mem::align_of::<ddsi_rhc>() - 8usize];
["Offset of field: ddsi_rhc::ops"][::std::mem::offset_of!(ddsi_rhc, ops) - 0usize];
};
impl Default for ddsi_rhc {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_readcond {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_reader {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_tkmap {
_unused: [u8; 0],
}
pub type dds_rhc_associate_t = ::std::option::Option<
unsafe extern "C" fn(rhc: *mut dds_rhc, reader: *mut dds_reader) -> dds_return_t,
>;
pub type dds_rhc_read_take_t = ::std::option::Option<
unsafe extern "C" fn(
rhc: *mut dds_rhc,
max_samples: i32,
mask: u32,
handle: dds_instance_handle_t,
cond: *mut dds_readcond,
collect_sample: dds_read_with_collector_fn_t,
collect_sample_arg: *mut ::std::ffi::c_void,
) -> i32,
>;
pub type dds_rhc_add_readcondition_t =
::std::option::Option<unsafe extern "C" fn(rhc: *mut dds_rhc, cond: *mut dds_readcond) -> bool>;
pub type dds_rhc_remove_readcondition_t =
::std::option::Option<unsafe extern "C" fn(rhc: *mut dds_rhc, cond: *mut dds_readcond)>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_rhc_ops {
pub rhc_ops: ddsi_rhc_ops,
pub peek: dds_rhc_read_take_t,
pub read: dds_rhc_read_take_t,
pub take: dds_rhc_read_take_t,
pub add_readcondition: dds_rhc_add_readcondition_t,
pub remove_readcondition: dds_rhc_remove_readcondition_t,
pub associate: dds_rhc_associate_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_rhc_ops"][::std::mem::size_of::<dds_rhc_ops>() - 80usize];
["Alignment of dds_rhc_ops"][::std::mem::align_of::<dds_rhc_ops>() - 8usize];
["Offset of field: dds_rhc_ops::rhc_ops"]
[::std::mem::offset_of!(dds_rhc_ops, rhc_ops) - 0usize];
["Offset of field: dds_rhc_ops::peek"][::std::mem::offset_of!(dds_rhc_ops, peek) - 32usize];
["Offset of field: dds_rhc_ops::read"][::std::mem::offset_of!(dds_rhc_ops, read) - 40usize];
["Offset of field: dds_rhc_ops::take"][::std::mem::offset_of!(dds_rhc_ops, take) - 48usize];
["Offset of field: dds_rhc_ops::add_readcondition"]
[::std::mem::offset_of!(dds_rhc_ops, add_readcondition) - 56usize];
["Offset of field: dds_rhc_ops::remove_readcondition"]
[::std::mem::offset_of!(dds_rhc_ops, remove_readcondition) - 64usize];
["Offset of field: dds_rhc_ops::associate"]
[::std::mem::offset_of!(dds_rhc_ops, associate) - 72usize];
};
#[doc = " @brief Reader History Cache\n @ingroup dds\n DOC_TODO"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct dds_rhc {
pub common: dds_rhc__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union dds_rhc__bindgen_ty_1 {
pub ops: *const dds_rhc_ops,
pub rhc: ddsi_rhc,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_rhc__bindgen_ty_1"][::std::mem::size_of::<dds_rhc__bindgen_ty_1>() - 8usize];
["Alignment of dds_rhc__bindgen_ty_1"]
[::std::mem::align_of::<dds_rhc__bindgen_ty_1>() - 8usize];
["Offset of field: dds_rhc__bindgen_ty_1::ops"]
[::std::mem::offset_of!(dds_rhc__bindgen_ty_1, ops) - 0usize];
["Offset of field: dds_rhc__bindgen_ty_1::rhc"]
[::std::mem::offset_of!(dds_rhc__bindgen_ty_1, rhc) - 0usize];
};
impl Default for dds_rhc__bindgen_ty_1 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dds_rhc"][::std::mem::size_of::<dds_rhc>() - 8usize];
["Alignment of dds_rhc"][::std::mem::align_of::<dds_rhc>() - 8usize];
["Offset of field: dds_rhc::common"][::std::mem::offset_of!(dds_rhc, common) - 0usize];
};
impl Default for dds_rhc {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct static_assert_54 {
pub cond: [::std::ffi::c_char; 1usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of static_assert_54"][::std::mem::size_of::<static_assert_54>() - 1usize];
["Alignment of static_assert_54"][::std::mem::align_of::<static_assert_54>() - 1usize];
["Offset of field: static_assert_54::cond"]
[::std::mem::offset_of!(static_assert_54, cond) - 0usize];
};
unsafe extern "C" {
#[doc = " @component rhc"]
pub fn dds_reader_data_available_cb(rd: *mut dds_reader);
}
pub type __builtin_va_list = *mut ::std::ffi::c_char;
pub type __uint128_t = u128;
pub type __int128_t = i128;
#[doc = "< PSMX Locator for this PSMX Instance"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct ddsi_locator {
pub _address: u8,
}