The open source OpenXR runtime

u/device: Add not implemented functions for all xrt_device functions

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2612>

authored by

Jakob Bornecrantz and committed by
Korcan Hussein
1cc7264b a516ee1b

+276
+130
src/xrt/auxiliary/util/u_device.c
··· 529 529 } 530 530 531 531 xrt_result_t 532 + u_device_ni_get_face_tracking(struct xrt_device *xdev, 533 + enum xrt_input_name facial_expression_type, 534 + int64_t at_timestamp_ns, 535 + struct xrt_facial_expression_set *out_value) 536 + { 537 + E(get_face_tracking); 538 + return XRT_ERROR_NOT_IMPLEMENTED; 539 + } 540 + 541 + xrt_result_t 542 + u_device_ni_get_body_skeleton(struct xrt_device *xdev, 543 + enum xrt_input_name body_tracking_type, 544 + struct xrt_body_skeleton *out_value) 545 + { 546 + E(get_body_skeleton); 547 + return XRT_ERROR_NOT_IMPLEMENTED; 548 + } 549 + 550 + xrt_result_t 551 + u_device_ni_get_body_joints(struct xrt_device *xdev, 552 + enum xrt_input_name body_tracking_type, 553 + int64_t desired_timestamp_ns, 554 + struct xrt_body_joint_set *out_value) 555 + { 556 + E(get_body_joints); 557 + return XRT_ERROR_NOT_IMPLEMENTED; 558 + } 559 + 560 + xrt_result_t 561 + u_device_ni_reset_body_tracking_calibration_meta(struct xrt_device *xdev) 562 + { 563 + E(reset_body_tracking_calibration_meta); 564 + return XRT_ERROR_NOT_IMPLEMENTED; 565 + } 566 + 567 + xrt_result_t 568 + u_device_ni_set_body_tracking_calibration_override_meta(struct xrt_device *xdev, float new_body_height) 569 + { 570 + E(set_body_tracking_calibration_override_meta); 571 + return XRT_ERROR_NOT_IMPLEMENTED; 572 + } 573 + 574 + xrt_result_t 532 575 u_device_ni_set_output(struct xrt_device *xdev, enum xrt_output_name name, const struct xrt_output_value *value) 533 576 { 534 577 E(set_output); ··· 536 579 } 537 580 538 581 xrt_result_t 582 + u_device_ni_get_output_limits(struct xrt_device *xdev, struct xrt_output_limits *limits) 583 + { 584 + E(get_output_limits); 585 + return XRT_ERROR_NOT_IMPLEMENTED; 586 + } 587 + 588 + xrt_result_t 589 + u_device_ni_get_presence(struct xrt_device *xdev, bool *presence) 590 + { 591 + E(get_presence); 592 + return XRT_ERROR_NOT_IMPLEMENTED; 593 + } 594 + 595 + xrt_result_t 596 + u_device_ni_begin_plane_detection_ext(struct xrt_device *xdev, 597 + const struct xrt_plane_detector_begin_info_ext *begin_info, 598 + uint64_t plane_detection_id, 599 + uint64_t *out_plane_detection_id) 600 + { 601 + E(begin_plane_detection_ext); 602 + return XRT_ERROR_NOT_IMPLEMENTED; 603 + } 604 + 605 + xrt_result_t 606 + u_device_ni_destroy_plane_detection_ext(struct xrt_device *xdev, uint64_t plane_detection_id) 607 + { 608 + E(destroy_plane_detection_ext); 609 + return XRT_ERROR_NOT_IMPLEMENTED; 610 + } 611 + 612 + xrt_result_t 613 + u_device_ni_get_plane_detection_state_ext(struct xrt_device *xdev, 614 + uint64_t plane_detection_id, 615 + enum xrt_plane_detector_state_ext *out_state) 616 + { 617 + E(get_plane_detection_state_ext); 618 + return XRT_ERROR_NOT_IMPLEMENTED; 619 + } 620 + 621 + xrt_result_t 622 + u_device_ni_get_plane_detections_ext(struct xrt_device *xdev, 623 + uint64_t plane_detection_id, 624 + struct xrt_plane_detections_ext *out_detections) 625 + { 626 + E(get_plane_detections_ext); 627 + return XRT_ERROR_NOT_IMPLEMENTED; 628 + } 629 + 630 + xrt_result_t 539 631 u_device_ni_get_view_poses(struct xrt_device *xdev, 540 632 const struct xrt_vec3 *default_eye_relation, 541 633 int64_t at_timestamp_ns, ··· 567 659 return XRT_ERROR_NOT_IMPLEMENTED; 568 660 } 569 661 662 + xrt_result_t 663 + u_device_ni_ref_space_usage(struct xrt_device *xdev, 664 + enum xrt_reference_space_type type, 665 + enum xrt_input_name name, 666 + bool used) 667 + { 668 + E(ref_space_usage); 669 + return XRT_ERROR_NOT_IMPLEMENTED; 670 + } 671 + 570 672 bool 571 673 u_device_ni_is_form_factor_available(struct xrt_device *xdev, enum xrt_form_factor form_factor) 572 674 { ··· 580 682 E(get_battery_status); 581 683 return XRT_ERROR_NOT_IMPLEMENTED; 582 684 } 685 + 686 + xrt_result_t 687 + u_device_ni_get_brightness(struct xrt_device *xdev, float *out_brightness) 688 + { 689 + E(get_brightness); 690 + return XRT_ERROR_NOT_IMPLEMENTED; 691 + } 692 + 693 + xrt_result_t 694 + u_device_ni_set_brightness(struct xrt_device *xdev, float brightness, bool relative) 695 + { 696 + E(set_brightness); 697 + return XRT_ERROR_NOT_IMPLEMENTED; 698 + } 699 + 700 + xrt_result_t 701 + u_device_ni_begin_feature(struct xrt_device *xdev, enum xrt_device_feature_type type) 702 + { 703 + E(begin_feature); 704 + return XRT_ERROR_NOT_IMPLEMENTED; 705 + } 706 + 707 + xrt_result_t 708 + u_device_ni_end_feature(struct xrt_device *xdev, enum xrt_device_feature_type type) 709 + { 710 + E(end_feature); 711 + return XRT_ERROR_NOT_IMPLEMENTED; 712 + }
+146
src/xrt/auxiliary/util/u_device.h
··· 223 223 int64_t *out_timestamp_ns); 224 224 225 225 /*! 226 + * Not implemented function for @ref xrt_device::get_face_tracking. 227 + * 228 + * @ingroup aux_util 229 + */ 230 + xrt_result_t 231 + u_device_ni_get_face_tracking(struct xrt_device *xdev, 232 + enum xrt_input_name facial_expression_type, 233 + int64_t at_timestamp_ns, 234 + struct xrt_facial_expression_set *out_value); 235 + 236 + /*! 237 + * Not implemented function for @ref xrt_device::get_body_skeleton. 238 + * 239 + * @ingroup aux_util 240 + */ 241 + xrt_result_t 242 + u_device_ni_get_body_skeleton(struct xrt_device *xdev, 243 + enum xrt_input_name body_tracking_type, 244 + struct xrt_body_skeleton *out_value); 245 + 246 + /*! 247 + * Not implemented function for @ref xrt_device::get_body_joints. 248 + * 249 + * @ingroup aux_util 250 + */ 251 + xrt_result_t 252 + u_device_ni_get_body_joints(struct xrt_device *xdev, 253 + enum xrt_input_name body_tracking_type, 254 + int64_t desired_timestamp_ns, 255 + struct xrt_body_joint_set *out_value); 256 + 257 + /*! 258 + * Not implemented function for @ref xrt_device::reset_body_tracking_calibration_meta. 259 + * 260 + * @ingroup aux_util 261 + */ 262 + xrt_result_t 263 + u_device_ni_reset_body_tracking_calibration_meta(struct xrt_device *xdev); 264 + 265 + /*! 266 + * Not implemented function for @ref xrt_device::set_body_tracking_calibration_override_meta. 267 + * 268 + * @ingroup aux_util 269 + */ 270 + xrt_result_t 271 + u_device_ni_set_body_tracking_calibration_override_meta(struct xrt_device *xdev, float new_body_height); 272 + 273 + /*! 226 274 * Not implemented function for @ref xrt_device::set_output. 227 275 * 228 276 * @ingroup aux_util ··· 231 279 u_device_ni_set_output(struct xrt_device *xdev, enum xrt_output_name name, const struct xrt_output_value *value); 232 280 233 281 /*! 282 + * Not implemented function for @ref xrt_device::get_output_limits. 283 + * 284 + * @ingroup aux_util 285 + */ 286 + xrt_result_t 287 + u_device_ni_get_output_limits(struct xrt_device *xdev, struct xrt_output_limits *limits); 288 + 289 + /*! 290 + * Not implemented function for @ref xrt_device::get_presence. 291 + * 292 + * @ingroup aux_util 293 + */ 294 + xrt_result_t 295 + u_device_ni_get_presence(struct xrt_device *xdev, bool *presence); 296 + 297 + /*! 298 + * Not implemented function for @ref xrt_device::begin_plane_detection_ext. 299 + * 300 + * @ingroup aux_util 301 + */ 302 + xrt_result_t 303 + u_device_ni_begin_plane_detection_ext(struct xrt_device *xdev, 304 + const struct xrt_plane_detector_begin_info_ext *begin_info, 305 + uint64_t plane_detection_id, 306 + uint64_t *out_plane_detection_id); 307 + 308 + /*! 309 + * Not implemented function for @ref xrt_device::destroy_plane_detection_ext. 310 + * 311 + * @ingroup aux_util 312 + */ 313 + xrt_result_t 314 + u_device_ni_destroy_plane_detection_ext(struct xrt_device *xdev, uint64_t plane_detection_id); 315 + 316 + /*! 317 + * Not implemented function for @ref xrt_device::get_plane_detection_state_ext. 318 + * 319 + * @ingroup aux_util 320 + */ 321 + xrt_result_t 322 + u_device_ni_get_plane_detection_state_ext(struct xrt_device *xdev, 323 + uint64_t plane_detection_id, 324 + enum xrt_plane_detector_state_ext *out_state); 325 + 326 + /*! 327 + * Not implemented function for @ref xrt_device::get_plane_detections_ext. 328 + * 329 + * @ingroup aux_util 330 + */ 331 + xrt_result_t 332 + u_device_ni_get_plane_detections_ext(struct xrt_device *xdev, 333 + uint64_t plane_detection_id, 334 + struct xrt_plane_detections_ext *out_detections); 335 + 336 + /*! 234 337 * Not implemented function for @ref xrt_device::get_view_poses. 235 338 * 236 339 * @ingroup aux_util ··· 266 369 struct xrt_visibility_mask **out_mask); 267 370 268 371 /*! 372 + * Not implemented function for @ref xrt_device::ref_space_usage. 373 + * 374 + * @ingroup aux_util 375 + */ 376 + xrt_result_t 377 + u_device_ni_ref_space_usage(struct xrt_device *xdev, 378 + enum xrt_reference_space_type type, 379 + enum xrt_input_name name, 380 + bool used); 381 + 382 + /*! 269 383 * Not implemented function for @ref xrt_device::is_form_factor_available. 270 384 * 271 385 * @ingroup aux_util ··· 280 394 */ 281 395 xrt_result_t 282 396 u_device_ni_get_battery_status(struct xrt_device *xdev, bool *out_present, bool *out_charging, float *out_charge); 397 + 398 + /*! 399 + * Not implemented function for @ref xrt_device::get_brightness. 400 + * 401 + * @ingroup aux_util 402 + */ 403 + xrt_result_t 404 + u_device_ni_get_brightness(struct xrt_device *xdev, float *out_brightness); 405 + 406 + /*! 407 + * Not implemented function for @ref xrt_device::set_brightness. 408 + * 409 + * @ingroup aux_util 410 + */ 411 + xrt_result_t 412 + u_device_ni_set_brightness(struct xrt_device *xdev, float brightness, bool relative); 413 + 414 + /*! 415 + * Not implemented function for @ref xrt_device::begin_feature. 416 + * 417 + * @ingroup aux_util 418 + */ 419 + xrt_result_t 420 + u_device_ni_begin_feature(struct xrt_device *xdev, enum xrt_device_feature_type type); 421 + 422 + /*! 423 + * Not implemented function for @ref xrt_device::end_feature. 424 + * 425 + * @ingroup aux_util 426 + */ 427 + xrt_result_t 428 + u_device_ni_end_feature(struct xrt_device *xdev, enum xrt_device_feature_type type); 283 429 284 430 285 431 #ifdef __cplusplus