1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use std::os::raw::c_char;
use crate::{OpaqueData, BOOL};
#[repr(C)]
pub struct objc_selector {
_priv: [u8; 0],
_p: OpaqueData,
}
extern_c! {
pub fn sel_getName(sel: *const objc_selector) -> *const c_char;
pub fn sel_isEqual(lhs: *const objc_selector, rhs: *const objc_selector) -> BOOL;
pub fn sel_registerName(name: *const c_char) -> *const objc_selector;
#[cfg(not(objfw))]
pub fn sel_getUid(name: *const c_char) -> *const objc_selector;
#[cfg(apple)]
pub fn sel_isMapped(sel: *const objc_selector) -> BOOL;
}