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

35 lines
604 B
C
Raw Normal View History

2019-03-18 05:52:32 +00:00
// 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
2019-04-30 13:41:50 +00:00
#include "target_lists.h"
2019-03-18 05:52:32 +00:00
2019-04-30 13:41:50 +00:00
int
xrt_prober_create(struct xrt_prober **out_xp)
2019-03-18 05:52:32 +00:00
{
return xrt_prober_create_with_lists(out_xp, &target_lists);
2019-03-18 05:52:32 +00:00
}
#endif