-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlibMobileGestalt.h
More file actions
68 lines (51 loc) · 1.98 KB
/
Copy pathlibMobileGestalt.h
File metadata and controls
68 lines (51 loc) · 1.98 KB
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
CF_EXTERN_C_BEGIN
BOOL MGIsQuestionValid(CFStringRef question);
class MGAnswerTypes
{
enum
{
Dictionary = 2,
Array = 3,
Number = 4,
NumberSInt32 = 5,
NumberSInt64 = 6,
NumberFloat32 = 7,
NumberFloat64 = 8,
String = 9,
Data = 10,
Boolean = 11,
};
};
/*++
encodedQuestion = encoding.base64Encode(encoding.md5('MGCopyAnswer' + question))
++*/
CFTypeRef MGCopyAnswer(CFStringRef question, intptr_t unused = 0);
CFTypeRef MGCopyAnswerWithError(CFStringRef question, intptr_t alwaysZero, CFErrorRef *error);
CFTypeRef MGCopyAnswerInternal(CFStringRef question, int32_t* answerType);
CFBooleanRef MGGetBoolAnswer(CFStringRef question);
CFNumberRef MGGetFloat32Answer(CFStringRef question);
CFNumberRef MGGetSInt32Answer(CFStringRef question);
CFNumberRef MGGetSInt64Answer(CFStringRef question);
int MGSetAnswer(CFStringRef question, CFTypeRef answer);
void MGSetLogHandler(void (*handler)(const char* log));
BOOL _MGCacheValid();
void _MGWriteCache();
void _MGClearInProcessCache();
// MGRegisterForBulkUpdates
@interface MGNotificationRegistration : NSObject {
}
- (void) cancel;
- (void) dealloc;
- (BOOL) start;
// - (id) initWithQueue:(id)arg1 block:(^block)arg2;
// - (BOOL) registerForNotification:(int)arg1 argument:(const char*)arg2 question:(id)arg3;
@end
MGNotificationRegistration* MGRegisterForUpdates(CFArrayRef questions, intptr_t zero1, intptr_t zero2, void (^callback)(CFStringRef question));
extern CFStringRef kMGQDiskUsageAmountDataAvailable;
extern CFStringRef kMGQDiskUsageAmountDataReserved;
extern CFStringRef kMGQDiskUsageTotalDataAvailable;
extern CFStringRef kMGQDiskUsageTotalDataCapacity;
extern CFStringRef kMGQDiskUsageTotalDiskCapacity;
extern CFStringRef kMGQDiskUsageTotalSystemAvailable;
extern CFStringRef kMGQDiskUsageTotalSystemCapacity;
CF_EXTERN_C_END