ipc: Add a interface header for ipc_instance_create

This commit is contained in:
Jakob Bornecrantz 2023-07-31 17:00:17 +01:00 committed by Ryan Pavlik
parent 6c87d66edb
commit 5be0767aa9
3 changed files with 35 additions and 3 deletions

View file

@ -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"

View 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

View file

@ -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)