From 4afe2862365ac0feff3de6d1f744a3554dbf2962 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 18 Nov 2025 22:15:25 +0000 Subject: [PATCH] u/device: Break out not implemented functions into own file Part-of: --- src/xrt/auxiliary/util/CMakeLists.txt | 2 + src/xrt/auxiliary/util/u_device.c | 203 -------------- src/xrt/auxiliary/util/u_device.h | 224 ---------------- src/xrt/auxiliary/util/u_device_ni.c | 217 +++++++++++++++ src/xrt/auxiliary/util/u_device_ni.h | 249 ++++++++++++++++++ src/xrt/drivers/android/android_sensors.c | 1 + src/xrt/drivers/euroc/euroc_device.c | 1 + src/xrt/drivers/ht_ctrl_emu/ht_ctrl_emu.cpp | 1 + src/xrt/drivers/hydra/hydra_driver.c | 1 + src/xrt/drivers/ohmd/oh_device.c | 1 + src/xrt/drivers/realsense/rs_ddev.c | 1 + src/xrt/drivers/remote/r_device.c | 1 + src/xrt/drivers/remote/r_hmd.c | 1 + src/xrt/drivers/rift_s/rift_s_controller.c | 1 + .../drivers/simulated/simulated_controller.c | 1 + src/xrt/drivers/twrap/twrap_slam.c | 1 + src/xrt/drivers/wmr/wmr_controller_hp.c | 1 + src/xrt/drivers/wmr/wmr_controller_og.c | 1 + src/xrt/ipc/client/ipc_client_xdev.c | 1 + 19 files changed, 482 insertions(+), 427 deletions(-) create mode 100644 src/xrt/auxiliary/util/u_device_ni.c create mode 100644 src/xrt/auxiliary/util/u_device_ni.h diff --git a/src/xrt/auxiliary/util/CMakeLists.txt b/src/xrt/auxiliary/util/CMakeLists.txt index 34f2d5a01..f3858a897 100644 --- a/src/xrt/auxiliary/util/CMakeLists.txt +++ b/src/xrt/auxiliary/util/CMakeLists.txt @@ -29,6 +29,8 @@ add_library( u_deque.h u_device.c u_device.h + u_device_ni.c + u_device_ni.h u_distortion.c u_distortion.h u_distortion_mesh.c diff --git a/src/xrt/auxiliary/util/u_device.c b/src/xrt/auxiliary/util/u_device.c index 9b2ac792f..37673fedf 100644 --- a/src/xrt/auxiliary/util/u_device.c +++ b/src/xrt/auxiliary/util/u_device.c @@ -507,206 +507,3 @@ u_device_noop_update_inputs(struct xrt_device *xdev) // Empty, should only be used from a device without any inputs. return XRT_SUCCESS; } - - -/* - * - * Not implemented function helpers. - * - */ - -#define E(FN) U_LOG_E("Function " #FN " is not implemented for '%s'", xdev->str) - -xrt_result_t -u_device_ni_get_hand_tracking(struct xrt_device *xdev, - enum xrt_input_name name, - int64_t desired_timestamp_ns, - struct xrt_hand_joint_set *out_value, - int64_t *out_timestamp_ns) -{ - E(get_hand_tracking); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_get_face_tracking(struct xrt_device *xdev, - enum xrt_input_name facial_expression_type, - int64_t at_timestamp_ns, - struct xrt_facial_expression_set *out_value) -{ - E(get_face_tracking); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_get_body_skeleton(struct xrt_device *xdev, - enum xrt_input_name body_tracking_type, - struct xrt_body_skeleton *out_value) -{ - E(get_body_skeleton); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_get_body_joints(struct xrt_device *xdev, - enum xrt_input_name body_tracking_type, - int64_t desired_timestamp_ns, - struct xrt_body_joint_set *out_value) -{ - E(get_body_joints); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_reset_body_tracking_calibration_meta(struct xrt_device *xdev) -{ - E(reset_body_tracking_calibration_meta); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_set_body_tracking_calibration_override_meta(struct xrt_device *xdev, float new_body_height) -{ - E(set_body_tracking_calibration_override_meta); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_set_output(struct xrt_device *xdev, enum xrt_output_name name, const struct xrt_output_value *value) -{ - E(set_output); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_get_output_limits(struct xrt_device *xdev, struct xrt_output_limits *limits) -{ - E(get_output_limits); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_get_presence(struct xrt_device *xdev, bool *presence) -{ - E(get_presence); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_begin_plane_detection_ext(struct xrt_device *xdev, - const struct xrt_plane_detector_begin_info_ext *begin_info, - uint64_t plane_detection_id, - uint64_t *out_plane_detection_id) -{ - E(begin_plane_detection_ext); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_destroy_plane_detection_ext(struct xrt_device *xdev, uint64_t plane_detection_id) -{ - E(destroy_plane_detection_ext); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_get_plane_detection_state_ext(struct xrt_device *xdev, - uint64_t plane_detection_id, - enum xrt_plane_detector_state_ext *out_state) -{ - E(get_plane_detection_state_ext); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_get_plane_detections_ext(struct xrt_device *xdev, - uint64_t plane_detection_id, - struct xrt_plane_detections_ext *out_detections) -{ - E(get_plane_detections_ext); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_get_view_poses(struct xrt_device *xdev, - const struct xrt_vec3 *default_eye_relation, - int64_t at_timestamp_ns, - enum xrt_view_type view_type, - uint32_t view_count, - struct xrt_space_relation *out_head_relation, - struct xrt_fov *out_fovs, - struct xrt_pose *out_poses) -{ - E(get_view_poses); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_compute_distortion( - struct xrt_device *xdev, uint32_t view, float u, float v, struct xrt_uv_triplet *out_result) -{ - E(compute_distortion); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_get_visibility_mask(struct xrt_device *xdev, - enum xrt_visibility_mask_type type, - uint32_t view_index, - struct xrt_visibility_mask **out_mask) -{ - E(get_visibility_mask); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_ref_space_usage(struct xrt_device *xdev, - enum xrt_reference_space_type type, - enum xrt_input_name name, - bool used) -{ - E(ref_space_usage); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -bool -u_device_ni_is_form_factor_available(struct xrt_device *xdev, enum xrt_form_factor form_factor) -{ - E(is_form_factor_available); - return false; -} - -xrt_result_t -u_device_ni_get_battery_status(struct xrt_device *xdev, bool *out_present, bool *out_charging, float *out_charge) -{ - E(get_battery_status); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_get_brightness(struct xrt_device *xdev, float *out_brightness) -{ - E(get_brightness); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_set_brightness(struct xrt_device *xdev, float brightness, bool relative) -{ - E(set_brightness); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_begin_feature(struct xrt_device *xdev, enum xrt_device_feature_type type) -{ - E(begin_feature); - return XRT_ERROR_NOT_IMPLEMENTED; -} - -xrt_result_t -u_device_ni_end_feature(struct xrt_device *xdev, enum xrt_device_feature_type type) -{ - E(end_feature); - return XRT_ERROR_NOT_IMPLEMENTED; -} diff --git a/src/xrt/auxiliary/util/u_device.h b/src/xrt/auxiliary/util/u_device.h index e8b15c3f1..a8483a450 100644 --- a/src/xrt/auxiliary/util/u_device.h +++ b/src/xrt/auxiliary/util/u_device.h @@ -204,230 +204,6 @@ xrt_result_t u_device_noop_update_inputs(struct xrt_device *xdev); -/* - * - * Not implemented function helpers. - * - */ - -/*! - * Not implemented function for @ref xrt_device::get_hand_tracking. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_get_hand_tracking(struct xrt_device *xdev, - enum xrt_input_name name, - int64_t desired_timestamp_ns, - struct xrt_hand_joint_set *out_value, - int64_t *out_timestamp_ns); - -/*! - * Not implemented function for @ref xrt_device::get_face_tracking. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_get_face_tracking(struct xrt_device *xdev, - enum xrt_input_name facial_expression_type, - int64_t at_timestamp_ns, - struct xrt_facial_expression_set *out_value); - -/*! - * Not implemented function for @ref xrt_device::get_body_skeleton. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_get_body_skeleton(struct xrt_device *xdev, - enum xrt_input_name body_tracking_type, - struct xrt_body_skeleton *out_value); - -/*! - * Not implemented function for @ref xrt_device::get_body_joints. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_get_body_joints(struct xrt_device *xdev, - enum xrt_input_name body_tracking_type, - int64_t desired_timestamp_ns, - struct xrt_body_joint_set *out_value); - -/*! - * Not implemented function for @ref xrt_device::reset_body_tracking_calibration_meta. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_reset_body_tracking_calibration_meta(struct xrt_device *xdev); - -/*! - * Not implemented function for @ref xrt_device::set_body_tracking_calibration_override_meta. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_set_body_tracking_calibration_override_meta(struct xrt_device *xdev, float new_body_height); - -/*! - * Not implemented function for @ref xrt_device::set_output. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_set_output(struct xrt_device *xdev, enum xrt_output_name name, const struct xrt_output_value *value); - -/*! - * Not implemented function for @ref xrt_device::get_output_limits. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_get_output_limits(struct xrt_device *xdev, struct xrt_output_limits *limits); - -/*! - * Not implemented function for @ref xrt_device::get_presence. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_get_presence(struct xrt_device *xdev, bool *presence); - -/*! - * Not implemented function for @ref xrt_device::begin_plane_detection_ext. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_begin_plane_detection_ext(struct xrt_device *xdev, - const struct xrt_plane_detector_begin_info_ext *begin_info, - uint64_t plane_detection_id, - uint64_t *out_plane_detection_id); - -/*! - * Not implemented function for @ref xrt_device::destroy_plane_detection_ext. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_destroy_plane_detection_ext(struct xrt_device *xdev, uint64_t plane_detection_id); - -/*! - * Not implemented function for @ref xrt_device::get_plane_detection_state_ext. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_get_plane_detection_state_ext(struct xrt_device *xdev, - uint64_t plane_detection_id, - enum xrt_plane_detector_state_ext *out_state); - -/*! - * Not implemented function for @ref xrt_device::get_plane_detections_ext. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_get_plane_detections_ext(struct xrt_device *xdev, - uint64_t plane_detection_id, - struct xrt_plane_detections_ext *out_detections); - -/*! - * Not implemented function for @ref xrt_device::get_view_poses. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_get_view_poses(struct xrt_device *xdev, - const struct xrt_vec3 *default_eye_relation, - int64_t at_timestamp_ns, - enum xrt_view_type view_type, - uint32_t view_count, - struct xrt_space_relation *out_head_relation, - struct xrt_fov *out_fovs, - struct xrt_pose *out_poses); - -/*! - * Not implemented function for @ref xrt_device::compute_distortion. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_compute_distortion( - struct xrt_device *xdev, uint32_t view, float u, float v, struct xrt_uv_triplet *out_result); - -/*! - * Not implemented function for @ref xrt_device::get_visibility_mask. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_get_visibility_mask(struct xrt_device *xdev, - enum xrt_visibility_mask_type type, - uint32_t view_index, - struct xrt_visibility_mask **out_mask); - -/*! - * Not implemented function for @ref xrt_device::ref_space_usage. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_ref_space_usage(struct xrt_device *xdev, - enum xrt_reference_space_type type, - enum xrt_input_name name, - bool used); - -/*! - * Not implemented function for @ref xrt_device::is_form_factor_available. - * - * @ingroup aux_util - */ -bool -u_device_ni_is_form_factor_available(struct xrt_device *xdev, enum xrt_form_factor form_factor); - -/*! - * Not implemented function for @ref xrt_device::get_battery_status. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_get_battery_status(struct xrt_device *xdev, bool *out_present, bool *out_charging, float *out_charge); - -/*! - * Not implemented function for @ref xrt_device::get_brightness. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_get_brightness(struct xrt_device *xdev, float *out_brightness); - -/*! - * Not implemented function for @ref xrt_device::set_brightness. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_set_brightness(struct xrt_device *xdev, float brightness, bool relative); - -/*! - * Not implemented function for @ref xrt_device::begin_feature. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_begin_feature(struct xrt_device *xdev, enum xrt_device_feature_type type); - -/*! - * Not implemented function for @ref xrt_device::end_feature. - * - * @ingroup aux_util - */ -xrt_result_t -u_device_ni_end_feature(struct xrt_device *xdev, enum xrt_device_feature_type type); - - #ifdef __cplusplus } #endif diff --git a/src/xrt/auxiliary/util/u_device_ni.c b/src/xrt/auxiliary/util/u_device_ni.c new file mode 100644 index 000000000..a10d0da68 --- /dev/null +++ b/src/xrt/auxiliary/util/u_device_ni.c @@ -0,0 +1,217 @@ +// Copyright 2019-2025, Collabora, Ltd. +// SPDX-License-Identifier: BSL-1.0 +/*! + * @file + * @brief Not implemented function helpers for device drivers. + * @author Jakob Bornecrantz + * @author Rylie Pavlik + * @author Moshi Turner + * @author Simon Zeni + * @ingroup aux_util + */ + +#include "util/u_device_ni.h" +#include "util/u_logging.h" + + +/* + * + * Not implemented function helpers. + * + */ + +#define E(FN) U_LOG_E("Function " #FN " is not implemented for '%s'", xdev->str) + +xrt_result_t +u_device_ni_get_hand_tracking(struct xrt_device *xdev, + enum xrt_input_name name, + int64_t desired_timestamp_ns, + struct xrt_hand_joint_set *out_value, + int64_t *out_timestamp_ns) +{ + E(get_hand_tracking); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_get_face_tracking(struct xrt_device *xdev, + enum xrt_input_name facial_expression_type, + int64_t at_timestamp_ns, + struct xrt_facial_expression_set *out_value) +{ + E(get_face_tracking); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_get_body_skeleton(struct xrt_device *xdev, + enum xrt_input_name body_tracking_type, + struct xrt_body_skeleton *out_value) +{ + E(get_body_skeleton); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_get_body_joints(struct xrt_device *xdev, + enum xrt_input_name body_tracking_type, + int64_t desired_timestamp_ns, + struct xrt_body_joint_set *out_value) +{ + E(get_body_joints); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_reset_body_tracking_calibration_meta(struct xrt_device *xdev) +{ + E(reset_body_tracking_calibration_meta); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_set_body_tracking_calibration_override_meta(struct xrt_device *xdev, float new_body_height) +{ + E(set_body_tracking_calibration_override_meta); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_set_output(struct xrt_device *xdev, enum xrt_output_name name, const struct xrt_output_value *value) +{ + E(set_output); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_get_output_limits(struct xrt_device *xdev, struct xrt_output_limits *limits) +{ + E(get_output_limits); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_get_presence(struct xrt_device *xdev, bool *presence) +{ + E(get_presence); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_begin_plane_detection_ext(struct xrt_device *xdev, + const struct xrt_plane_detector_begin_info_ext *begin_info, + uint64_t plane_detection_id, + uint64_t *out_plane_detection_id) +{ + E(begin_plane_detection_ext); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_destroy_plane_detection_ext(struct xrt_device *xdev, uint64_t plane_detection_id) +{ + E(destroy_plane_detection_ext); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_get_plane_detection_state_ext(struct xrt_device *xdev, + uint64_t plane_detection_id, + enum xrt_plane_detector_state_ext *out_state) +{ + E(get_plane_detection_state_ext); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_get_plane_detections_ext(struct xrt_device *xdev, + uint64_t plane_detection_id, + struct xrt_plane_detections_ext *out_detections) +{ + E(get_plane_detections_ext); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_get_view_poses(struct xrt_device *xdev, + const struct xrt_vec3 *default_eye_relation, + int64_t at_timestamp_ns, + enum xrt_view_type view_type, + uint32_t view_count, + struct xrt_space_relation *out_head_relation, + struct xrt_fov *out_fovs, + struct xrt_pose *out_poses) +{ + E(get_view_poses); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_compute_distortion( + struct xrt_device *xdev, uint32_t view, float u, float v, struct xrt_uv_triplet *out_result) +{ + E(compute_distortion); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_get_visibility_mask(struct xrt_device *xdev, + enum xrt_visibility_mask_type type, + uint32_t view_index, + struct xrt_visibility_mask **out_mask) +{ + E(get_visibility_mask); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_ref_space_usage(struct xrt_device *xdev, + enum xrt_reference_space_type type, + enum xrt_input_name name, + bool used) +{ + E(ref_space_usage); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +bool +u_device_ni_is_form_factor_available(struct xrt_device *xdev, enum xrt_form_factor form_factor) +{ + E(is_form_factor_available); + return false; +} + +xrt_result_t +u_device_ni_get_battery_status(struct xrt_device *xdev, bool *out_present, bool *out_charging, float *out_charge) +{ + E(get_battery_status); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_get_brightness(struct xrt_device *xdev, float *out_brightness) +{ + E(get_brightness); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_set_brightness(struct xrt_device *xdev, float brightness, bool relative) +{ + E(set_brightness); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_begin_feature(struct xrt_device *xdev, enum xrt_device_feature_type type) +{ + E(begin_feature); + return XRT_ERROR_NOT_IMPLEMENTED; +} + +xrt_result_t +u_device_ni_end_feature(struct xrt_device *xdev, enum xrt_device_feature_type type) +{ + E(end_feature); + return XRT_ERROR_NOT_IMPLEMENTED; +} diff --git a/src/xrt/auxiliary/util/u_device_ni.h b/src/xrt/auxiliary/util/u_device_ni.h new file mode 100644 index 000000000..fe6b4299a --- /dev/null +++ b/src/xrt/auxiliary/util/u_device_ni.h @@ -0,0 +1,249 @@ +// Copyright 2019-2025, Collabora, Ltd. +// SPDX-License-Identifier: BSL-1.0 +/*! + * @file + * @brief Not implemented function helpers for device drivers. + * @author Jakob Bornecrantz + * @author Rylie Pavlik + * @author Moshi Turner + * @author Simon Zeni + * @ingroup aux_util + */ + +#pragma once + +#include "xrt/xrt_compiler.h" +#include "xrt/xrt_device.h" + +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * + * Not implemented function helpers. + * + */ + +/*! + * Not implemented function for @ref xrt_device::get_hand_tracking. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_get_hand_tracking(struct xrt_device *xdev, + enum xrt_input_name name, + int64_t desired_timestamp_ns, + struct xrt_hand_joint_set *out_value, + int64_t *out_timestamp_ns); + +/*! + * Not implemented function for @ref xrt_device::get_face_tracking. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_get_face_tracking(struct xrt_device *xdev, + enum xrt_input_name facial_expression_type, + int64_t at_timestamp_ns, + struct xrt_facial_expression_set *out_value); + +/*! + * Not implemented function for @ref xrt_device::get_body_skeleton. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_get_body_skeleton(struct xrt_device *xdev, + enum xrt_input_name body_tracking_type, + struct xrt_body_skeleton *out_value); + +/*! + * Not implemented function for @ref xrt_device::get_body_joints. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_get_body_joints(struct xrt_device *xdev, + enum xrt_input_name body_tracking_type, + int64_t desired_timestamp_ns, + struct xrt_body_joint_set *out_value); + +/*! + * Not implemented function for @ref xrt_device::reset_body_tracking_calibration_meta. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_reset_body_tracking_calibration_meta(struct xrt_device *xdev); + +/*! + * Not implemented function for @ref xrt_device::set_body_tracking_calibration_override_meta. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_set_body_tracking_calibration_override_meta(struct xrt_device *xdev, float new_body_height); + +/*! + * Not implemented function for @ref xrt_device::set_output. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_set_output(struct xrt_device *xdev, enum xrt_output_name name, const struct xrt_output_value *value); + +/*! + * Not implemented function for @ref xrt_device::get_output_limits. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_get_output_limits(struct xrt_device *xdev, struct xrt_output_limits *limits); + +/*! + * Not implemented function for @ref xrt_device::get_presence. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_get_presence(struct xrt_device *xdev, bool *presence); + +/*! + * Not implemented function for @ref xrt_device::begin_plane_detection_ext. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_begin_plane_detection_ext(struct xrt_device *xdev, + const struct xrt_plane_detector_begin_info_ext *begin_info, + uint64_t plane_detection_id, + uint64_t *out_plane_detection_id); + +/*! + * Not implemented function for @ref xrt_device::destroy_plane_detection_ext. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_destroy_plane_detection_ext(struct xrt_device *xdev, uint64_t plane_detection_id); + +/*! + * Not implemented function for @ref xrt_device::get_plane_detection_state_ext. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_get_plane_detection_state_ext(struct xrt_device *xdev, + uint64_t plane_detection_id, + enum xrt_plane_detector_state_ext *out_state); + +/*! + * Not implemented function for @ref xrt_device::get_plane_detections_ext. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_get_plane_detections_ext(struct xrt_device *xdev, + uint64_t plane_detection_id, + struct xrt_plane_detections_ext *out_detections); + +/*! + * Not implemented function for @ref xrt_device::get_view_poses. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_get_view_poses(struct xrt_device *xdev, + const struct xrt_vec3 *default_eye_relation, + int64_t at_timestamp_ns, + enum xrt_view_type view_type, + uint32_t view_count, + struct xrt_space_relation *out_head_relation, + struct xrt_fov *out_fovs, + struct xrt_pose *out_poses); + +/*! + * Not implemented function for @ref xrt_device::compute_distortion. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_compute_distortion( + struct xrt_device *xdev, uint32_t view, float u, float v, struct xrt_uv_triplet *out_result); + +/*! + * Not implemented function for @ref xrt_device::get_visibility_mask. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_get_visibility_mask(struct xrt_device *xdev, + enum xrt_visibility_mask_type type, + uint32_t view_index, + struct xrt_visibility_mask **out_mask); + +/*! + * Not implemented function for @ref xrt_device::ref_space_usage. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_ref_space_usage(struct xrt_device *xdev, + enum xrt_reference_space_type type, + enum xrt_input_name name, + bool used); + +/*! + * Not implemented function for @ref xrt_device::is_form_factor_available. + * + * @ingroup aux_util + */ +bool +u_device_ni_is_form_factor_available(struct xrt_device *xdev, enum xrt_form_factor form_factor); + +/*! + * Not implemented function for @ref xrt_device::get_battery_status. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_get_battery_status(struct xrt_device *xdev, bool *out_present, bool *out_charging, float *out_charge); + +/*! + * Not implemented function for @ref xrt_device::get_brightness. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_get_brightness(struct xrt_device *xdev, float *out_brightness); + +/*! + * Not implemented function for @ref xrt_device::set_brightness. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_set_brightness(struct xrt_device *xdev, float brightness, bool relative); + +/*! + * Not implemented function for @ref xrt_device::begin_feature. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_begin_feature(struct xrt_device *xdev, enum xrt_device_feature_type type); + +/*! + * Not implemented function for @ref xrt_device::end_feature. + * + * @ingroup aux_util + */ +xrt_result_t +u_device_ni_end_feature(struct xrt_device *xdev, enum xrt_device_feature_type type); + + +#ifdef __cplusplus +} +#endif diff --git a/src/xrt/drivers/android/android_sensors.c b/src/xrt/drivers/android/android_sensors.c index af30f2d36..889f89923 100644 --- a/src/xrt/drivers/android/android_sensors.c +++ b/src/xrt/drivers/android/android_sensors.c @@ -16,6 +16,7 @@ #include "util/u_debug.h" #include "util/u_device.h" +#include "util/u_device_ni.h" #include "util/u_distortion_mesh.h" #include "util/u_var.h" #include "util/u_visibility_mask.h" diff --git a/src/xrt/drivers/euroc/euroc_device.c b/src/xrt/drivers/euroc/euroc_device.c index 35d2240c8..53afb8a7b 100644 --- a/src/xrt/drivers/euroc/euroc_device.c +++ b/src/xrt/drivers/euroc/euroc_device.c @@ -10,6 +10,7 @@ #include "util/u_misc.h" #include "util/u_debug.h" #include "util/u_device.h" +#include "util/u_device_ni.h" #include "util/u_distortion_mesh.h" #include "util/u_var.h" #include "math/m_space.h" diff --git a/src/xrt/drivers/ht_ctrl_emu/ht_ctrl_emu.cpp b/src/xrt/drivers/ht_ctrl_emu/ht_ctrl_emu.cpp index 19d6b63b3..38d59de07 100644 --- a/src/xrt/drivers/ht_ctrl_emu/ht_ctrl_emu.cpp +++ b/src/xrt/drivers/ht_ctrl_emu/ht_ctrl_emu.cpp @@ -24,6 +24,7 @@ #include "util/u_misc.h" #include "util/u_debug.h" #include "util/u_device.h" +#include "util/u_device_ni.h" #include "util/u_distortion_mesh.h" #include "util/u_config_json.h" diff --git a/src/xrt/drivers/hydra/hydra_driver.c b/src/xrt/drivers/hydra/hydra_driver.c index 62e3cf703..2e40047e0 100644 --- a/src/xrt/drivers/hydra/hydra_driver.c +++ b/src/xrt/drivers/hydra/hydra_driver.c @@ -31,6 +31,7 @@ #include "util/u_debug.h" #include "util/u_device.h" +#include "util/u_device_ni.h" #include "util/u_misc.h" #include "util/u_time.h" #include "util/u_logging.h" diff --git a/src/xrt/drivers/ohmd/oh_device.c b/src/xrt/drivers/ohmd/oh_device.c index af0fd04e9..445844fe6 100644 --- a/src/xrt/drivers/ohmd/oh_device.c +++ b/src/xrt/drivers/ohmd/oh_device.c @@ -21,6 +21,7 @@ #include "util/u_misc.h" #include "util/u_debug.h" #include "util/u_device.h" +#include "util/u_device_ni.h" #include "util/u_time.h" #include "util/u_distortion_mesh.h" #include "util/u_logging.h" diff --git a/src/xrt/drivers/realsense/rs_ddev.c b/src/xrt/drivers/realsense/rs_ddev.c index 04284e5af..bfed5f421 100644 --- a/src/xrt/drivers/realsense/rs_ddev.c +++ b/src/xrt/drivers/realsense/rs_ddev.c @@ -22,6 +22,7 @@ #include "util/u_time.h" #include "util/u_device.h" +#include "util/u_device_ni.h" #include "util/u_logging.h" #include "util/u_json.h" diff --git a/src/xrt/drivers/remote/r_device.c b/src/xrt/drivers/remote/r_device.c index 8ad1f3690..d3a9bfe1f 100644 --- a/src/xrt/drivers/remote/r_device.c +++ b/src/xrt/drivers/remote/r_device.c @@ -15,6 +15,7 @@ #include "util/u_misc.h" #include "util/u_debug.h" #include "util/u_device.h" +#include "util/u_device_ni.h" #include "util/u_hand_tracking.h" #include "vive/vive_bindings.h" diff --git a/src/xrt/drivers/remote/r_hmd.c b/src/xrt/drivers/remote/r_hmd.c index caebc012e..214a2566b 100644 --- a/src/xrt/drivers/remote/r_hmd.c +++ b/src/xrt/drivers/remote/r_hmd.c @@ -15,6 +15,7 @@ #include "util/u_misc.h" #include "util/u_debug.h" #include "util/u_device.h" +#include "util/u_device_ni.h" #include "util/u_distortion_mesh.h" #include "math/m_api.h" diff --git a/src/xrt/drivers/rift_s/rift_s_controller.c b/src/xrt/drivers/rift_s/rift_s_controller.c index f6146f7fb..266934433 100644 --- a/src/xrt/drivers/rift_s/rift_s_controller.c +++ b/src/xrt/drivers/rift_s/rift_s_controller.c @@ -28,6 +28,7 @@ #include "os/os_hid.h" #include "util/u_device.h" +#include "util/u_device_ni.h" #include "util/u_trace_marker.h" #include "util/u_var.h" diff --git a/src/xrt/drivers/simulated/simulated_controller.c b/src/xrt/drivers/simulated/simulated_controller.c index a6f284fcf..ecc924742 100644 --- a/src/xrt/drivers/simulated/simulated_controller.c +++ b/src/xrt/drivers/simulated/simulated_controller.c @@ -19,6 +19,7 @@ #include "util/u_time.h" #include "util/u_debug.h" #include "util/u_device.h" +#include "util/u_device_ni.h" #include "util/u_logging.h" #include "util/u_distortion_mesh.h" diff --git a/src/xrt/drivers/twrap/twrap_slam.c b/src/xrt/drivers/twrap/twrap_slam.c index 94458e399..5a52a5a5a 100644 --- a/src/xrt/drivers/twrap/twrap_slam.c +++ b/src/xrt/drivers/twrap/twrap_slam.c @@ -29,6 +29,7 @@ #include #include "util/u_device.h" +#include "util/u_device_ni.h" #include "math/m_space.h" #include "util/u_tracked_imu_3dof.h" diff --git a/src/xrt/drivers/wmr/wmr_controller_hp.c b/src/xrt/drivers/wmr/wmr_controller_hp.c index 8d90f5c87..aad7db609 100644 --- a/src/xrt/drivers/wmr/wmr_controller_hp.c +++ b/src/xrt/drivers/wmr/wmr_controller_hp.c @@ -11,6 +11,7 @@ #include "math/m_api.h" #include "util/u_device.h" +#include "util/u_device_ni.h" #include "util/u_trace_marker.h" #include "util/u_var.h" diff --git a/src/xrt/drivers/wmr/wmr_controller_og.c b/src/xrt/drivers/wmr/wmr_controller_og.c index 974d89409..319f701d0 100644 --- a/src/xrt/drivers/wmr/wmr_controller_og.c +++ b/src/xrt/drivers/wmr/wmr_controller_og.c @@ -11,6 +11,7 @@ #include "math/m_api.h" #include "util/u_device.h" +#include "util/u_device_ni.h" #include "util/u_trace_marker.h" #include "util/u_var.h" diff --git a/src/xrt/ipc/client/ipc_client_xdev.c b/src/xrt/ipc/client/ipc_client_xdev.c index 6ebfa5808..9439edb9b 100644 --- a/src/xrt/ipc/client/ipc_client_xdev.c +++ b/src/xrt/ipc/client/ipc_client_xdev.c @@ -20,6 +20,7 @@ #include "util/u_misc.h" #include "util/u_debug.h" #include "util/u_device.h" +#include "util/u_device_ni.h" #include "client/ipc_client.h" #include "client/ipc_client_connection.h" -- 2.51.2