2018-01-18 22:29:49 +03:00
|
|
|
/* 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 "cxx.h"
|
|
|
|
|
|
|
|
#include "vrclient_defs.h"
|
|
|
|
|
|
|
|
#include "vrclient_private.h"
|
|
|
|
|
|
|
|
#include "struct_converters.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);
|
|
|
|
|
|
|
|
#include "cppIVRExtendedDisplay_IVRExtendedDisplay_001.h"
|
|
|
|
|
|
|
|
typedef struct __winIVRExtendedDisplay_IVRExtendedDisplay_001 {
|
|
|
|
vtable_ptr *vtable;
|
|
|
|
void *linux_side;
|
|
|
|
} winIVRExtendedDisplay_IVRExtendedDisplay_001;
|
|
|
|
|
2019-09-17 20:52:18 +03:00
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRExtendedDisplay_IVRExtendedDisplay_001_GetWindowBounds, 20)
|
2018-01-18 22:29:49 +03:00
|
|
|
void __thiscall winIVRExtendedDisplay_IVRExtendedDisplay_001_GetWindowBounds(winIVRExtendedDisplay_IVRExtendedDisplay_001 *_this, int32_t * pnX, int32_t * pnY, uint32_t * pnWidth, uint32_t * pnHeight)
|
|
|
|
{
|
|
|
|
TRACE("%p\n", _this);
|
|
|
|
cppIVRExtendedDisplay_IVRExtendedDisplay_001_GetWindowBounds(_this->linux_side, pnX, pnY, pnWidth, pnHeight);
|
|
|
|
}
|
|
|
|
|
2019-09-17 20:52:18 +03:00
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRExtendedDisplay_IVRExtendedDisplay_001_GetEyeOutputViewport, 24)
|
2018-01-18 22:29:49 +03:00
|
|
|
void __thiscall winIVRExtendedDisplay_IVRExtendedDisplay_001_GetEyeOutputViewport(winIVRExtendedDisplay_IVRExtendedDisplay_001 *_this, EVREye eEye, uint32_t * pnX, uint32_t * pnY, uint32_t * pnWidth, uint32_t * pnHeight)
|
|
|
|
{
|
|
|
|
TRACE("%p\n", _this);
|
|
|
|
cppIVRExtendedDisplay_IVRExtendedDisplay_001_GetEyeOutputViewport(_this->linux_side, eEye, pnX, pnY, pnWidth, pnHeight);
|
|
|
|
}
|
|
|
|
|
2019-09-17 20:52:18 +03:00
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRExtendedDisplay_IVRExtendedDisplay_001_GetDXGIOutputInfo, 12)
|
2018-01-18 22:29:49 +03:00
|
|
|
void __thiscall winIVRExtendedDisplay_IVRExtendedDisplay_001_GetDXGIOutputInfo(winIVRExtendedDisplay_IVRExtendedDisplay_001 *_this, int32_t * pnAdapterIndex, int32_t * pnAdapterOutputIndex)
|
|
|
|
{
|
|
|
|
TRACE("%p\n", _this);
|
|
|
|
cppIVRExtendedDisplay_IVRExtendedDisplay_001_GetDXGIOutputInfo(_this->linux_side, pnAdapterIndex, pnAdapterOutputIndex);
|
|
|
|
}
|
|
|
|
|
|
|
|
extern vtable_ptr winIVRExtendedDisplay_IVRExtendedDisplay_001_vtable;
|
|
|
|
|
|
|
|
#ifndef __GNUC__
|
|
|
|
void __asm_dummy_vtables(void) {
|
|
|
|
#endif
|
|
|
|
__ASM_VTABLE(winIVRExtendedDisplay_IVRExtendedDisplay_001,
|
|
|
|
VTABLE_ADD_FUNC(winIVRExtendedDisplay_IVRExtendedDisplay_001_GetWindowBounds)
|
|
|
|
VTABLE_ADD_FUNC(winIVRExtendedDisplay_IVRExtendedDisplay_001_GetEyeOutputViewport)
|
|
|
|
VTABLE_ADD_FUNC(winIVRExtendedDisplay_IVRExtendedDisplay_001_GetDXGIOutputInfo)
|
|
|
|
);
|
|
|
|
#ifndef __GNUC__
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
winIVRExtendedDisplay_IVRExtendedDisplay_001 *create_winIVRExtendedDisplay_IVRExtendedDisplay_001(void *linux_side)
|
|
|
|
{
|
2018-04-04 18:20:44 +03:00
|
|
|
winIVRExtendedDisplay_IVRExtendedDisplay_001 *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(winIVRExtendedDisplay_IVRExtendedDisplay_001));
|
2018-01-18 22:29:49 +03:00
|
|
|
TRACE("-> %p\n", r);
|
|
|
|
r->vtable = &winIVRExtendedDisplay_IVRExtendedDisplay_001_vtable;
|
|
|
|
r->linux_side = linux_side;
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
2018-04-19 16:50:32 +03:00
|
|
|
void destroy_winIVRExtendedDisplay_IVRExtendedDisplay_001(void *object)
|
|
|
|
{
|
|
|
|
TRACE("%p\n", object);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object);
|
|
|
|
}
|
|
|
|
|
2018-06-04 18:45:00 +03:00
|
|
|
winIVRExtendedDisplay_IVRExtendedDisplay_001 *create_winIVRExtendedDisplay_IVRExtendedDisplay_001_FnTable(void *linux_side)
|
|
|
|
{
|
|
|
|
winIVRExtendedDisplay_IVRExtendedDisplay_001 *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(winIVRExtendedDisplay_IVRExtendedDisplay_001));
|
|
|
|
struct thunk *thunks = alloc_thunks(3);
|
|
|
|
struct thunk **vtable = HeapAlloc(GetProcessHeap(), 0, 3 * sizeof(*vtable));
|
|
|
|
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, winIVRExtendedDisplay_IVRExtendedDisplay_001_GetWindowBounds, 4, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[1], r, winIVRExtendedDisplay_IVRExtendedDisplay_001_GetEyeOutputViewport, 5, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[2], r, winIVRExtendedDisplay_IVRExtendedDisplay_001_GetDXGIOutputInfo, 2, FALSE, FALSE);
|
2018-06-04 18:45:00 +03:00
|
|
|
for (i = 0; i < 3; i++)
|
|
|
|
vtable[i] = &thunks[i];
|
|
|
|
r->linux_side = linux_side;
|
|
|
|
r->vtable = (void *)vtable;
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
|
|
|
void destroy_winIVRExtendedDisplay_IVRExtendedDisplay_001_FnTable(void *object)
|
|
|
|
{
|
|
|
|
winIVRExtendedDisplay_IVRExtendedDisplay_001 *win_object = object;
|
|
|
|
TRACE("%p\n", win_object);
|
|
|
|
VirtualFree(win_object->vtable[0], 0, MEM_RELEASE);
|
|
|
|
HeapFree(GetProcessHeap(), 0, win_object->vtable);
|
|
|
|
HeapFree(GetProcessHeap(), 0, win_object);
|
|
|
|
}
|
|
|
|
|