The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/math: Put m_relation_history_get out argument last

+6 -6
+1 -1
src/xrt/auxiliary/math/m_relation_history.cpp
··· 81 81 } 82 82 83 83 enum m_relation_history_result 84 - m_relation_history_get(struct m_relation_history *rh, struct xrt_space_relation *out_relation, uint64_t at_timestamp_ns) 84 + m_relation_history_get(struct m_relation_history *rh, uint64_t at_timestamp_ns, struct xrt_space_relation *out_relation) 85 85 { 86 86 XRT_TRACE_MARKER(); 87 87 os_mutex_lock(&rh->mutex);
+1 -1
src/xrt/auxiliary/math/m_relation_history.h
··· 63 63 * @public @memberof m_relation_history 64 64 */ 65 65 enum m_relation_history_result 66 - m_relation_history_get(struct m_relation_history *rh, struct xrt_space_relation *out_relation, uint64_t at_time_ns); 66 + m_relation_history_get(struct m_relation_history *rh, uint64_t at_time_ns, struct xrt_space_relation *out_relation); 67 67 68 68 /*! 69 69 * Destroys an opaque relation_history object.
+1 -1
src/xrt/drivers/realsense/rs_ddev.c
··· 408 408 return; 409 409 } 410 410 411 - m_relation_history_get(rs->relation_hist, out_relation, at_timestamp_ns); 411 + m_relation_history_get(rs->relation_hist, at_timestamp_ns, out_relation); 412 412 } 413 413 414 414 static void
+2 -2
src/xrt/drivers/survive/survive_driver.c
··· 332 332 return; 333 333 } 334 334 335 - m_relation_history_get(survive->relation_hist, out_relation, at_timestamp_ns); 335 + m_relation_history_get(survive->relation_hist, at_timestamp_ns, out_relation); 336 336 337 337 struct xrt_pose *p = &out_relation->pose; 338 338 SURVIVE_TRACE(survive, "GET_POSITION (%f %f %f) GET_ORIENTATION (%f, %f, %f, %f)", p->position.x, p->position.y, ··· 434 434 435 435 struct xrt_space_relation hand_relation; 436 436 437 - m_relation_history_get(survive->relation_hist, &hand_relation, at_timestamp_ns); 437 + m_relation_history_get(survive->relation_hist, at_timestamp_ns, &hand_relation); 438 438 439 439 u_hand_joints_set_out_data(&survive->ctrl.hand_tracking, hand, &hand_relation, &hand_on_handle_pose, out_value); 440 440
+1 -1
src/xrt/drivers/vive/vive_device.c
··· 113 113 // Clear out the relation. 114 114 U_ZERO(out_relation); 115 115 116 - m_relation_history_get(d->relation_hist, out_relation, at_timestamp_ns); 116 + m_relation_history_get(d->relation_hist, at_timestamp_ns, out_relation); 117 117 } 118 118 119 119 static void