Type Definition MacTypes_sys::PRefCon

source ·
pub type PRefCon = *mut c_void;
Expand description

RefCon Types

For access to private data in callbacks, etc.; refcons are generally used as a pointer to something, but in the 32-bit world refcons in different APIs have had various types: pointer, unsigned scalar, and signed scalar. The RefCon types defined here support the current 32-bit usage but provide normalization to pointer types for 64-bit.

PRefCon is preferred for new APIs; URefCon and SRefCon are primarily for compatibility with existing APIs.