Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
41
third-party/vendor/objc-sys/src/property.rs
vendored
Normal file
41
third-party/vendor/objc-sys/src/property.rs
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
use std::os::raw::c_char;
|
||||
#[cfg(any(doc, not(objfw)))]
|
||||
use std::os::raw::c_uint;
|
||||
|
||||
use crate::OpaqueData;
|
||||
|
||||
/// An opaque type that describes a property in a class.
|
||||
#[repr(C)]
|
||||
pub struct objc_property {
|
||||
_priv: [u8; 0],
|
||||
_p: OpaqueData,
|
||||
}
|
||||
|
||||
/// Describes an Objective-C property attribute.
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct objc_property_attribute_t {
|
||||
/// The name of the attribute.
|
||||
pub name: *const c_char,
|
||||
/// The value of the attribute
|
||||
///
|
||||
/// Usually NULL.
|
||||
pub value: *const c_char,
|
||||
}
|
||||
|
||||
extern_c! {
|
||||
#[cfg(any(doc, not(objfw)))]
|
||||
pub fn property_copyAttributeList(
|
||||
property: *const objc_property,
|
||||
out_len: *mut c_uint,
|
||||
) -> *mut objc_property_attribute_t;
|
||||
#[cfg(any(doc, not(objfw)))]
|
||||
pub fn property_copyAttributeValue(
|
||||
property: *const objc_property,
|
||||
attribute_name: *const c_char,
|
||||
) -> *mut c_char;
|
||||
#[cfg(any(doc, not(objfw)))]
|
||||
pub fn property_getAttributes(property: *const objc_property) -> *const c_char;
|
||||
#[cfg(any(doc, not(objfw)))]
|
||||
pub fn property_getName(property: *const objc_property) -> *const c_char;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue