Monado OpenXR Runtime
Variables
target_lists.c File Reference

Common things to pull into a target. More...

#include "xrt/xrt_config_drivers.h"
#include "target_lists.h"
Include dependency graph for target_lists.c:

Variables

struct xrt_prober_entry target_entry_list []
 Each entry should be a vendor ID (VID), product ID (PID), a "found" function, and a string literal name. More...
 
struct xrt_prober_entrytarget_entry_lists []
 
xrt_auto_prober_creator target_auto_list []
 
struct xrt_prober_entry_lists target_lists
 

Detailed Description

Common things to pull into a target.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Variable Documentation

◆ target_auto_list

xrt_auto_prober_creator target_auto_list[]
Initial value:
= {
NULL,
}

◆ target_entry_list

struct xrt_prober_entry target_entry_list[]
Initial value:
= {
{0x0000, 0x0000, NULL, NULL},
}

Each entry should be a vendor ID (VID), product ID (PID), a "found" function, and a string literal name.

The "found" function must return int and take as parameters:

It is called when devices[index] match the VID and PID in the list. It should return 0 if it decides not to create any devices, negative on error, and the number of devices created if it creates one or more: it should assign sequential elements of out_xdevs to the created devices.

◆ target_entry_lists

struct xrt_prober_entry* target_entry_lists[]
Initial value:
= {
NULL,
}
struct xrt_prober_entry target_entry_list[]
Each entry should be a vendor ID (VID), product ID (PID), a "found" function, and a string literal na...
Definition: target_lists.c:66

◆ target_lists

struct xrt_prober_entry_lists target_lists
Initial value:
= {
target_entry_lists,
target_auto_list,
NULL,
}