rocketbootstrap.h 996 B

12345678910111213141516171819202122232425262728
  1. #include <sys/cdefs.h>
  2. #include <mach/mach.h>
  3. #include "bootstrap.h"
  4. __BEGIN_DECLS
  5. #ifndef ROCKETBOOTSTRAP_LOAD_DYNAMIC
  6. kern_return_t rocketbootstrap_look_up(mach_port_t bp, const name_t service_name, mach_port_t *sp);
  7. kern_return_t rocketbootstrap_unlock(const name_t service_name); // Errors if not in a privileged process such as SpringBoard or backboardd
  8. 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
  9. #ifdef __COREFOUNDATION_CFMESSAGEPORT__
  10. CFMessagePortRef rocketbootstrap_cfmessageportcreateremote(CFAllocatorRef allocator, CFStringRef name);
  11. kern_return_t rocketbootstrap_cfmessageportexposelocal(CFMessagePortRef messagePort);
  12. #endif
  13. #ifdef __OBJC__
  14. @class CPDistributedMessagingCenter;
  15. void rocketbootstrap_distributedmessagingcenter_apply(CPDistributedMessagingCenter *messaging_center);
  16. #endif
  17. #else
  18. #include "rocketbootstrap_dynamic.h"
  19. #endif
  20. __END_DECLS