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