xrt: Add XRT_ERROR_DEVICE_FUNCTION_NOT_IMPLEMENTED error

This commit is contained in:
Jakob Bornecrantz 2023-11-15 16:24:22 +00:00
parent 4bab1b2fe2
commit c24bb53dbf
2 changed files with 8 additions and 0 deletions

View file

@ -392,6 +392,7 @@ u_pp_xrt_result(struct u_pp_delegate dg, xrt_result_t xret)
case XRT_ERROR_RECENTERING_NOT_SUPPORTED: DG("XRT_ERROR_RECENTERING_NOT_SUPPORTED"); return;
case XRT_ERROR_COMPOSITOR_NOT_SUPPORTED: DG("XRT_ERROR_COMPOSITOR_NOT_SUPPORTED"); return;
case XRT_ERROR_IPC_COMPOSITOR_NOT_CREATED: DG("XRT_ERROR_IPC_COMPOSITOR_NOT_CREATED"); return;
case XRT_ERROR_DEVICE_FUNCTION_NOT_IMPLEMENTED: DG("XRT_ERROR_DEVICE_FUNCTION_NOT_IMPLEMENTED"); return;
}
// clang-format on

View file

@ -174,4 +174,11 @@ typedef enum xrt_result
* which is needed for the given command.
*/
XRT_ERROR_IPC_COMPOSITOR_NOT_CREATED = -28,
/*!
* The function called on the device was not implemented, it is not
* meant to query the availability of the function or feature, only a
* error condition on bad code.
*/
XRT_ERROR_DEVICE_FUNCTION_NOT_IMPLEMENTED = -29,
} xrt_result_t;