endpoint.h 670 B

1234567891011121314151617181920212223
  1. #ifndef __XPC_ENDPOINT_H__
  2. #define __XPC_ENDPOINT_H__
  3. /*!
  4. * @function xpc_endpoint_create
  5. * Creates a new endpoint from a connection that is suitable for embedding into
  6. * messages.
  7. *
  8. * @param connection
  9. * Only connections obtained through calls to xpc_connection_create*() may be
  10. * given to this API. Passing any other type of connection is not supported and
  11. * will result in undefined behavior.
  12. *
  13. * @result
  14. * A new endpoint object.
  15. */
  16. __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0)
  17. XPC_EXPORT XPC_MALLOC XPC_RETURNS_RETAINED XPC_WARN_RESULT XPC_NONNULL1
  18. xpc_endpoint_t
  19. xpc_endpoint_create(xpc_connection_t connection);
  20. #endif // __XPC_ENDPOINT_H__