From 0769474518873f972ebabc551b26afd616e2497d Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Mon, 25 Nov 2024 11:35:07 -0500 Subject: [PATCH] xrt: xrt_device_compute_distortion return xrt_result_t Part-of: --- doc/changes/xrt/mr.2367.md | 1 + src/xrt/include/xrt/xrt_device.h | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 doc/changes/xrt/mr.2367.md diff --git a/doc/changes/xrt/mr.2367.md b/doc/changes/xrt/mr.2367.md new file mode 100644 index 000000000..ca2babdc9 --- /dev/null +++ b/doc/changes/xrt/mr.2367.md @@ -0,0 +1 @@ +xrt_device_compute_distortion returns xrt_result_t to improve error handling in the state tracker diff --git a/src/xrt/include/xrt/xrt_device.h b/src/xrt/include/xrt/xrt_device.h index 5c2b19090..cb35e768a 100644 --- a/src/xrt/include/xrt/xrt_device.h +++ b/src/xrt/include/xrt/xrt_device.h @@ -883,11 +883,12 @@ xrt_device_get_view_poses(struct xrt_device *xdev, * * @public @memberof xrt_device */ -static inline bool +static inline xrt_result_t xrt_device_compute_distortion( struct xrt_device *xdev, uint32_t view, float u, float v, struct xrt_uv_triplet *out_result) { - return xdev->compute_distortion(xdev, view, u, v, out_result); + xdev->compute_distortion(xdev, view, u, v, out_result); + return XRT_SUCCESS; } /*! -- 2.51.2