d/vive: Prepare for lighthouse builder

This commit is contained in:
Moses Turner 2022-05-25 22:01:02 +01:00
parent 766f1b94e9
commit 29cd525a3b
2 changed files with 5 additions and 1 deletions
src/xrt/drivers/vive

View file

@ -220,6 +220,7 @@ init_valve_index(struct xrt_prober *xp,
struct xrt_prober_device **devices,
size_t device_count,
enum u_logging_level log_level,
struct vive_config **out_vive_config,
struct xrt_device **out_xdevs)
{
XRT_TRACE_MARKER();
@ -276,6 +277,7 @@ vive_found(struct xrt_prober *xp,
size_t device_count,
size_t index,
cJSON *attached_data,
struct vive_config **out_vive_config,
struct xrt_device **out_xdev)
{
XRT_TRACE_MARKER();
@ -294,7 +296,8 @@ vive_found(struct xrt_prober *xp,
switch (dev->product_id) {
case VIVE_PID: return init_vive1(xp, dev, devices, device_count, log_level, out_xdev);
case VIVE_PRO_MAINBOARD_PID: return init_vive_pro(xp, dev, devices, device_count, log_level, out_xdev);
case VIVE_PRO_LHR_PID: return init_valve_index(xp, dev, devices, device_count, log_level, out_xdev);
case VIVE_PRO_LHR_PID:
return init_valve_index(xp, dev, devices, device_count, log_level, out_vive_config, out_xdev);
default: U_LOG_E("No product ids matched %.4x", dev->product_id); return -1;
}

View file

@ -51,6 +51,7 @@ vive_found(struct xrt_prober *xp,
size_t device_count,
size_t index,
cJSON *attached_data,
struct vive_config **out_vive_config,
struct xrt_device **out_xdev);