xpc_minimal.h 902 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // xpc_minimal.h
  3. // electra
  4. //
  5. // Created by karin on 29/1/2018.
  6. // Copyright © 2018 Electra Team. All rights reserved.
  7. //
  8. #ifndef xpc_minimal_h
  9. #define xpc_minimal_h
  10. /* Minimal header for fun.c */
  11. typedef void *xpc_object_t;
  12. typedef xpc_object_t xpc_connection_t;
  13. xpc_connection_t xpc_connection_create_mach_service(const char *, dispatch_queue_t, uint64_t);
  14. void xpc_connection_set_event_handler(xpc_connection_t, void (^)(xpc_object_t));
  15. void xpc_connection_resume(xpc_connection_t);
  16. xpc_object_t xpc_dictionary_create(const char **, const xpc_object_t *, size_t);
  17. void xpc_dictionary_set_string(xpc_object_t, const char *, const char *);
  18. xpc_object_t xpc_connection_send_message_with_reply_sync(xpc_connection_t, xpc_object_t);
  19. // jailbreakd is alive past this point
  20. void xpc_connection_cancel(xpc_connection_t);
  21. char *xpc_copy_description(xpc_object_t);
  22. #endif /* xpc_minimal_h */