IOPSCopyPowerSourcesInfo

Function IOPSCopyPowerSourcesInfo 

Source
pub extern "C-unwind" fn IOPSCopyPowerSourcesInfo() -> Option<CFRetained<CFType>>
Available on crate feature ps only.
Expand description

Returns a blob of Power Source information in an opaque CFTypeRef.

Clients should not directly access data in the returned CFTypeRef - they should use the accessor functions IOPSCopyPowerSourcesList and IOPSGetPowerSourceDescription, instead.

Returns: NULL if errors were encountered, a CFTypeRef otherwise. Caller must CFRelease() the return value when done accessing it.