| 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) |
| 20 | XPC_EXPORT XPC_MALLOC XPC_RETURNS_RETAINED XPC_WARN_RESULT XPC_NONNULL1 |
| 21 | xpc_endpoint_t _Nonnull |
| 22 | xpc_endpoint_create(xpc_connection_t _Nonnull connection); |
| 23 | |
| 24 | __END_DECLS |
| 25 | |
| 26 | #endif // __XPC_ENDPOINT_H__ |