Monado OpenXR Runtime
xrt_auto_prober Interface Reference

An interface to be exposed by a device driver that should probe for the existence of its own device on the system, rather than using shared probers with vendor/product IDs, etc. More...

#include <xrt/xrt_prober.h>

Inheritance diagram for xrt_auto_prober:
Collaboration diagram for xrt_auto_prober:

Data Fields

const char * name
 
int(* lelo_dallas_autoprobe )(struct xrt_auto_prober *xap, cJSON *attached_data, bool no_hmds, struct xrt_prober *xp, struct xrt_device **out_xdevs)
 Do the internal probing that the driver needs to do to find devices. More...
 
void(* destroy )(struct xrt_auto_prober *xap)
 Destroy this auto-prober. More...
 

Related Functions

(Note that these are not member functions.)

struct xrt_auto_proberpsvr_create_auto_prober (void)
 Create a probe for PSVR devices. More...
 

Detailed Description

An interface to be exposed by a device driver that should probe for the existence of its own device on the system, rather than using shared probers with vendor/product IDs, etc.

Field Documentation

◆ destroy

◆ lelo_dallas_autoprobe

int(* xrt_auto_prober::lelo_dallas_autoprobe) (struct xrt_auto_prober *xap, cJSON *attached_data, bool no_hmds, struct xrt_prober *xp, struct xrt_device **out_xdevs)

Do the internal probing that the driver needs to do to find devices.

Parameters
xapSelf pointer
attached_dataJSON "attached data" for this device from config, if any.
[in]no_hmdsIf true, do not probe for HMDs, only other devices.
[in]xpProber: provided to use the tracking factory, among other reasons.
[out]out_xdevsArray of XRT_MAX_DEVICES_PER_PROBE NULL xrt_device pointers. First elements will be populated with new devices.
Returns
The number of devices written into out_xdevs, 0 if none.
Note
Leeloo Dallas is a reference to The Fifth Element.

Referenced by android_create_auto_prober(), arduino_create_auto_prober(), daydream_create_auto_prober(), oh_create_auto_prober(), psvr_create_auto_prober(), rs_create_auto_prober(), sample_create_auto_prober(), and simulated_create_auto_prober().


The documentation for this interface was generated from the following files: