mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
xrt: Make eye_relation argument to xrt_device_get_view_pose const (NFC)
This commit is contained in:
parent
4dd96a666b
commit
8277df418d
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Reference in a new issue