diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-02-23 13:36:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 13:36:07 +0100 |
commit | 1f3916e0b6afc84872f7354432ca8606d764fc22 (patch) | |
tree | 7c6c96bc92b6e39eadc960fadb1bd9a8fb939aca /thirdparty/openxr/src/loader/android_utilities.h | |
parent | 2fd17df2ce6ad595db2b5395c308169a1b805914 (diff) | |
parent | a78a9fee7194297fca8867b4983deb4da0ba18c2 (diff) |
Merge pull request #56394 from BastiaanOlij/OpenXR_Core4
Diffstat (limited to 'thirdparty/openxr/src/loader/android_utilities.h')
-rw-r--r-- | thirdparty/openxr/src/loader/android_utilities.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/thirdparty/openxr/src/loader/android_utilities.h b/thirdparty/openxr/src/loader/android_utilities.h new file mode 100644 index 0000000000..adb8abaf1f --- /dev/null +++ b/thirdparty/openxr/src/loader/android_utilities.h @@ -0,0 +1,32 @@ +// Copyright (c) 2020-2022, The Khronos Group Inc. +// Copyright (c) 2020-2021, Collabora, Ltd. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT +// +// Initial Author: Ryan Pavlik <ryan.pavlik@collabora.com> + +#pragma once +#ifdef __ANDROID__ + +#include "wrap/android.content.h" + +#include <string> +namespace Json { +class Value; +} // namespace Json + +namespace openxr_android { +using wrap::android::content::Context; + +/*! + * Find the single active OpenXR runtime on the system, and return a constructed JSON object representing it. + * + * @param context An Android context, preferably an Activity Context. + * @param[out] virtualManifest The Json::Value to fill with the virtual manifest. + * + * @return 0 on success, something else on failure. + */ +int getActiveRuntimeVirtualManifest(wrap::android::content::Context const &context, Json::Value &virtualManifest); +} // namespace openxr_android + +#endif // __ANDROID__ |