From 1cc7264b84ff51869b62ea98f3dbcfaf68b35b38 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 5 Nov 2025 22:37:27 +0000 Subject: [PATCH] u/device: Add not implemented functions for all xrt_device functions Part-of: --- src/xrt/auxiliary/util/u_device.c | 130 ++++++++++++++++++++++++++ src/xrt/auxiliary/util/u_device.h | 146 ++++++++++++++++++++++++++++++ 2 files changed, 276 insertions(+) diff --git a/src/xrt/auxiliary/util/u_device.c b/src/xrt/auxiliary/util/u_device.c index f1fa23aaf..9b2ac792f 100644 --- a/src/xrt/auxiliary/util/u_device.c +++ b/src/xrt/auxiliary/util/u_device.c @@ -528,6 +528,49 @@ u_device_ni_get_hand_tracking(struct xrt_device *xdev, 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) { @@ -535,6 +578,55 @@ u_device_ni_set_output(struct xrt_device *xdev, enum xrt_output_name name, const 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, @@ -567,6 +659,16 @@ u_device_ni_get_visibility_mask(struct xrt_device *xdev, 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) { @@ -580,3 +682,31 @@ u_device_ni_get_battery_status(struct xrt_device *xdev, bool *out_present, bool 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 ccc19d06e..e8b15c3f1 100644 --- a/src/xrt/auxiliary/util/u_device.h +++ b/src/xrt/auxiliary/util/u_device.h @@ -222,6 +222,54 @@ u_device_ni_get_hand_tracking(struct xrt_device *xdev, 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. * @@ -230,6 +278,61 @@ u_device_ni_get_hand_tracking(struct xrt_device *xdev, 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. * @@ -265,6 +368,17 @@ u_device_ni_get_visibility_mask(struct xrt_device *xdev, 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. * @@ -281,6 +395,38 @@ u_device_ni_is_form_factor_available(struct xrt_device *xdev, enum xrt_form_fact 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 } -- 2.51.2