···228228 case XRT_ERROR_SYNC_PRIMITIVE_CREATION_FAILED: DG("XRT_ERROR_SYNC_PRIMITIVE_CREATION_FAILED"); return;
229229 case XRT_ERROR_IPC_SERVICE_ALREADY_RUNNING: DG("XRT_ERROR_IPC_SERVICE_ALREADY_RUNNING"); return;
230230 case XRT_ERROR_IPC_MAINLOOP_FAILED_TO_INIT: DG("XRT_ERROR_IPC_MAINLOOP_FAILED_TO_INIT"); return;
231231+ case XRT_ERROR_INVALID_ARGUMENT: DG("XRT_ERROR_INVALID_ARGUMENT"); return;
232232+ case XRT_OPERATION_CANCELLED: DG("XRT_OPERATION_CANCELLED"); return;
233233+ case XRT_ERROR_FUTURE_RESULT_NOT_READY: DG("XRT_ERROR_FUTURE_RESULT_NOT_READY"); return;
234234+ case XRT_ERROR_FUTURE_ALREADY_COMPLETE: DG("XRT_ERROR_FUTURE_ALREADY_COMPLETE"); return;
231235 }
232236 // clang-format on
233237
+20
src/xrt/include/xrt/xrt_results.h
···3939 XRT_SPACE_BOUNDS_UNAVAILABLE = 3,
40404141 /*!
4242+ * An (asynchronous) operation has been cancelled.
4343+ */
4444+ XRT_OPERATION_CANCELLED = 4,
4545+4646+ /*!
4247 * A problem occurred either with the IPC transport itself, with invalid commands from the client, or with
4348 * invalid responses from the server.
4449 */
···231236 * The IPC server couldn't starts it mainloop.
232237 */
233238 XRT_ERROR_IPC_MAINLOOP_FAILED_TO_INIT = -38,
239239+240240+ /*!
241241+ * Invalid function arguments passed in, e.g. null or out-of-range values.
242242+ */
243243+ XRT_ERROR_INVALID_ARGUMENT = -39,
244244+245245+ /*!
246246+ * Querying result of a future before it is ready.
247247+ */
248248+ XRT_ERROR_FUTURE_RESULT_NOT_READY = -40,
249249+250250+ /*!
251251+ * Invoking complete on an already completed future
252252+ */
253253+ XRT_ERROR_FUTURE_ALREADY_COMPLETE = -41,
234254} xrt_result_t;