pub unsafe extern "C-unwind" fn IOPSCopyPowerSourcesList(
blob: Option<&CFType>,
) -> Option<CFRetained<CFArray>>Available on crate feature
ps only.Expand description
Returns a CFArray of Power Source handles, each of type CFTypeRef.
The caller shouldn’t directly access the CFTypeRefs, but should use IOPSGetPowerSourceDescription on each member of the CFArrayRef.
Parameter blob: Takes the CFTypeRef returned by IOPSCopyPowerSourcesInfo()
Returns: Returns NULL if errors were encountered, otherwise a CFArray of CFTypeRefs. Caller must CFRelease() the returned CFArrayRef.
§Safety
blobshould be of the correct type.blobmight not allowNone.