|
Monado OpenXR Runtime
|
Shared IPC code. More...

Files | |
| file | ipc_protocol.h |
| Common protocol definition. | |
| file | ipc_shmem.c |
| IPC shared memory helpers. | |
| file | ipc_shmem.h |
| Shared memory helpers. | |
| file | ipc_utils.c |
| IPC util helpers. | |
| file | ipc_utils.h |
| IPC util helpers, for internal use only. | |
Functions | |
| void | ipc_print_result (enum u_logging_level cond_level, const char *file, int line, const char *calling_func, xrt_result_t xret, const char *called_func) |
Helper to print the results of called functions that return xret results, if the result is XRT_SUCCESS will log with info, otherwise error. More... | |
| const char * | ipc_winerror (DWORD err) |
| Helper to convert windows error codes to human readable strings for logging. More... | |
Shared IPC code.
| void ipc_print_result | ( | enum u_logging_level | cond_level, |
| const char * | file, | ||
| int | line, | ||
| const char * | calling_func, | ||
| xrt_result_t | xret, | ||
| const char * | called_func | ||
| ) |
#include <ipc/shared/ipc_utils.h>
Helper to print the results of called functions that return xret results, if the result is XRT_SUCCESS will log with info, otherwise error.
Will also check if logging should be done with cond_level.
| cond_level | What the current logging level is. |
| file | Callee site (FILE). |
| line | Callee site (LINE). |
| calling_fn | Callee site (func). |
| xret | Result from the called function. |
| called_fn | Which function that this return is from. |
| const char * ipc_winerror | ( | DWORD | err | ) |
#include <ipc/shared/ipc_utils.h>
Helper to convert windows error codes to human readable strings for logging.
N.B. This routine is not thread safe.
| err | windows error code |