Monado OpenXR Runtime
Public Member Functions | Data Fields
xrt_system_devices Struct Reference

A collection of xrt_device, and the roles they have been assigned. More...

#include <xrt/xrt_system.h>

Collaboration diagram for xrt_system_devices:
Collaboration graph
[legend]

Public Member Functions

static void xrt_system_devices_destroy (struct xrt_system_devices **xsysd_ptr)
 Destroy an xrt_system_devices and owned devices - helper function. More...
 

Data Fields

struct xrt_devicexdevs [(32)]
 
size_t xdev_count
 
struct {
   struct xrt_device *   head
 
   struct xrt_device *   left
 
   struct xrt_device *   right
 
   struct xrt_device *   gamepad
 
   struct {
      struct xrt_device *   left
 
      struct xrt_device *   right
 
   }   hand_tracking
 
roles
 
void(* destroy )(struct xrt_system_devices *xsysd)
 Destroy all the devices that are owned by this system devices. More...
 

Detailed Description

A collection of xrt_device, and the roles they have been assigned.

See also
xrt_device, xrt_instance.

Member Function Documentation

◆ xrt_system_devices_destroy()

static void xrt_system_devices_destroy ( struct xrt_system_devices **  xsysd_ptr)
inline

Destroy an xrt_system_devices and owned devices - helper function.

Parameters
[in,out]xsysd_ptrA pointer to the xrt_system_devices struct pointer.

Will destroy the system devices if *xsysd_ptr is not NULL. Will then set *xsysd_ptr to NULL.

References destroy.

Referenced by gui_prober_teardown().

Field Documentation

◆ destroy

void(* xrt_system_devices::destroy) (struct xrt_system_devices *xsysd)

Destroy all the devices that are owned by this system devices.

Code consuming this interface should use xrt_system_devices_destroy.

Referenced by r_create_devices(), u_system_devices_allocate(), and xrt_system_devices_destroy().


The documentation for this struct was generated from the following file: