X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/ad3c9f2af814c84582fdd1649e49ec4f68572c5a..4c63d2152434d7a24cd627ef559f93b096274076:/include/libkern/OSThermalNotification.h?ds=inline diff --git a/include/libkern/OSThermalNotification.h b/include/libkern/OSThermalNotification.h index ad19e7e..cc81223 100644 --- a/include/libkern/OSThermalNotification.h +++ b/include/libkern/OSThermalNotification.h @@ -76,6 +76,15 @@ enum { #define OSThermalNotificationLevelUrgent OSThermalNotificationLevelAppTerminate #define OSThermalNotificationLevelCritical OSThermalNotificationLevelDeviceRestart +/* Define pressure levels usable by OSThermalPressureLevel */ +typedef enum { + kOSThermalPressureLevelNominal = 0, + kOSThermalPressureLevelModerate, + kOSThermalPressureLevelHeavy, + kOSThermalPressureLevelTrapping, + kOSThermalPressureLevelSleeping +} OSThermalPressureLevel; + /* ** Simple polling interface to detect current thermal level */ @@ -88,6 +97,25 @@ extern OSThermalNotificationLevel OSThermalNotificationCurrentLevel(void) __OSX_ extern const char * const kOSThermalNotificationName __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_2_0); +/* +** External notify(3) string for alerting user of a thermal condition +*/ + +extern const char * const kOSThermalNotificationAlert __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_6_0); + +/* +** External notify(3) string for notifying system the options taken to resolve thermal condition +*/ + +extern const char * const kOSThermalNotificationDecision __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_6_0); + +/* +** External notify(3) string for thermal pressure level notification +*/ + +extern const char * const kOSThermalNotificationPressureLevelName __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_7_0); + + __END_DECLS #endif /* _OSTHERMALNOTIFICATION_H_ */