Loading...
--- Libc/Libc-763.13/include/libkern/OSThermalNotification.h
+++ Libc/Libc-583/include/libkern/OSThermalNotification.h
@@ -25,7 +25,6 @@
#define _OSTHERMALNOTIFICATION_H_
#include <sys/cdefs.h>
-#include <Availability.h>
/*
** OSThermalNotification.h
@@ -41,34 +40,11 @@
typedef enum {
OSThermalNotificationLevelAny = -1,
OSThermalNotificationLevelNormal = 0,
+ OSThermalNotificationLevel70PercentBacklight = 3,
+ OSThermalNotificationLevel50PercentBacklight = 5,
+ OSThermalNotificationLevelAppTerminate = 12,
+ OSThermalNotificationLevelDeviceRestart = 16
} OSThermalNotificationLevel;
-
-extern OSThermalNotificationLevel _OSThermalNotificationLevelForBehavior(int) __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_4_2);
-extern void _OSThermalNotificationSetLevelForBehavior(int, int) __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_4_2);
-
-enum {
- kOSThermalMitigationNone,
- kOSThermalMitigation70PercentTorch,
- kOSThermalMitigation70PercentBacklight,
- kOSThermalMitigation50PercentTorch,
- kOSThermalMitigation50PercentBacklight,
- kOSThermalMitigationDisableTorch,
- kOSThermalMitigation25PercentBacklight,
- kOSThermalMitigationDisableMapsHalo,
- kOSThermalMitigationAppTerminate,
- kOSThermalMitigationDeviceRestart,
- kOSThermalMitigationCount
-};
-
-#define OSThermalNotificationLevel70PercentTorch _OSThermalNotificationLevelForBehavior(kOSThermalMitigation70PercentTorch)
-#define OSThermalNotificationLevel70PercentBacklight _OSThermalNotificationLevelForBehavior(kOSThermalMitigation70PercentBacklight)
-#define OSThermalNotificationLevel50PercentTorch _OSThermalNotificationLevelForBehavior(kOSThermalMitigation50PercentTorch)
-#define OSThermalNotificationLevel50PercentBacklight _OSThermalNotificationLevelForBehavior(kOSThermalMitigation50PercentBacklight)
-#define OSThermalNotificationLevelDisableTorch _OSThermalNotificationLevelForBehavior(kOSThermalMitigationDisableTorch)
-#define OSThermalNotificationLevel25PercentBacklight _OSThermalNotificationLevelForBehavior(kOSThermalMitigation25PercentBacklight)
-#define OSThermalNotificationLevelDisableMapsHalo _OSThermalNotificationLevelForBehavior(kOSThermalMitigationDisableMapsHalo)
-#define OSThermalNotificationLevelAppTerminate _OSThermalNotificationLevelForBehavior(kOSThermalMitigationAppTerminate)
-#define OSThermalNotificationLevelDeviceRestart _OSThermalNotificationLevelForBehavior(kOSThermalMitigationDeviceRestart)
/* Backwards compatibility */
#define OSThermalNotificationLevelWarning OSThermalNotificationLevel70PercentBacklight
@@ -79,13 +55,13 @@
** Simple polling interface to detect current thermal level
*/
-extern OSThermalNotificationLevel OSThermalNotificationCurrentLevel(void) __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_2_0);
+OSThermalNotificationLevel OSThermalNotificationCurrentLevel(void);
/*
** External notify(3) string for manual notification setup
*/
-extern const char * const kOSThermalNotificationName __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_2_0);
+extern const char *kOSThermalNotificationName;
__END_DECLS