xrt: Make eye_relation argument to xrt_device_get_view_pose const (NFC)

This commit is contained in:
Jakob Bornecrantz 2021-04-27 00:52:31 +01:00
parent 4dd96a666b
commit 8277df418d
20 changed files with 26 additions and 22 deletions

View file

@ -170,7 +170,7 @@ android_device_get_tracked_pose(struct xrt_device *xdev,
static void
android_device_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -121,7 +121,7 @@ dummy_hmd_get_tracked_pose(struct xrt_device *xdev,
static void
dummy_hmd_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -260,7 +260,7 @@ hdk_device_get_tracked_pose(struct xrt_device *xdev,
static void
hdk_device_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -132,7 +132,7 @@ illixr_hmd_get_tracked_pose(struct xrt_device *xdev,
static void
illixr_hmd_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -179,7 +179,10 @@ set_output(struct xrt_device *xdev, enum xrt_output_name name, union xrt_output_
}
static void
get_view_pose(struct xrt_device *xdev, struct xrt_vec3 *eye_relation, uint32_t view_index, struct xrt_pose *out_pose)
get_view_pose(struct xrt_device *xdev,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{
struct multi_device *d = (struct multi_device *)xdev;
struct xrt_device *target = d->tracking_override.target;

View file

@ -93,7 +93,7 @@ ns_hmd_get_tracked_pose(struct xrt_device *xdev,
static void
ns_hmd_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{
@ -201,7 +201,7 @@ ns_fov_calculate(struct xrt_fov *fov, struct xrt_quat projection)
static void
ns_v2_hmd_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -432,7 +432,7 @@ oh_device_get_tracked_pose(struct xrt_device *xdev,
static void
oh_device_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -929,7 +929,7 @@ psvr_device_get_tracked_pose(struct xrt_device *xdev,
static void
psvr_device_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -196,7 +196,7 @@ qwerty_get_tracked_pose(struct xrt_device *xd,
static void
qwerty_get_view_pose(struct xrt_device *xd,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -366,7 +366,7 @@ rs_6dof_get_tracked_pose(struct xrt_device *xdev,
}
static void
rs_6dof_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -148,7 +148,7 @@ r_device_get_hand_tracking(struct xrt_device *xdev,
static void
r_device_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -85,7 +85,7 @@ r_hmd_get_hand_tracking(struct xrt_device *xdev,
static void
r_hmd_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -443,7 +443,7 @@ survive_controller_get_hand_tracking(struct xrt_device *xdev,
static void
survive_device_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -138,7 +138,7 @@ vive_device_get_tracked_pose(struct xrt_device *xdev,
static void
vive_device_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -412,7 +412,7 @@ wmr_hmd_get_tracked_pose(struct xrt_device *xdev,
static void
wmr_hmd_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -341,7 +341,7 @@ struct xrt_device
* orientation unless you have canted screens.
*/
void (*get_view_pose)(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose);
@ -410,7 +410,7 @@ xrt_device_set_output(struct xrt_device *xdev, enum xrt_output_name name, union
*/
static inline void
xrt_device_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -120,7 +120,7 @@ ipc_client_device_get_hand_tracking(struct xrt_device *xdev,
static void
ipc_client_device_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -106,7 +106,7 @@ ipc_client_hmd_get_tracked_pose(struct xrt_device *xdev,
static void
ipc_client_hmd_get_view_pose(struct xrt_device *xdev,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -925,10 +925,11 @@ ipc_handle_device_get_hand_tracking(volatile struct ipc_client_state *ics,
return XRT_SUCCESS;
}
xrt_result_t
ipc_handle_device_get_view_pose(volatile struct ipc_client_state *ics,
uint32_t id,
struct xrt_vec3 *eye_relation,
const struct xrt_vec3 *eye_relation,
uint32_t view_index,
struct xrt_pose *out_pose)
{

View file

@ -200,7 +200,7 @@
"device_get_view_pose": {
"in": [
{"name": "id", "type": "uint32_t"},
{"name": "eye_relation", "type": "struct xrt_vec3"},
{"name": "eye_relation", "type": "const struct xrt_vec3"},
{"name": "view_index", "type": "uint32_t"}
],
"out": [