Lines Matching defs:ps_blob
313 * ps_blob: as returned from IOPSCopyPowerSourcesInfo()
318 CFStringRef IOPSGetProvidingPowerSourceType(CFTypeRef ps_blob)
325 if(kCFBooleanFalse == IOPSPowerSourceSupported(ps_blob, CFSTR(kIOPMBatteryPowerKey)))
327 if(kCFBooleanFalse == IOPSPowerSourceSupported(ps_blob, CFSTR(kIOPMUPSPowerKey))) {
332 the_ups = IOPSGetActiveUPS(ps_blob);
334 ps_state = getPowerSourceState(ps_blob, the_ups);
350 the_batt = IOPSGetActiveBattery(ps_blob);
352 ps_state = getPowerSourceState(ps_blob, the_batt);
360 if(kCFBooleanFalse == IOPSPowerSourceSupported(ps_blob, CFSTR(kIOPMUPSPowerKey)))
365 the_ups = IOPSGetActiveUPS(ps_blob);
367 ps_state = getPowerSourceState(ps_blob, the_ups);