2018-06-05 17:42:45 +03:00
|
|
|
#include "vrclient_private.h"
|
|
|
|
#include "vrclient_defs.h"
|
2018-12-14 22:20:13 +03:00
|
|
|
#include "openvr_v1.1.3b/ivrclientcore.h"
|
2018-06-05 17:42:45 +03:00
|
|
|
using namespace vr;
|
|
|
|
extern "C" {
|
|
|
|
#include "struct_converters.h"
|
|
|
|
}
|
|
|
|
#include "cppIVRIOBuffer_IVRIOBuffer_001.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2023-09-23 23:07:08 +03:00
|
|
|
EIOBufferError cppIVRIOBuffer_IVRIOBuffer_001_Open(void *linux_side, const char *pchPath, EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, IOBufferHandle_t *pulBuffer)
|
2018-06-05 17:42:45 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EIOBufferError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVRIOBuffer*)linux_side)->Open((const char *)pchPath, (vr::EIOBufferMode)mode, (uint32_t)unElementSize, (uint32_t)unElements, (vr::IOBufferHandle_t *)pulBuffer);
|
|
|
|
return _ret;
|
2018-06-05 17:42:45 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EIOBufferError cppIVRIOBuffer_IVRIOBuffer_001_Close(void *linux_side, IOBufferHandle_t ulBuffer)
|
2018-06-05 17:42:45 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EIOBufferError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVRIOBuffer*)linux_side)->Close((vr::IOBufferHandle_t)ulBuffer);
|
|
|
|
return _ret;
|
2018-06-05 17:42:45 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EIOBufferError cppIVRIOBuffer_IVRIOBuffer_001_Read(void *linux_side, IOBufferHandle_t ulBuffer, void *pDst, uint32_t unBytes, uint32_t *punRead)
|
2018-06-05 17:42:45 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EIOBufferError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVRIOBuffer*)linux_side)->Read((vr::IOBufferHandle_t)ulBuffer, (void *)pDst, (uint32_t)unBytes, (uint32_t *)punRead);
|
|
|
|
return _ret;
|
2018-06-05 17:42:45 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EIOBufferError cppIVRIOBuffer_IVRIOBuffer_001_Write(void *linux_side, IOBufferHandle_t ulBuffer, void *pSrc, uint32_t unBytes)
|
2018-06-05 17:42:45 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EIOBufferError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVRIOBuffer*)linux_side)->Write((vr::IOBufferHandle_t)ulBuffer, (void *)pSrc, (uint32_t)unBytes);
|
|
|
|
return _ret;
|
2018-06-05 17:42:45 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
PropertyContainerHandle_t cppIVRIOBuffer_IVRIOBuffer_001_PropertyContainer(void *linux_side, IOBufferHandle_t ulBuffer)
|
2018-06-05 17:42:45 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
PropertyContainerHandle_t _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVRIOBuffer*)linux_side)->PropertyContainer((vr::IOBufferHandle_t)ulBuffer);
|
|
|
|
return _ret;
|
2018-06-05 17:42:45 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|