Monado OpenXR Runtime
ipc_server_interface.h
Go to the documentation of this file.
1// Copyright 2020-2023, Collabora, Ltd.
2// Copyright 2024-2025, NVIDIA CORPORATION.
3// SPDX-License-Identifier: BSL-1.0
4/*!
5 * @file
6 * @brief Interface for IPC server code.
7 * @author Pete Black <pblack@collabora.com>
8 * @author Jakob Bornecrantz <jakob@collabora.com>
9 * @author Rylie Pavlik <rylie.pavlik@collabora.com>
10 * @ingroup ipc_server
11 */
12
13#include "xrt/xrt_compiler.h"
14#include "xrt/xrt_config_os.h"
15
16#ifndef XRT_OS_ANDROID
17#include "util/u_debug_gui.h"
18#endif
19
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25
26#ifndef XRT_OS_ANDROID
27
28/*!
29 * Information passed into the IPC server main function, used for customization
30 * of the IPC server.
31 *
32 * @ingroup ipc_server
33 */
35{
36 //! Information passed onto the debug gui.
38};
39
40/*!
41 * Main entrypoint to the compositor process.
42 *
43 * @ingroup ipc_server
44 */
45int
46ipc_server_main(int argc, char **argv, const struct ipc_server_main_info *ismi);
47
48#endif
49
50
51#ifdef XRT_OS_ANDROID
52
53/*!
54 * Main entrypoint to the server process.
55 *
56 * @param ps Pointer to populate with the server struct.
57 * @param startup_complete_callback Function to call upon completing startup
58 * and populating *ps, but before entering
59 * the mainloop.
60 * @param data user data to pass to your callback.
61 *
62 * @ingroup ipc_server
63 */
64int
65ipc_server_main_android(struct ipc_server **ps, void (*startup_complete_callback)(void *data), void *data);
66
67#endif
68
69
70#ifdef __cplusplus
71}
72#endif
int ipc_server_main(int argc, char **argv, const struct ipc_server_main_info *ismi)
Main entrypoint to the compositor process.
Definition: ipc_server_process.c:997
Information passed into the IPC server main function, used for customization of the IPC server.
Definition: ipc_server_interface.h:35
struct u_debug_gui_create_info udgci
Information passed onto the debug gui.
Definition: ipc_server_interface.h:37
Main IPC object for the server.
Definition: ipc_server.h:343
Argument to the function u_debug_gui_create.
Definition: u_debug_gui.h:49
SDL2 Debug UI implementation.
Header holding common defines.
Auto detect OS and certain features.