mirror of
https://github.com/darlinghq/darling-libxpc.git
synced 2024-11-27 13:40:35 +00:00
404e5c1b70
This code is based on original libxpc from NextBSD. Improvements: * MessagePack serialization instead of heavily-modified libnv * Support for multiple transports (UNIX domain sockets and Mach IPC)
23 lines
670 B
C
23 lines
670 B
C
#ifndef __XPC_ENDPOINT_H__
|
|
#define __XPC_ENDPOINT_H__
|
|
|
|
/*!
|
|
* @function xpc_endpoint_create
|
|
* Creates a new endpoint from a connection that is suitable for embedding into
|
|
* messages.
|
|
*
|
|
* @param connection
|
|
* Only connections obtained through calls to xpc_connection_create*() may be
|
|
* given to this API. Passing any other type of connection is not supported and
|
|
* will result in undefined behavior.
|
|
*
|
|
* @result
|
|
* A new endpoint object.
|
|
*/
|
|
__OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0)
|
|
XPC_EXPORT XPC_MALLOC XPC_RETURNS_RETAINED XPC_WARN_RESULT XPC_NONNULL1
|
|
xpc_endpoint_t
|
|
xpc_endpoint_create(xpc_connection_t connection);
|
|
|
|
#endif // __XPC_ENDPOINT_H__
|