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
|
|
|
|
2020-05-26 21:46:43 +00:00
|
|
|
#include "xrt/xrt_instance.h"
|
2020-04-28 23:56:27 +00:00
|
|
|
|
2020-05-26 21:46:43 +00:00
|
|
|
// Forward declaration
|
2020-04-28 23:56:27 +00:00
|
|
|
int
|
2020-06-17 06:36:38 +00:00
|
|
|
ipc_instance_create(struct xrt_instance **out_xinst,
|
|
|
|
struct xrt_instance_info *i_info);
|
2020-04-28 23:56:27 +00:00
|
|
|
|
|
|
|
int
|
2020-06-17 06:36:38 +00:00
|
|
|
xrt_instance_create(struct xrt_instance **out_xinst,
|
|
|
|
struct xrt_instance_info *i_info)
|
2020-04-28 23:56:27 +00:00
|
|
|
{
|
2020-06-17 06:36:38 +00:00
|
|
|
return ipc_instance_create(out_xinst, i_info);
|
2020-04-28 23:56:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
2020-05-26 21:46:43 +00:00
|
|
|
/*
|
|
|
|
* For non-service runtime, xrt_instance_create defined in target_instance
|
|
|
|
* helper lib, so we just have a dummy symbol below to silence warnings about
|
|
|
|
* empty translation units.
|
|
|
|
*/
|
|
|
|
#include <xrt/xrt_compiler.h>
|
|
|
|
XRT_MAYBE_UNUSED static const int DUMMY = 42;
|
2020-04-28 23:56:27 +00:00
|
|
|
|
|
|
|
#endif
|