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