monado/src/xrt/targets/openxr/target.c

35 lines
604 B
C

// Copyright 2019, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief The thing that binds all of the OpenXR driver together.
* @author Jakob Bornecrantz <jakob@collabora.com>
*/
#include "xrt/xrt_config_build.h"
#ifdef XRT_BUILD_IPC
struct xrt_instance;
int
ipc_instance_create(struct xrt_instance **out_xinst);
int
xrt_instance_create(struct xrt_instance **out_xinst)
{
return ipc_instance_create(out_xinst);
}
#else
#include "target_lists.h"
int
xrt_prober_create(struct xrt_prober **out_xp)
{
return xrt_prober_create_with_lists(out_xp, &target_lists);
}
#endif