1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
use std::os::raw::c_char;
#[cfg(not(objfw))]
use std::os::raw::c_uint;
use crate::OpaqueData;
#[repr(C)]
pub struct objc_property {
_priv: [u8; 0],
_p: OpaqueData,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct objc_property_attribute_t {
pub name: *const c_char,
pub value: *const c_char,
}
extern_c! {
#![cfg(not(objfw))]
pub fn property_copyAttributeList(
property: *const objc_property,
out_len: *mut c_uint,
) -> *mut objc_property_attribute_t;
pub fn property_copyAttributeValue(
property: *const objc_property,
attribute_name: *const c_char,
) -> *mut c_char;
pub fn property_getAttributes(property: *const objc_property) -> *const c_char;
pub fn property_getName(property: *const objc_property) -> *const c_char;
}