xrt: use int64_t for timestamps in get_body_joints

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298>
This commit is contained in:
Simon Zeni 2024-08-02 14:05:34 -04:00 committed by Rylie Pavlik
parent 68ca582362
commit 8cf2e4bd2b
4 changed files with 5 additions and 5 deletions

View file

@ -384,7 +384,7 @@ struct xrt_device
*/
xrt_result_t (*get_body_joints)(struct xrt_device *xdev,
enum xrt_input_name body_tracking_type,
uint64_t desired_timestamp_ns,
int64_t desired_timestamp_ns,
struct xrt_body_joint_set *out_value);
/*!
@ -613,7 +613,7 @@ xrt_device_get_body_skeleton(struct xrt_device *xdev,
static inline xrt_result_t
xrt_device_get_body_joints(struct xrt_device *xdev,
enum xrt_input_name body_tracking_type,
uint64_t desired_timestamp_ns,
int64_t desired_timestamp_ns,
struct xrt_body_joint_set *out_value)
{
if (xdev->get_body_joints == NULL) {

View file

@ -151,7 +151,7 @@ ipc_client_device_get_body_skeleton(struct xrt_device *xdev,
static xrt_result_t
ipc_client_device_get_body_joints(struct xrt_device *xdev,
enum xrt_input_name body_tracking_type,
uint64_t desired_timestamp_ns,
int64_t desired_timestamp_ns,
struct xrt_body_joint_set *out_value)
{
ipc_client_device_t *icd = ipc_client_device(xdev);

View file

@ -2138,7 +2138,7 @@ xrt_result_t
ipc_handle_device_get_body_joints(volatile struct ipc_client_state *ics,
uint32_t id,
enum xrt_input_name body_tracking_type,
uint64_t desired_timestamp_ns,
int64_t desired_timestamp_ns,
struct xrt_body_joint_set *out_value)
{
struct xrt_device *xdev = get_xdev(ics, id);

View file

@ -507,7 +507,7 @@
"in": [
{"name": "id", "type": "uint32_t"},
{"name": "body_tracking_type", "type": "enum xrt_input_name"},
{"name": "desired_timestamp_ns", "type": "uint64_t"}
{"name": "desired_timestamp_ns", "type": "int64_t"}
],
"out": [
{"name": "value", "type": "struct xrt_body_joint_set"}