Proton/vrclient_x64/winIVROverlayView.c

128 lines
4.9 KiB
C
Raw Normal View History

2020-03-18 21:50:21 +03:00
/* This file is auto-generated, do not edit. */
#include <stdarg.h>
#include <stdint.h>
#include "vrclient_private.h"
#include "flatapi.h"
WINE_DEFAULT_DEBUG_CHANNEL(vrclient);
DEFINE_THISCALL_WRAPPER(winIVROverlayView_IVROverlayView_003_AcquireOverlayView, 24)
DEFINE_THISCALL_WRAPPER(winIVROverlayView_IVROverlayView_003_ReleaseOverlayView, 8)
DEFINE_THISCALL_WRAPPER(winIVROverlayView_IVROverlayView_003_PostOverlayEvent, 16)
DEFINE_THISCALL_WRAPPER(winIVROverlayView_IVROverlayView_003_IsViewingPermitted, 12)
uint32_t __thiscall winIVROverlayView_IVROverlayView_003_AcquireOverlayView(struct w_steam_iface *_this, uint64_t ulOverlayHandle, w_VRNativeDevice_t *pNativeDevice, w_VROverlayView_t *pOverlayView, uint32_t unOverlayViewSize)
2020-03-18 21:50:21 +03:00
{
struct IVROverlayView_IVROverlayView_003_AcquireOverlayView_params params =
{
.linux_side = _this->u_iface,
.ulOverlayHandle = ulOverlayHandle,
.pNativeDevice = pNativeDevice,
.pOverlayView = pOverlayView,
.unOverlayViewSize = unOverlayViewSize,
};
2020-03-18 21:50:21 +03:00
TRACE("%p\n", _this);
VRCLIENT_CALL( IVROverlayView_IVROverlayView_003_AcquireOverlayView, &params );
return params._ret;
2020-03-18 21:50:21 +03:00
}
uint32_t __thiscall winIVROverlayView_IVROverlayView_003_ReleaseOverlayView(struct w_steam_iface *_this, w_VROverlayView_t *pOverlayView)
2020-03-18 21:50:21 +03:00
{
struct IVROverlayView_IVROverlayView_003_ReleaseOverlayView_params params =
{
.linux_side = _this->u_iface,
.pOverlayView = pOverlayView,
};
2020-03-18 21:50:21 +03:00
TRACE("%p\n", _this);
VRCLIENT_CALL( IVROverlayView_IVROverlayView_003_ReleaseOverlayView, &params );
return params._ret;
2020-03-18 21:50:21 +03:00
}
void __thiscall winIVROverlayView_IVROverlayView_003_PostOverlayEvent(struct w_steam_iface *_this, uint64_t ulOverlayHandle, const w_VREvent_t_2010 *pvrEvent)
2020-03-18 21:50:21 +03:00
{
struct IVROverlayView_IVROverlayView_003_PostOverlayEvent_params params =
{
.linux_side = _this->u_iface,
.ulOverlayHandle = ulOverlayHandle,
.pvrEvent = pvrEvent,
};
2020-03-18 21:50:21 +03:00
TRACE("%p\n", _this);
VRCLIENT_CALL( IVROverlayView_IVROverlayView_003_PostOverlayEvent, &params );
2020-03-18 21:50:21 +03:00
}
int8_t __thiscall winIVROverlayView_IVROverlayView_003_IsViewingPermitted(struct w_steam_iface *_this, uint64_t ulOverlayHandle)
2020-03-18 21:50:21 +03:00
{
struct IVROverlayView_IVROverlayView_003_IsViewingPermitted_params params =
{
.linux_side = _this->u_iface,
.ulOverlayHandle = ulOverlayHandle,
};
2020-03-18 21:50:21 +03:00
TRACE("%p\n", _this);
VRCLIENT_CALL( IVROverlayView_IVROverlayView_003_IsViewingPermitted, &params );
return params._ret;
2020-03-18 21:50:21 +03:00
}
extern vtable_ptr winIVROverlayView_IVROverlayView_003_vtable;
DEFINE_RTTI_DATA0(winIVROverlayView_IVROverlayView_003, 0, ".?AVIVROverlayView@@")
__ASM_BLOCK_BEGIN(winIVROverlayView_IVROverlayView_003_vtables)
2020-03-18 21:50:21 +03:00
__ASM_VTABLE(winIVROverlayView_IVROverlayView_003,
VTABLE_ADD_FUNC(winIVROverlayView_IVROverlayView_003_AcquireOverlayView)
VTABLE_ADD_FUNC(winIVROverlayView_IVROverlayView_003_ReleaseOverlayView)
VTABLE_ADD_FUNC(winIVROverlayView_IVROverlayView_003_PostOverlayEvent)
VTABLE_ADD_FUNC(winIVROverlayView_IVROverlayView_003_IsViewingPermitted)
);
__ASM_BLOCK_END
2020-03-18 21:50:21 +03:00
struct w_steam_iface *create_winIVROverlayView_IVROverlayView_003(void *u_iface)
2020-03-18 21:50:21 +03:00
{
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
2020-03-18 21:50:21 +03:00
TRACE("-> %p\n", r);
r->vtable = &winIVROverlayView_IVROverlayView_003_vtable;
r->u_iface = u_iface;
2020-03-18 21:50:21 +03:00
return r;
}
void destroy_winIVROverlayView_IVROverlayView_003(struct w_steam_iface *object)
2020-03-18 21:50:21 +03:00
{
TRACE("%p\n", object);
HeapFree(GetProcessHeap(), 0, object);
}
struct w_steam_iface *create_winIVROverlayView_IVROverlayView_003_FnTable(void *u_iface)
2020-03-18 21:50:21 +03:00
{
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
2020-03-18 21:50:21 +03:00
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, winIVROverlayView_IVROverlayView_003_AcquireOverlayView, 4, FALSE, FALSE);
init_thunk(&thunks[1], r, winIVROverlayView_IVROverlayView_003_ReleaseOverlayView, 1, FALSE, FALSE);
init_thunk(&thunks[2], r, winIVROverlayView_IVROverlayView_003_PostOverlayEvent, 2, FALSE, FALSE);
init_thunk(&thunks[3], r, winIVROverlayView_IVROverlayView_003_IsViewingPermitted, 1, FALSE, FALSE);
for (i = 0; i < 4; i++)
vtable[i] = &thunks[i];
r->u_iface = u_iface;
2020-03-18 21:50:21 +03:00
r->vtable = (void *)vtable;
return r;
}
void destroy_winIVROverlayView_IVROverlayView_003_FnTable(struct w_steam_iface *object)
2020-03-18 21:50:21 +03:00
{
TRACE("%p\n", object);
VirtualFree(object->vtable[0], 0, MEM_RELEASE);
HeapFree(GetProcessHeap(), 0, object->vtable);
HeapFree(GetProcessHeap(), 0, object);
2020-03-18 21:50:21 +03:00
}
void init_winIVROverlayView_rtti( char *base )
{
#ifdef __x86_64__
init_winIVROverlayView_IVROverlayView_003_rtti( base );
#endif /* __x86_64__ */
}