objc2-compositor-services 0.3.2

Bindings to the CompositorServices framework
Documentation
//! 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);
}