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>
|
|
|
|
*/
|
|
|
|
|
2020-04-28 23:56:27 +00:00
|
|
|
#include "xrt/xrt_config_build.h"
|
|
|
|
|
2020-04-29 23:11:43 +00:00
|
|
|
#ifdef XRT_FEATURE_SERVICE
|
2020-04-28 23:56:27 +00:00
|
|
|
|
|
|
|
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
|
2020-01-09 22:54:01 +00:00
|
|
|
xrt_prober_create(struct xrt_prober **out_xp)
|
2019-03-18 05:52:32 +00:00
|
|
|
{
|
2020-01-09 22:54:01 +00:00
|
|
|
return xrt_prober_create_with_lists(out_xp, &target_lists);
|
2019-03-18 05:52:32 +00:00
|
|
|
}
|
2020-04-28 23:56:27 +00:00
|
|
|
|
|
|
|
#endif
|