mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 12:25:32 +00:00
xrt: Add some error messages
This commit is contained in:
parent
01a4605cf4
commit
58438db241
|
@ -273,6 +273,12 @@ u_pp_xrt_result(struct u_pp_delegate dg, xrt_result_t xret)
|
||||||
case XRT_ERROR_THREADING_INIT_FAILURE: DG("XRT_ERROR_THREADING_INIT_FAILURE"); return;
|
case XRT_ERROR_THREADING_INIT_FAILURE: DG("XRT_ERROR_THREADING_INIT_FAILURE"); return;
|
||||||
case XRT_ERROR_IPC_SESSION_NOT_CREATED: DG("XRT_ERROR_IPC_SESSION_NOT_CREATED"); return;
|
case XRT_ERROR_IPC_SESSION_NOT_CREATED: DG("XRT_ERROR_IPC_SESSION_NOT_CREATED"); return;
|
||||||
case XRT_ERROR_IPC_SESSION_ALREADY_CREATED: DG("XRT_ERROR_IPC_SESSION_ALREADY_CREATED"); return;
|
case XRT_ERROR_IPC_SESSION_ALREADY_CREATED: DG("XRT_ERROR_IPC_SESSION_ALREADY_CREATED"); return;
|
||||||
|
case XRT_ERROR_PROBER_NOT_SUPPORTED: DG("XRT_ERROR_PROBER_NOT_SUPPORTED"); return;
|
||||||
|
case XRT_ERROR_PROBER_CREATION_FAILED: DG("XRT_ERROR_PROBER_CREATION_FAILED"); return;
|
||||||
|
case XRT_ERROR_PROBER_LIST_LOCKED: DG("XRT_ERROR_PROBER_LIST_LOCKED"); return;
|
||||||
|
case XRT_ERROR_PROBER_LIST_NOT_LOCKED: DG("XRT_ERROR_PROBER_LIST_NOT_LOCKED"); return;
|
||||||
|
case XRT_ERROR_PROBING_FAILED: DG("XRT_ERROR_PROBING_FAILED"); return;
|
||||||
|
case XRT_ERROR_DEVICE_CREATION_FAILED: DG("XRT_ERROR_DEVICE_CREATION_FAILED"); return;
|
||||||
// clang-format on
|
// clang-format on
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,4 +78,28 @@ typedef enum xrt_result
|
||||||
* The client has already created a session on this IPC connection.
|
* The client has already created a session on this IPC connection.
|
||||||
*/
|
*/
|
||||||
XRT_ERROR_IPC_SESSION_ALREADY_CREATED = -16,
|
XRT_ERROR_IPC_SESSION_ALREADY_CREATED = -16,
|
||||||
|
/*!
|
||||||
|
* The prober list has not been locked before this call.
|
||||||
|
*/
|
||||||
|
XRT_ERROR_PROBER_NOT_SUPPORTED = -17,
|
||||||
|
/*!
|
||||||
|
* Creating the @ref xrt_prober failed.
|
||||||
|
*/
|
||||||
|
XRT_ERROR_PROBER_CREATION_FAILED = -18,
|
||||||
|
/*!
|
||||||
|
* The prober list is locked (already).
|
||||||
|
*/
|
||||||
|
XRT_ERROR_PROBER_LIST_LOCKED = -19,
|
||||||
|
/*!
|
||||||
|
* The prober list has not been locked before this call.
|
||||||
|
*/
|
||||||
|
XRT_ERROR_PROBER_LIST_NOT_LOCKED = -20,
|
||||||
|
/*!
|
||||||
|
* The probring failed.
|
||||||
|
*/
|
||||||
|
XRT_ERROR_PROBING_FAILED = -21,
|
||||||
|
/*!
|
||||||
|
* Creating a @ref xrt_device failed.
|
||||||
|
*/
|
||||||
|
XRT_ERROR_DEVICE_CREATION_FAILED = -22,
|
||||||
} xrt_result_t;
|
} xrt_result_t;
|
||||||
|
|
Loading…
Reference in a new issue