The open source OpenXR runtime
at prediction-2 43 lines 857 B view raw
1// Copyright 2020-2021, Collabora, Ltd. 2// SPDX-License-Identifier: BSL-1.0 3/*! 4 * @file 5 * @brief Interface to rokid driver. 6 * @author Jakob Bornecrantz <jakob@collabora.com> 7 * @author Rylie Pavlik <rylie.pavlik@collabora.com> 8 * @ingroup drv_rokid 9 */ 10 11#pragma once 12 13#include <stddef.h> 14#ifdef __cplusplus 15extern "C" { 16#endif 17 18// NOTE: this is 1234:5679 19#define ROKID_VID 0x04d2 20#define ROKID_PID 0x162f 21 22typedef struct cJSON cJSON; 23struct xrt_prober; 24struct xrt_prober_device; 25struct xrt_device; 26 27/*! 28 * Probing function for Rokid devices. 29 * 30 * @ingroup drv_hdk 31 * @see xrt_prober_found_func_t 32 */ 33int 34rokid_found(struct xrt_prober *xp, 35 struct xrt_prober_device **devices, 36 size_t device_count, 37 size_t index, 38 cJSON *attached_data, 39 struct xrt_device **out_xdev); 40 41#ifdef __cplusplus 42} 43#endif