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);
|
|
|
|
|
2023-09-21 00:58:12 +03:00
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRClientCore_IVRClientCore_002_Init, 8)
|
2023-09-23 21:52:28 +03:00
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRClientCore_IVRClientCore_002_Cleanup, 4)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRClientCore_IVRClientCore_002_IsInterfaceVersionValid, 8)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRClientCore_IVRClientCore_002_GetGenericInterface, 12)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRClientCore_IVRClientCore_002_BIsHmdPresent, 4)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRClientCore_IVRClientCore_002_GetEnglishStringForHmdError, 8)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRClientCore_IVRClientCore_002_GetIDForVRInitError, 8)
|
|
|
|
|
2023-09-19 20:59:23 +03:00
|
|
|
extern uint32_t __thiscall winIVRClientCore_IVRClientCore_002_Init(struct w_steam_iface *_this, uint32_t eApplicationType);
|
2018-01-18 22:29:49 +03:00
|
|
|
|
2023-09-27 10:09:37 +03:00
|
|
|
extern void __thiscall winIVRClientCore_IVRClientCore_002_Cleanup(struct w_steam_iface *_this);
|
2018-01-18 22:29:49 +03:00
|
|
|
|
2023-09-14 17:22:47 +03:00
|
|
|
uint32_t __thiscall winIVRClientCore_IVRClientCore_002_IsInterfaceVersionValid(struct w_steam_iface *_this, const char *pchInterfaceVersion)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRClientCore_IVRClientCore_002_IsInterfaceVersionValid_params params =
|
2023-09-27 12:05:52 +03:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.pchInterfaceVersion = pchInterfaceVersion,
|
|
|
|
};
|
2018-01-18 22:29:49 +03:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 14:08:49 +03:00
|
|
|
VRCLIENT_CALL( IVRClientCore_IVRClientCore_002_IsInterfaceVersionValid, ¶ms );
|
2023-09-27 12:05:52 +03:00
|
|
|
return params._ret;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-14 17:22:47 +03:00
|
|
|
extern void * __thiscall winIVRClientCore_IVRClientCore_002_GetGenericInterface(struct w_steam_iface *_this, const char *pchNameAndVersion, uint32_t *peError);
|
2018-01-18 22:29:49 +03:00
|
|
|
|
2023-10-04 23:02:15 +03:00
|
|
|
extern int8_t __thiscall winIVRClientCore_IVRClientCore_002_BIsHmdPresent(struct w_steam_iface *_this);
|
2018-01-18 22:29:49 +03:00
|
|
|
|
2023-09-19 20:59:23 +03:00
|
|
|
const char * __thiscall winIVRClientCore_IVRClientCore_002_GetEnglishStringForHmdError(struct w_steam_iface *_this, uint32_t eError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRClientCore_IVRClientCore_002_GetEnglishStringForHmdError_params params =
|
2023-09-27 12:05:52 +03:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.eError = eError,
|
|
|
|
};
|
2018-01-18 22:29:49 +03:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 14:08:49 +03:00
|
|
|
VRCLIENT_CALL( IVRClientCore_IVRClientCore_002_GetEnglishStringForHmdError, ¶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
|
|
|
const char * __thiscall winIVRClientCore_IVRClientCore_002_GetIDForVRInitError(struct w_steam_iface *_this, uint32_t eError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRClientCore_IVRClientCore_002_GetIDForVRInitError_params params =
|
2023-09-27 12:05:52 +03:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.eError = eError,
|
|
|
|
};
|
2018-01-18 22:29:49 +03:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 14:08:49 +03:00
|
|
|
VRCLIENT_CALL( IVRClientCore_IVRClientCore_002_GetIDForVRInitError, ¶ms );
|
2023-09-27 12:05:52 +03:00
|
|
|
return params._ret;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-21 00:58:12 +03:00
|
|
|
extern vtable_ptr winIVRClientCore_IVRClientCore_002_vtable;
|
2018-01-18 22:29:49 +03:00
|
|
|
|
2023-10-02 21:00:22 +03:00
|
|
|
DEFINE_RTTI_DATA0(winIVRClientCore_IVRClientCore_002, 0, ".?AVIVRClientCore@@")
|
|
|
|
|
|
|
|
__ASM_BLOCK_BEGIN(winIVRClientCore_IVRClientCore_002_vtables)
|
2023-09-21 00:58:12 +03:00
|
|
|
__ASM_VTABLE(winIVRClientCore_IVRClientCore_002,
|
|
|
|
VTABLE_ADD_FUNC(winIVRClientCore_IVRClientCore_002_Init)
|
|
|
|
VTABLE_ADD_FUNC(winIVRClientCore_IVRClientCore_002_Cleanup)
|
|
|
|
VTABLE_ADD_FUNC(winIVRClientCore_IVRClientCore_002_IsInterfaceVersionValid)
|
|
|
|
VTABLE_ADD_FUNC(winIVRClientCore_IVRClientCore_002_GetGenericInterface)
|
|
|
|
VTABLE_ADD_FUNC(winIVRClientCore_IVRClientCore_002_BIsHmdPresent)
|
|
|
|
VTABLE_ADD_FUNC(winIVRClientCore_IVRClientCore_002_GetEnglishStringForHmdError)
|
|
|
|
VTABLE_ADD_FUNC(winIVRClientCore_IVRClientCore_002_GetIDForVRInitError)
|
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_winIVRClientCore_IVRClientCore_002(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);
|
2023-09-21 00:58:12 +03:00
|
|
|
r->vtable = &winIVRClientCore_IVRClientCore_002_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_winIVRClientCore_IVRClientCore_002(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_winIVRClientCore_IVRClientCore_002_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));
|
2018-06-04 18:45:00 +03:00
|
|
|
struct thunk *thunks = alloc_thunks(7);
|
|
|
|
struct thunk **vtable = HeapAlloc(GetProcessHeap(), 0, 7 * sizeof(*vtable));
|
|
|
|
int i;
|
|
|
|
|
|
|
|
TRACE("-> %p, vtable %p, thunks %p\n", r, vtable, thunks);
|
2023-09-21 00:58:12 +03:00
|
|
|
init_thunk(&thunks[0], r, winIVRClientCore_IVRClientCore_002_Init, 1, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[1], r, winIVRClientCore_IVRClientCore_002_Cleanup, 0, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[2], r, winIVRClientCore_IVRClientCore_002_IsInterfaceVersionValid, 1, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[3], r, winIVRClientCore_IVRClientCore_002_GetGenericInterface, 2, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[4], r, winIVRClientCore_IVRClientCore_002_BIsHmdPresent, 0, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[5], r, winIVRClientCore_IVRClientCore_002_GetEnglishStringForHmdError, 1, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[6], r, winIVRClientCore_IVRClientCore_002_GetIDForVRInitError, 1, FALSE, FALSE);
|
2018-06-04 18:45:00 +03:00
|
|
|
for (i = 0; i < 7; i++)
|
|
|
|
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_winIVRClientCore_IVRClientCore_002_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-09-21 00:58:12 +03:00
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRClientCore_IVRClientCore_003_Init, 12)
|
2023-09-23 21:52:28 +03:00
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRClientCore_IVRClientCore_003_Cleanup, 4)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRClientCore_IVRClientCore_003_IsInterfaceVersionValid, 8)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRClientCore_IVRClientCore_003_GetGenericInterface, 12)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRClientCore_IVRClientCore_003_BIsHmdPresent, 4)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRClientCore_IVRClientCore_003_GetEnglishStringForHmdError, 8)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRClientCore_IVRClientCore_003_GetIDForVRInitError, 8)
|
|
|
|
|
2023-09-19 20:59:23 +03:00
|
|
|
extern uint32_t __thiscall winIVRClientCore_IVRClientCore_003_Init(struct w_steam_iface *_this, uint32_t eApplicationType, const char *pStartupInfo);
|
2018-01-18 22:29:49 +03:00
|
|
|
|
2023-09-27 10:09:37 +03:00
|
|
|
extern void __thiscall winIVRClientCore_IVRClientCore_003_Cleanup(struct w_steam_iface *_this);
|
2018-01-18 22:29:49 +03:00
|
|
|
|
2023-09-14 17:22:47 +03:00
|
|
|
uint32_t __thiscall winIVRClientCore_IVRClientCore_003_IsInterfaceVersionValid(struct w_steam_iface *_this, const char *pchInterfaceVersion)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRClientCore_IVRClientCore_003_IsInterfaceVersionValid_params params =
|
2023-09-27 12:05:52 +03:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.pchInterfaceVersion = pchInterfaceVersion,
|
|
|
|
};
|
2018-01-18 22:29:49 +03:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 14:08:49 +03:00
|
|
|
VRCLIENT_CALL( IVRClientCore_IVRClientCore_003_IsInterfaceVersionValid, ¶ms );
|
2023-09-27 12:05:52 +03:00
|
|
|
return params._ret;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-14 17:22:47 +03:00
|
|
|
extern void * __thiscall winIVRClientCore_IVRClientCore_003_GetGenericInterface(struct w_steam_iface *_this, const char *pchNameAndVersion, uint32_t *peError);
|
2018-01-18 22:29:49 +03:00
|
|
|
|
2023-10-04 23:02:15 +03:00
|
|
|
extern int8_t __thiscall winIVRClientCore_IVRClientCore_003_BIsHmdPresent(struct w_steam_iface *_this);
|
2018-01-18 22:29:49 +03:00
|
|
|
|
2023-09-19 20:59:23 +03:00
|
|
|
const char * __thiscall winIVRClientCore_IVRClientCore_003_GetEnglishStringForHmdError(struct w_steam_iface *_this, uint32_t eError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRClientCore_IVRClientCore_003_GetEnglishStringForHmdError_params params =
|
2023-09-27 12:05:52 +03:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.eError = eError,
|
|
|
|
};
|
2018-01-18 22:29:49 +03:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 14:08:49 +03:00
|
|
|
VRCLIENT_CALL( IVRClientCore_IVRClientCore_003_GetEnglishStringForHmdError, ¶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
|
|
|
const char * __thiscall winIVRClientCore_IVRClientCore_003_GetIDForVRInitError(struct w_steam_iface *_this, uint32_t eError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRClientCore_IVRClientCore_003_GetIDForVRInitError_params params =
|
2023-09-27 12:05:52 +03:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.eError = eError,
|
|
|
|
};
|
2018-01-18 22:29:49 +03:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 14:08:49 +03:00
|
|
|
VRCLIENT_CALL( IVRClientCore_IVRClientCore_003_GetIDForVRInitError, ¶ms );
|
2023-09-27 12:05:52 +03:00
|
|
|
return params._ret;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-21 00:58:12 +03:00
|
|
|
extern vtable_ptr winIVRClientCore_IVRClientCore_003_vtable;
|
2018-01-18 22:29:49 +03:00
|
|
|
|
2023-10-02 21:00:22 +03:00
|
|
|
DEFINE_RTTI_DATA0(winIVRClientCore_IVRClientCore_003, 0, ".?AVIVRClientCore@@")
|
|
|
|
|
|
|
|
__ASM_BLOCK_BEGIN(winIVRClientCore_IVRClientCore_003_vtables)
|
2023-09-21 00:58:12 +03:00
|
|
|
__ASM_VTABLE(winIVRClientCore_IVRClientCore_003,
|
|
|
|
VTABLE_ADD_FUNC(winIVRClientCore_IVRClientCore_003_Init)
|
|
|
|
VTABLE_ADD_FUNC(winIVRClientCore_IVRClientCore_003_Cleanup)
|
|
|
|
VTABLE_ADD_FUNC(winIVRClientCore_IVRClientCore_003_IsInterfaceVersionValid)
|
|
|
|
VTABLE_ADD_FUNC(winIVRClientCore_IVRClientCore_003_GetGenericInterface)
|
|
|
|
VTABLE_ADD_FUNC(winIVRClientCore_IVRClientCore_003_BIsHmdPresent)
|
|
|
|
VTABLE_ADD_FUNC(winIVRClientCore_IVRClientCore_003_GetEnglishStringForHmdError)
|
|
|
|
VTABLE_ADD_FUNC(winIVRClientCore_IVRClientCore_003_GetIDForVRInitError)
|
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_winIVRClientCore_IVRClientCore_003(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);
|
2023-09-21 00:58:12 +03:00
|
|
|
r->vtable = &winIVRClientCore_IVRClientCore_003_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_winIVRClientCore_IVRClientCore_003(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_winIVRClientCore_IVRClientCore_003_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));
|
2018-06-04 18:45:00 +03:00
|
|
|
struct thunk *thunks = alloc_thunks(7);
|
|
|
|
struct thunk **vtable = HeapAlloc(GetProcessHeap(), 0, 7 * sizeof(*vtable));
|
|
|
|
int i;
|
|
|
|
|
|
|
|
TRACE("-> %p, vtable %p, thunks %p\n", r, vtable, thunks);
|
2023-09-21 00:58:12 +03:00
|
|
|
init_thunk(&thunks[0], r, winIVRClientCore_IVRClientCore_003_Init, 2, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[1], r, winIVRClientCore_IVRClientCore_003_Cleanup, 0, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[2], r, winIVRClientCore_IVRClientCore_003_IsInterfaceVersionValid, 1, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[3], r, winIVRClientCore_IVRClientCore_003_GetGenericInterface, 2, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[4], r, winIVRClientCore_IVRClientCore_003_BIsHmdPresent, 0, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[5], r, winIVRClientCore_IVRClientCore_003_GetEnglishStringForHmdError, 1, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[6], r, winIVRClientCore_IVRClientCore_003_GetIDForVRInitError, 1, FALSE, FALSE);
|
2018-06-04 18:45:00 +03:00
|
|
|
for (i = 0; i < 7; i++)
|
|
|
|
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_winIVRClientCore_IVRClientCore_003_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_winIVRClientCore_rtti( char *base )
|
|
|
|
{
|
|
|
|
#ifdef __x86_64__
|
|
|
|
init_winIVRClientCore_IVRClientCore_002_rtti( base );
|
|
|
|
init_winIVRClientCore_IVRClientCore_003_rtti( base );
|
|
|
|
#endif /* __x86_64__ */
|
|
|
|
}
|