The open source OpenXR runtime
at main 56 lines 799 B view raw
1// Copyright 2020-2025, Collabora, Ltd. 2// SPDX-License-Identifier: BSL-1.0 3/*! 4 * @file 5 * @brief Generated IPC protocol header. 6 * @author Jakob Bornecrantz <jakob@collabora.com> 7 * @ingroup ipc 8 */ 9 10#pragma once 11 12#include "xrt/xrt_compiler.h" 13#include "xrt/xrt_defines.h" 14#include "xrt/xrt_device.h" 15 16 17#ifdef __cplusplus 18extern "C" { 19#endif 20 21 22struct ipc_connection; 23 24typedef enum ipc_command 25{ 26 IPC_ERR = 0, 27$ipc_commands 28} ipc_command_t; 29 30struct ipc_command_msg 31{ 32 enum ipc_command cmd; 33}; 34 35struct ipc_result_reply 36{ 37 xrt_result_t result; 38}; 39 40static inline const char * 41ipc_cmd_to_str(ipc_command_t id) 42{ 43 switch (id) { 44 case IPC_ERR: return "IPC_ERR"; 45$ipc_cmd_cases 46 default: return "IPC_UNKNOWN"; 47 } 48} 49 50#pragma pack (push, 1) 51$ipc_msg_structs 52#pragma pack (pop) 53 54#ifdef __cplusplus 55} 56#endif