-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.h
72 lines (54 loc) · 2.44 KB
/
header.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#import <CoreFoundation/CoreFoundation.h>
#if __cplusplus
extern "C" {
#endif
#pragma mark - Definitions
#define BKSProcessAssertionFlagNone 0
#define BKSProcessAssertionFlagPreventSuspend (1 << 0)
#define BKSProcessAssertionFlagPreventThrottleDownCPU (1 << 1)
#define BKSProcessAssertionFlagAllowIdleSleep (1 << 2)
#define BKSProcessAssertionFlagWantsForegroundResourcePriority (1 << 3)
typedef enum {
BKSProcessAssertionReasonNone,
BKSProcessAssertionReasonAudio,
BKSProcessAssertionReasonLocation,
BKSProcessAssertionReasonExternalAccessory,
BKSProcessAssertionReasonFinishTask,
BKSProcessAssertionReasonBluetooth,
BKSProcessAssertionReasonNetworkAuthentication,
BKSProcessAssertionReasonBackgroundUI,
BKSProcessAssertionReasonInterAppAudioStreaming,
BKSProcessAssertionReasonViewServices
} BKSProcessAssertionReason;
typedef void (^BKSProcessAssertionCompletion)(BOOL success);
typedef struct BKSDisplayBrightnessTransaction *BKSDisplayBrightnessTransactionRef;
#pragma mark - API
/*
* Level should be from 0.0 to 1.0.
* Use 1 for __unknown0.
*/
void BKSDisplayBrightnessSet(float level, int __unknown0);
void BKSDisplayServicesWillUnblank();
void BKSDisplayServicesSetScreenBlanked(bool arg1);
void BKSHIDServicesSetBacklightFactorWithFadeDuration(float arg1, int arg2, bool arg3);
/* Returns a value from 0.0 to 1.0. */
float BKSDisplayBrightnessGetCurrent();
int BKSHIDServicesServerPort();
void BKSHIDServicesSetHIDUILockedState(int arg1, int arg2);
void BKSDisplayBrightnessRestoreSystemBrightness();
int _BKSHIDSetMinimumBrightnessLevelWithFadeDuration(int arg0, int arg1, int arg2);
/* Follows the 'Create' rule. */
BKSDisplayBrightnessTransactionRef BKSDisplayBrightnessTransactionCreate(CFAllocatorRef allocator);
void BKSDisplayBrightnessSetAutoBrightnessEnabled(Boolean enabled);
//void BKSHIDServicesSetBacklightFactorWithFadeDuration(float factor, int duration);
/*
* Check out http://iphonedevwiki.net/index.php/BackBoardServices.framework
* for more information on BKSTerminate functions.
*/
void BKSTerminateApplicationForReasonAndReportWithDescription(CFStringRef applicationIdentifier, int __unknown0, int __unknown1, CFStringRef description);
void BKSTerminateApplicationGroupForReasonAndReportWithDescription(int __unknown0, int __unknown1, int __unknown2, CFStringRef description);
void BKSHIDServicesLockOrientation();
void BKSHIDServicesUnlockOrientation();
#if __cplusplus
}
#endif