Monado OpenXR Runtime
ipc_server_interface.h
Go to the documentation of this file.
1// Copyright 2020-2023, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Interface for IPC server code.
6 * @author Pete Black <pblack@collabora.com>
7 * @author Jakob Bornecrantz <jakob@collabora.com>
8 * @author Rylie Pavlik <rylie.pavlik@collabora.com>
9 * @ingroup ipc_server
10 */
11
12#include "xrt/xrt_compiler.h"
13#include "xrt/xrt_config_os.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19
20#ifndef XRT_OS_ANDROID
21
22/*!
23 * Main entrypoint to the compositor process.
24 *
25 * @ingroup ipc_server
26 */
27int
28ipc_server_main(int argc, char **argv);
29
30#endif
31
32
33#ifdef XRT_OS_ANDROID
34
35/*!
36 * Main entrypoint to the server process.
37 *
38 * @param ps Pointer to populate with the server struct.
39 * @param startup_complete_callback Function to call upon completing startup
40 * and populating *ps, but before entering
41 * the mainloop.
42 * @param data user data to pass to your callback.
43 *
44 * @ingroup ipc_server
45 */
46int
47ipc_server_main_android(struct ipc_server **ps, void (*startup_complete_callback)(void *data), void *data);
48
49#endif
50
51
52#ifdef __cplusplus
53}
54#endif
int ipc_server_main(int argc, char **argv)
Main entrypoint to the compositor process.
Definition: ipc_server_process.c:984
Main IPC object for the server.
Definition: ipc_server.h:327
Header holding common defines.
Auto detect OS and certain features.