]> 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 ad19e7e8f0715602d4d390781d6b638b7a09ec11..cc81223254a2347d27eca3cdca7834a98f000654 100644 (file)
@@ -76,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
 */
@@ -88,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_ */