-
Notifications
You must be signed in to change notification settings - Fork 2
/
rocketbootstrap.h
32 lines (24 loc) · 1.14 KB
/
rocketbootstrap.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
#include <sys/cdefs.h>
#include <mach/mach.h>
#include "bootstrap.h"
__BEGIN_DECLS
#ifndef ROCKETBOOTSTRAP_LOAD_DYNAMIC
kern_return_t rocketbootstrap_look_up(mach_port_t bp, const name_t service_name, mach_port_t *sp);
kern_return_t rocketbootstrap_unlock(const name_t service_name); // Errors if not in a privileged process such as SpringBoard or backboardd
kern_return_t rocketbootstrap_register(mach_port_t bp, name_t service_name, mach_port_t sp); // Errors if not in a privileged process such as SpringBoard or backboardd
#ifdef XPC_API_VERSION
void rocketbootstrap_xpc_connection_apply(xpc_connection_t connection);
kern_return_t rocketbootstrap_xpc_unlock(xpc_connection_t listener);
#endif
#ifdef __COREFOUNDATION_CFMESSAGEPORT__
CFMessagePortRef rocketbootstrap_cfmessageportcreateremote(CFAllocatorRef allocator, CFStringRef name);
kern_return_t rocketbootstrap_cfmessageportexposelocal(CFMessagePortRef messagePort);
#endif
#ifdef __OBJC__
@class CPDistributedMessagingCenter;
void rocketbootstrap_distributedmessagingcenter_apply(CPDistributedMessagingCenter *messaging_center);
#endif
#else
#include "rocketbootstrap_dynamic.h"
#endif
__END_DECLS