mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
ipc: Add a interface header for ipc_instance_create
This commit is contained in:
parent
6c87d66edb
commit
5be0767aa9
|
@ -27,6 +27,7 @@
|
|||
#include "shared/ipc_protocol.h"
|
||||
#include "shared/ipc_shmem.h"
|
||||
#include "client/ipc_client.h"
|
||||
#include "client/ipc_client_interface.h"
|
||||
#include "client/ipc_client_connection.h"
|
||||
|
||||
#include "ipc_client_generated.h"
|
||||
|
|
33
src/xrt/ipc/client/ipc_client_interface.h
Normal file
33
src/xrt/ipc/client/ipc_client_interface.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
// Copyright 2020-2023, Collabora, Ltd.
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
/*!
|
||||
* @file
|
||||
* @brief Interface for IPC client instance code.
|
||||
* @author Pete Black <pblack@collabora.com>
|
||||
* @author Jakob Bornecrantz <jakob@collabora.com>
|
||||
* @ingroup ipc_client
|
||||
*/
|
||||
|
||||
#include "xrt/xrt_results.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
struct xrt_instance;
|
||||
struct xrt_instance_info;
|
||||
|
||||
/*!
|
||||
* Create a IPC client instance, connects to a IPC server.
|
||||
*
|
||||
* @see ipc_design
|
||||
* @ingroup ipc_client
|
||||
*/
|
||||
xrt_result_t
|
||||
ipc_instance_create(struct xrt_instance_info *ii, struct xrt_instance **out_xinst);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -17,10 +17,8 @@
|
|||
U_TRACE_TARGET_SETUP(U_TRACE_WHICH_OPENXR)
|
||||
|
||||
#include "xrt/xrt_instance.h"
|
||||
#include "client/ipc_client_interface.h"
|
||||
|
||||
// Forward declaration
|
||||
xrt_result_t
|
||||
ipc_instance_create(struct xrt_instance_info *i_info, struct xrt_instance **out_xinst);
|
||||
|
||||
xrt_result_t
|
||||
xrt_instance_create(struct xrt_instance_info *ii, struct xrt_instance **out_xinst)
|
||||
|
|
Loading…
Reference in a new issue