Proton/vrclient_x64/vrclient_x64/winIVRDriverManager.c
2023-12-19 19:42:15 +01:00

132 lines
4.5 KiB
C

/* This file is auto-generated, do not edit. */
#include <stdarg.h>
#include <stdint.h>
#include "windef.h"
#include "winbase.h"
#include "wine/debug.h"
#include "vrclient_defs.h"
#include "vrclient_private.h"
#include "struct_converters.h"
#include "flatapi.h"
WINE_DEFAULT_DEBUG_CHANNEL(vrclient);
#include "cppIVRDriverManager_IVRDriverManager_001.h"
DEFINE_THISCALL_WRAPPER(winIVRDriverManager_IVRDriverManager_001_GetDriverCount, 4)
DEFINE_THISCALL_WRAPPER(winIVRDriverManager_IVRDriverManager_001_GetDriverName, 16)
DEFINE_THISCALL_WRAPPER(winIVRDriverManager_IVRDriverManager_001_GetDriverHandle, 8)
DEFINE_THISCALL_WRAPPER(winIVRDriverManager_IVRDriverManager_001_IsEnabled, 8)
uint32_t __thiscall winIVRDriverManager_IVRDriverManager_001_GetDriverCount(struct w_steam_iface *_this)
{
struct cppIVRDriverManager_IVRDriverManager_001_GetDriverCount_params params =
{
.linux_side = _this->u_iface,
};
TRACE("%p\n", _this);
cppIVRDriverManager_IVRDriverManager_001_GetDriverCount( &params );
return params._ret;
}
uint32_t __thiscall winIVRDriverManager_IVRDriverManager_001_GetDriverName(struct w_steam_iface *_this, uint32_t nDriver, char *pchValue, uint32_t unBufferSize)
{
struct cppIVRDriverManager_IVRDriverManager_001_GetDriverName_params params =
{
.linux_side = _this->u_iface,
.nDriver = nDriver,
.pchValue = pchValue,
.unBufferSize = unBufferSize,
};
TRACE("%p\n", _this);
cppIVRDriverManager_IVRDriverManager_001_GetDriverName( &params );
return params._ret;
}
uint64_t __thiscall winIVRDriverManager_IVRDriverManager_001_GetDriverHandle(struct w_steam_iface *_this, const char *pchDriverName)
{
struct cppIVRDriverManager_IVRDriverManager_001_GetDriverHandle_params params =
{
.linux_side = _this->u_iface,
.pchDriverName = pchDriverName,
};
TRACE("%p\n", _this);
cppIVRDriverManager_IVRDriverManager_001_GetDriverHandle( &params );
return params._ret;
}
bool __thiscall winIVRDriverManager_IVRDriverManager_001_IsEnabled(struct w_steam_iface *_this, uint32_t nDriver)
{
struct cppIVRDriverManager_IVRDriverManager_001_IsEnabled_params params =
{
.linux_side = _this->u_iface,
.nDriver = nDriver,
};
TRACE("%p\n", _this);
cppIVRDriverManager_IVRDriverManager_001_IsEnabled( &params );
return params._ret;
}
extern vtable_ptr winIVRDriverManager_IVRDriverManager_001_vtable;
#ifndef __GNUC__
void __asm_dummy_vtables(void) {
#endif
__ASM_VTABLE(winIVRDriverManager_IVRDriverManager_001,
VTABLE_ADD_FUNC(winIVRDriverManager_IVRDriverManager_001_GetDriverCount)
VTABLE_ADD_FUNC(winIVRDriverManager_IVRDriverManager_001_GetDriverName)
VTABLE_ADD_FUNC(winIVRDriverManager_IVRDriverManager_001_GetDriverHandle)
VTABLE_ADD_FUNC(winIVRDriverManager_IVRDriverManager_001_IsEnabled)
);
#ifndef __GNUC__
}
#endif
struct w_steam_iface *create_winIVRDriverManager_IVRDriverManager_001(void *u_iface)
{
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
TRACE("-> %p\n", r);
r->vtable = &winIVRDriverManager_IVRDriverManager_001_vtable;
r->u_iface = u_iface;
return r;
}
void destroy_winIVRDriverManager_IVRDriverManager_001(struct w_steam_iface *object)
{
TRACE("%p\n", object);
HeapFree(GetProcessHeap(), 0, object);
}
struct w_steam_iface *create_winIVRDriverManager_IVRDriverManager_001_FnTable(void *u_iface)
{
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
struct thunk *thunks = alloc_thunks(4);
struct thunk **vtable = HeapAlloc(GetProcessHeap(), 0, 4 * sizeof(*vtable));
int i;
TRACE("-> %p, vtable %p, thunks %p\n", r, vtable, thunks);
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);
init_thunk(&thunks[3], r, winIVRDriverManager_IVRDriverManager_001_IsEnabled, 1, FALSE, FALSE);
for (i = 0; i < 4; i++)
vtable[i] = &thunks[i];
r->u_iface = u_iface;
r->vtable = (void *)vtable;
return r;
}
void destroy_winIVRDriverManager_IVRDriverManager_001_FnTable(struct w_steam_iface *object)
{
TRACE("%p\n", object);
VirtualFree(object->vtable[0], 0, MEM_RELEASE);
HeapFree(GetProcessHeap(), 0, object->vtable);
HeapFree(GetProcessHeap(), 0, object);
}