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
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use crate::*;
extern "C-unwind" {
/// Increments the reference count of the specified object.
///
/// - Parameters:
/// - obj: The object to retain. If this parameter is an Objective-C object,
/// the function is equivalent to calling the `retain` method of that object.
/// - Returns: The retained object.
///
/// Don’t call this function in Swift code or on types you manage using
/// automatic reference counting (ARC).
///
/// # Safety
///
/// `obj` must be a valid pointer.
pub fn cp_retain(obj: *mut c_void) -> *mut c_void;
}
extern "C-unwind" {
/// Decrement the reference count of the specified object.
///
/// - Parameters:
/// - obj: The object to release. If this parameter is an Objective-C object,
/// the function is equivalent to calling the `release` method of that object.
///
/// Don’t call this function in Swift code or on types you manage using
/// automatic reference counting (ARC).
///
/// # Safety
///
/// `obj` must be a valid pointer.
pub fn cp_release(obj: *mut c_void);
}