mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
targets/common: Add comment to target_entry_list
This commit is contained in:
parent
3cc7ee872a
commit
cfb443843f
|
@ -25,6 +25,21 @@
|
|||
#endif
|
||||
|
||||
|
||||
/*!
|
||||
* 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:
|
||||
*
|
||||
* - `struct xrt_prober *xp`
|
||||
* - `struct xrt_prober_device **devices`
|
||||
* - `size_t index`
|
||||
* - `struct xrt_device **out_xdev`
|
||||
*
|
||||
* 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, or 1 if it
|
||||
* creates one: it should assign *out_xdev to the created device.
|
||||
*/
|
||||
struct xrt_prober_entry target_entry_list[] = {
|
||||
#ifdef XRT_BUILD_PSVR
|
||||
{PSMV_VID, PSMV_PID, psmv_found, "PS Move"},
|
||||
|
|
Loading…
Reference in a new issue