From 8cf2e4bd2bd4be25f6deba8fe05f160092a1d43a Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Fri, 2 Aug 2024 14:05:34 -0400 Subject: [PATCH] xrt: use int64_t for timestamps in get_body_joints Part-of: --- src/xrt/include/xrt/xrt_device.h | 4 ++-- src/xrt/ipc/client/ipc_client_device.c | 2 +- src/xrt/ipc/server/ipc_server_handler.c | 2 +- src/xrt/ipc/shared/proto.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/xrt/include/xrt/xrt_device.h b/src/xrt/include/xrt/xrt_device.h index e3e88aef6..f411f01d6 100644 --- a/src/xrt/include/xrt/xrt_device.h +++ b/src/xrt/include/xrt/xrt_device.h @@ -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) { diff --git a/src/xrt/ipc/client/ipc_client_device.c b/src/xrt/ipc/client/ipc_client_device.c index 3766acecc..e340a7ea1 100644 --- a/src/xrt/ipc/client/ipc_client_device.c +++ b/src/xrt/ipc/client/ipc_client_device.c @@ -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); diff --git a/src/xrt/ipc/server/ipc_server_handler.c b/src/xrt/ipc/server/ipc_server_handler.c index 82f98f196..862a00347 100644 --- a/src/xrt/ipc/server/ipc_server_handler.c +++ b/src/xrt/ipc/server/ipc_server_handler.c @@ -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); diff --git a/src/xrt/ipc/shared/proto.json b/src/xrt/ipc/shared/proto.json index eb57fffd4..1a0094082 100644 --- a/src/xrt/ipc/shared/proto.json +++ b/src/xrt/ipc/shared/proto.json @@ -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"}