2018-01-18 22:29:49 +03:00
|
|
|
/* This file is auto-generated, do not edit. */
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "vrclient_private.h"
|
|
|
|
|
2018-06-04 18:45:00 +03:00
|
|
|
#include "flatapi.h"
|
|
|
|
|
2018-01-18 22:29:49 +03:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(vrclient);
|
|
|
|
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRDriverManager_IVRDriverManager_001_GetDriverCount, 4)
|
2023-09-23 21:52:28 +03:00
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRDriverManager_IVRDriverManager_001_GetDriverName, 16)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRDriverManager_IVRDriverManager_001_GetDriverHandle, 8)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRDriverManager_IVRDriverManager_001_IsEnabled, 8)
|
|
|
|
|
2023-09-24 15:50:45 +03:00
|
|
|
uint32_t __thiscall winIVRDriverManager_IVRDriverManager_001_GetDriverCount(struct w_steam_iface *_this)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRDriverManager_IVRDriverManager_001_GetDriverCount_params params =
|
2023-09-27 12:05:52 +03:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
};
|
2018-01-18 22:29:49 +03:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 14:08:49 +03:00
|
|
|
VRCLIENT_CALL( IVRDriverManager_IVRDriverManager_001_GetDriverCount, ¶ms );
|
2023-09-27 12:05:52 +03:00
|
|
|
return params._ret;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-19 20:59:23 +03:00
|
|
|
uint32_t __thiscall winIVRDriverManager_IVRDriverManager_001_GetDriverName(struct w_steam_iface *_this, uint32_t nDriver, char *pchValue, uint32_t unBufferSize)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRDriverManager_IVRDriverManager_001_GetDriverName_params params =
|
2023-09-27 12:05:52 +03:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.nDriver = nDriver,
|
|
|
|
.pchValue = pchValue,
|
|
|
|
.unBufferSize = unBufferSize,
|
|
|
|
};
|
2018-01-18 22:29:49 +03:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 14:08:49 +03:00
|
|
|
VRCLIENT_CALL( IVRDriverManager_IVRDriverManager_001_GetDriverName, ¶ms );
|
2023-09-27 12:05:52 +03:00
|
|
|
return params._ret;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-19 20:59:23 +03:00
|
|
|
uint64_t __thiscall winIVRDriverManager_IVRDriverManager_001_GetDriverHandle(struct w_steam_iface *_this, const char *pchDriverName)
|
2018-06-05 17:37:23 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRDriverManager_IVRDriverManager_001_GetDriverHandle_params params =
|
2023-09-27 12:05:52 +03:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.pchDriverName = pchDriverName,
|
|
|
|
};
|
2018-06-05 17:37:23 +03:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 14:08:49 +03:00
|
|
|
VRCLIENT_CALL( IVRDriverManager_IVRDriverManager_001_GetDriverHandle, ¶ms );
|
2023-09-27 12:05:52 +03:00
|
|
|
return params._ret;
|
2018-06-05 17:37:23 +03:00
|
|
|
}
|
|
|
|
|
2023-09-19 20:59:23 +03:00
|
|
|
bool __thiscall winIVRDriverManager_IVRDriverManager_001_IsEnabled(struct w_steam_iface *_this, uint32_t nDriver)
|
2019-07-13 13:17:57 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRDriverManager_IVRDriverManager_001_IsEnabled_params params =
|
2023-09-27 12:05:52 +03:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.nDriver = nDriver,
|
|
|
|
};
|
2019-07-13 13:17:57 +03:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 14:08:49 +03:00
|
|
|
VRCLIENT_CALL( IVRDriverManager_IVRDriverManager_001_IsEnabled, ¶ms );
|
2023-09-27 12:05:52 +03:00
|
|
|
return params._ret;
|
2019-07-13 13:17:57 +03:00
|
|
|
}
|
|
|
|
|
2018-01-18 22:29:49 +03:00
|
|
|
extern vtable_ptr winIVRDriverManager_IVRDriverManager_001_vtable;
|
|
|
|
|
2023-10-02 21:00:22 +03:00
|
|
|
DEFINE_RTTI_DATA0(winIVRDriverManager_IVRDriverManager_001, 0, ".?AVIVRDriverManager@@")
|
|
|
|
|
|
|
|
__ASM_BLOCK_BEGIN(winIVRDriverManager_IVRDriverManager_001_vtables)
|
2018-01-18 22:29:49 +03:00
|
|
|
__ASM_VTABLE(winIVRDriverManager_IVRDriverManager_001,
|
|
|
|
VTABLE_ADD_FUNC(winIVRDriverManager_IVRDriverManager_001_GetDriverCount)
|
|
|
|
VTABLE_ADD_FUNC(winIVRDriverManager_IVRDriverManager_001_GetDriverName)
|
2018-06-05 17:37:23 +03:00
|
|
|
VTABLE_ADD_FUNC(winIVRDriverManager_IVRDriverManager_001_GetDriverHandle)
|
2019-07-13 13:17:57 +03:00
|
|
|
VTABLE_ADD_FUNC(winIVRDriverManager_IVRDriverManager_001_IsEnabled)
|
2018-01-18 22:29:49 +03:00
|
|
|
);
|
2023-10-02 21:00:22 +03:00
|
|
|
__ASM_BLOCK_END
|
2018-01-18 22:29:49 +03:00
|
|
|
|
2023-09-24 15:50:45 +03:00
|
|
|
struct w_steam_iface *create_winIVRDriverManager_IVRDriverManager_001(void *u_iface)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-24 15:50:45 +03:00
|
|
|
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
|
2018-01-18 22:29:49 +03:00
|
|
|
TRACE("-> %p\n", r);
|
|
|
|
r->vtable = &winIVRDriverManager_IVRDriverManager_001_vtable;
|
2023-09-24 15:50:45 +03:00
|
|
|
r->u_iface = u_iface;
|
2018-01-18 22:29:49 +03:00
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
2023-09-24 15:50:45 +03:00
|
|
|
void destroy_winIVRDriverManager_IVRDriverManager_001(struct w_steam_iface *object)
|
2018-04-19 16:50:32 +03:00
|
|
|
{
|
|
|
|
TRACE("%p\n", object);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object);
|
|
|
|
}
|
|
|
|
|
2023-09-24 15:50:45 +03:00
|
|
|
struct w_steam_iface *create_winIVRDriverManager_IVRDriverManager_001_FnTable(void *u_iface)
|
2018-06-04 18:45:00 +03:00
|
|
|
{
|
2023-09-24 15:50:45 +03:00
|
|
|
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
|
2019-07-13 13:17:57 +03:00
|
|
|
struct thunk *thunks = alloc_thunks(4);
|
|
|
|
struct thunk **vtable = HeapAlloc(GetProcessHeap(), 0, 4 * sizeof(*vtable));
|
2018-06-04 18:45:00 +03:00
|
|
|
int i;
|
|
|
|
|
|
|
|
TRACE("-> %p, vtable %p, thunks %p\n", r, vtable, thunks);
|
2018-07-30 18:40:06 +03:00
|
|
|
init_thunk(&thunks[0], r, winIVRDriverManager_IVRDriverManager_001_GetDriverCount, 0, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[1], r, winIVRDriverManager_IVRDriverManager_001_GetDriverName, 3, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[2], r, winIVRDriverManager_IVRDriverManager_001_GetDriverHandle, 1, FALSE, FALSE);
|
2019-07-13 13:17:57 +03:00
|
|
|
init_thunk(&thunks[3], r, winIVRDriverManager_IVRDriverManager_001_IsEnabled, 1, FALSE, FALSE);
|
|
|
|
for (i = 0; i < 4; i++)
|
2018-06-04 18:45:00 +03:00
|
|
|
vtable[i] = &thunks[i];
|
2023-09-24 15:50:45 +03:00
|
|
|
r->u_iface = u_iface;
|
2018-06-04 18:45:00 +03:00
|
|
|
r->vtable = (void *)vtable;
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
2023-09-24 15:50:45 +03:00
|
|
|
void destroy_winIVRDriverManager_IVRDriverManager_001_FnTable(struct w_steam_iface *object)
|
2018-06-04 18:45:00 +03:00
|
|
|
{
|
2023-09-24 15:50:45 +03:00
|
|
|
TRACE("%p\n", object);
|
|
|
|
VirtualFree(object->vtable[0], 0, MEM_RELEASE);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object->vtable);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object);
|
2018-06-04 18:45:00 +03:00
|
|
|
}
|
|
|
|
|
2023-10-02 21:00:22 +03:00
|
|
|
void init_winIVRDriverManager_rtti( char *base )
|
|
|
|
{
|
|
|
|
#ifdef __x86_64__
|
|
|
|
init_winIVRDriverManager_IVRDriverManager_001_rtti( base );
|
|
|
|
#endif /* __x86_64__ */
|
|
|
|
}
|