···11- Move `xrt_instance_info` members to nested `xrt_application_info` struct, and add a parallel `xrt_platform_info`.
22+- Add `xrt/xrt_android.h` header.
+52
src/xrt/include/xrt/xrt_android.h
···11+// Copyright 2021-2024, Collabora, Ltd.
22+// SPDX-License-Identifier: BSL-1.0
33+/*!
44+ * @file
55+ * @brief Header holding Android-specific details.
66+ * @author Rylie Pavlik <rylie.pavlik@collabora.com>
77+ * @ingroup xrt_iface
88+ */
99+1010+#pragma once
1111+1212+#include "xrt/xrt_config_os.h"
1313+#include "xrt/xrt_compiler.h"
1414+#include "xrt/xrt_results.h"
1515+1616+#include <stdbool.h>
1717+1818+#ifdef __cplusplus
1919+extern "C" {
2020+#endif
2121+2222+struct _JavaVM;
2323+struct xrt_instance_android;
2424+struct xrt_instance_info;
2525+2626+/*!
2727+ * Distinguishes the possible Android lifecycle events from each other.
2828+ *
2929+ * Used as a bitmask when registering for callbacks.
3030+ */
3131+enum xrt_android_lifecycle_event
3232+{
3333+ XRT_ANDROID_LIVECYCLE_EVENT_ON_CREATE = 1 << 0,
3434+ XRT_ANDROID_LIVECYCLE_EVENT_ON_DESTROY = 1 << 1,
3535+ XRT_ANDROID_LIVECYCLE_EVENT_ON_PAUSE = 1 << 2,
3636+ XRT_ANDROID_LIVECYCLE_EVENT_ON_RESUME = 1 << 3,
3737+ XRT_ANDROID_LIVECYCLE_EVENT_ON_START = 1 << 4,
3838+ XRT_ANDROID_LIVECYCLE_EVENT_ON_STOP = 1 << 5,
3939+};
4040+4141+/*!
4242+ * A callback type for a handler of Android lifecycle events.
4343+ *
4444+ * Return true to be removed from the callback list.
4545+ */
4646+typedef bool (*xrt_android_lifecycle_event_handler_t)(struct xrt_instance_android *xinst_android,
4747+ enum xrt_android_lifecycle_event event,
4848+ void *userdata);
4949+5050+#ifdef __cplusplus
5151+}
5252+#endif