xrt: xrt_device_get_tracked_pose return xrt_result_t

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2271>
This commit is contained in:
Simon Zeni 2024-07-03 10:34:34 -04:00
parent 1473430eef
commit 177f34c8f0
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1 @@
- xrt_device_get_tracked_pose returns xrt_result_t to improve error handling in the state tracker

View file

@ -574,13 +574,14 @@ xrt_device_update_inputs(struct xrt_device *xdev)
*
* @public @memberof xrt_device
*/
static inline void
static inline xrt_result_t
xrt_device_get_tracked_pose(struct xrt_device *xdev,
enum xrt_input_name name,
int64_t at_timestamp_ns,
struct xrt_space_relation *out_relation)
{
xdev->get_tracked_pose(xdev, name, at_timestamp_ns, out_relation);
return XRT_SUCCESS;
}
/*!