Proton/vrclient_x64/vrclient_x64/cppIVRDriverManager_IVRDriverManager_001.cpp
Paul Gofman e0f82e30cb vrclient: Support v1.16.8.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2021-03-31 14:08:10 -05:00

35 lines
1.1 KiB
C++

#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.16.8/ivrclientcore.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
}
#include "cppIVRDriverManager_IVRDriverManager_001.h"
#ifdef __cplusplus
extern "C" {
#endif
uint32_t cppIVRDriverManager_IVRDriverManager_001_GetDriverCount(void *linux_side)
{
return ((IVRDriverManager*)linux_side)->GetDriverCount();
}
uint32_t cppIVRDriverManager_IVRDriverManager_001_GetDriverName(void *linux_side, DriverId_t nDriver, char * pchValue, uint32_t unBufferSize)
{
return ((IVRDriverManager*)linux_side)->GetDriverName((vr::DriverId_t)nDriver, (char *)pchValue, (uint32_t)unBufferSize);
}
vr::DriverHandle_t cppIVRDriverManager_IVRDriverManager_001_GetDriverHandle(void *linux_side, const char * pchDriverName)
{
return ((IVRDriverManager*)linux_side)->GetDriverHandle((const char *)pchDriverName);
}
bool cppIVRDriverManager_IVRDriverManager_001_IsEnabled(void *linux_side, DriverId_t nDriver)
{
return ((IVRDriverManager*)linux_side)->IsEnabled((vr::DriverId_t)nDriver);
}
#ifdef __cplusplus
}
#endif