]> git.saurik.com Git - apple/libc.git/blobdiff - include/libkern/OSThermalNotification.h
Libc-997.90.3.tar.gz
[apple/libc.git] / include / libkern / OSThermalNotification.h
index 02b2823a8b7452bd95aeb0d220a1ed69727ca4f6..cc81223254a2347d27eca3cdca7834a98f000654 100644 (file)
@@ -57,6 +57,7 @@ enum {
        kOSThermalMitigationDisableMapsHalo,
        kOSThermalMitigationAppTerminate,
        kOSThermalMitigationDeviceRestart,
        kOSThermalMitigationDisableMapsHalo,
        kOSThermalMitigationAppTerminate,
        kOSThermalMitigationDeviceRestart,
+       kOSThermalMitigationThermalTableReady,
        kOSThermalMitigationCount
 };
 
        kOSThermalMitigationCount
 };
 
@@ -75,6 +76,15 @@ enum {
 #define OSThermalNotificationLevelUrgent OSThermalNotificationLevelAppTerminate
 #define OSThermalNotificationLevelCritical OSThermalNotificationLevelDeviceRestart
 
 #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
 */
 /*
 ** Simple polling interface to detect current thermal level
 */
@@ -87,6 +97,25 @@ extern OSThermalNotificationLevel OSThermalNotificationCurrentLevel(void) __OSX_
 
 extern const char * const kOSThermalNotificationName __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_2_0);
 
 
 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_ */
 __END_DECLS
 
 #endif /* _OSTHERMALNOTIFICATION_H_ */