-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathheader.h
More file actions
29 lines (22 loc) · 1.04 KB
/
header.h
File metadata and controls
29 lines (22 loc) · 1.04 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
#define LOG_MESSAGE_BODY 0
#ifdef DEBUG
#define IPCLOG(x,...) NSLog(@"*** libobjcipc: %@",[NSString stringWithFormat:(x), ##__VA_ARGS__])
#else
// Replace with call to [NSString stringWithFormat:] so that any variables passed aren't marked as unused.
#define IPCLOG(x,...) [NSString stringWithFormat:(x), ##__VA_ARGS__]
#endif
#define PrefPath @"/var/mobile/Library/Preferences/libobjcipc.plist"
#define XPCObjects "/System/Library/PrivateFrameworks/XPCObjects.framework/XPCObjects"
#define SpringBoardIdentifier @"com.apple.springboard"
#define OBJCIPCActivateAppNotification @"OBJCIPCActivateAppNotification"
#define OBJCIPCDeactivateAppNotification @"OBJCIPCDeactivateAppNotification"
@class OBJCIPC, OBJCIPCConnection, OBJCIPCMessage;
typedef NSDictionary *(^OBJCIPCIncomingMessageHandler)(NSDictionary *); // return NSDictionary or nil to reply
typedef void(^OBJCIPCReplyHandler)(NSDictionary *);
typedef struct {
char magicNumber[3];
BOOL replyFlag;
char messageIdentifier[5];
char messageName[256];
int contentLength;
} OBJCIPCMessageHeader;