mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-28 01:18:31 +00:00
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:
parent
1473430eef
commit
177f34c8f0
1
doc/changes/xrt/mr.2271.md
Normal file
1
doc/changes/xrt/mr.2271.md
Normal file
|
@ -0,0 +1 @@
|
|||
- xrt_device_get_tracked_pose returns xrt_result_t to improve error handling in the state tracker
|
|
@ -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;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in a new issue