Yucom/vrclient_x64/winIVRScreenshots.c

185 lines
7.8 KiB
C
Raw Normal View History

2018-01-18 20:29:49 +01:00
/* This file is auto-generated, do not edit. */
#include <stdarg.h>
#include <stdint.h>
#include "vrclient_private.h"
#include "flatapi.h"
2018-01-18 20:29:49 +01:00
WINE_DEFAULT_DEBUG_CHANNEL(vrclient);
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_RequestScreenshot, 20)
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_HookScreenshot, 12)
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType, 12)
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename, 24)
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress, 12)
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot, 16)
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_SubmitScreenshot, 20)
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_RequestScreenshot(struct w_steam_iface *_this, uint32_t *pOutScreenshotHandle, uint32_t type, const char *pchPreviewFilename, const char *pchVRFilename)
2018-01-18 20:29:49 +01:00
{
struct IVRScreenshots_IVRScreenshots_001_RequestScreenshot_params params =
{
.linux_side = _this->u_iface,
.pOutScreenshotHandle = pOutScreenshotHandle,
.type = type,
.pchPreviewFilename = pchPreviewFilename,
.pchVRFilename = pchVRFilename,
};
2018-01-18 20:29:49 +01:00
TRACE("%p\n", _this);
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_RequestScreenshot, &params );
return params._ret;
2018-01-18 20:29:49 +01:00
}
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_HookScreenshot(struct w_steam_iface *_this, uint32_t *pSupportedTypes, int32_t numTypes)
2018-01-18 20:29:49 +01:00
{
struct IVRScreenshots_IVRScreenshots_001_HookScreenshot_params params =
{
.linux_side = _this->u_iface,
.pSupportedTypes = pSupportedTypes,
.numTypes = numTypes,
};
2018-01-18 20:29:49 +01:00
TRACE("%p\n", _this);
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_HookScreenshot, &params );
return params._ret;
2018-01-18 20:29:49 +01:00
}
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType(struct w_steam_iface *_this, uint32_t screenshotHandle, uint32_t *pError)
2018-01-18 20:29:49 +01:00
{
struct IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType_params params =
{
.linux_side = _this->u_iface,
.screenshotHandle = screenshotHandle,
.pError = pError,
};
2018-01-18 20:29:49 +01:00
TRACE("%p\n", _this);
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType, &params );
return params._ret;
2018-01-18 20:29:49 +01:00
}
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename(struct w_steam_iface *_this, uint32_t screenshotHandle, uint32_t filenameType, char *pchFilename, uint32_t cchFilename, uint32_t *pError)
2018-01-18 20:29:49 +01:00
{
struct IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename_params params =
{
.linux_side = _this->u_iface,
.screenshotHandle = screenshotHandle,
.filenameType = filenameType,
.pchFilename = pchFilename,
.cchFilename = cchFilename,
.pError = pError,
};
2018-01-18 20:29:49 +01:00
TRACE("%p\n", _this);
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename, &params );
return params._ret;
2018-01-18 20:29:49 +01:00
}
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress(struct w_steam_iface *_this, uint32_t screenshotHandle, float flProgress)
2018-01-18 20:29:49 +01:00
{
struct IVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress_params params =
{
.linux_side = _this->u_iface,
.screenshotHandle = screenshotHandle,
.flProgress = flProgress,
};
2018-01-18 20:29:49 +01:00
TRACE("%p\n", _this);
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress, &params );
return params._ret;
2018-01-18 20:29:49 +01:00
}
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot(struct w_steam_iface *_this, uint32_t *pOutScreenshotHandle, const char *pchPreviewFilename, const char *pchVRFilename)
2018-01-18 20:29:49 +01:00
{
struct IVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot_params params =
{
.linux_side = _this->u_iface,
.pOutScreenshotHandle = pOutScreenshotHandle,
.pchPreviewFilename = pchPreviewFilename,
.pchVRFilename = pchVRFilename,
};
2018-01-18 20:29:49 +01:00
TRACE("%p\n", _this);
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot, &params );
return params._ret;
2018-01-18 20:29:49 +01:00
}
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_SubmitScreenshot(struct w_steam_iface *_this, uint32_t screenshotHandle, uint32_t type, const char *pchSourcePreviewFilename, const char *pchSourceVRFilename)
2018-01-18 20:29:49 +01:00
{
struct IVRScreenshots_IVRScreenshots_001_SubmitScreenshot_params params =
{
.linux_side = _this->u_iface,
.screenshotHandle = screenshotHandle,
.type = type,
.pchSourcePreviewFilename = pchSourcePreviewFilename,
.pchSourceVRFilename = pchSourceVRFilename,
};
2018-01-18 20:29:49 +01:00
TRACE("%p\n", _this);
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_SubmitScreenshot, &params );
return params._ret;
2018-01-18 20:29:49 +01:00
}
extern vtable_ptr winIVRScreenshots_IVRScreenshots_001_vtable;
DEFINE_RTTI_DATA0(winIVRScreenshots_IVRScreenshots_001, 0, ".?AVIVRScreenshots@@")
__ASM_BLOCK_BEGIN(winIVRScreenshots_IVRScreenshots_001_vtables)
2018-01-18 20:29:49 +01:00
__ASM_VTABLE(winIVRScreenshots_IVRScreenshots_001,
VTABLE_ADD_FUNC(winIVRScreenshots_IVRScreenshots_001_RequestScreenshot)
VTABLE_ADD_FUNC(winIVRScreenshots_IVRScreenshots_001_HookScreenshot)
VTABLE_ADD_FUNC(winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType)
VTABLE_ADD_FUNC(winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename)
VTABLE_ADD_FUNC(winIVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress)
VTABLE_ADD_FUNC(winIVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot)
VTABLE_ADD_FUNC(winIVRScreenshots_IVRScreenshots_001_SubmitScreenshot)
);
__ASM_BLOCK_END
2018-01-18 20:29:49 +01:00
struct w_steam_iface *create_winIVRScreenshots_IVRScreenshots_001(void *u_iface)
2018-01-18 20:29:49 +01:00
{
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
2018-01-18 20:29:49 +01:00
TRACE("-> %p\n", r);
r->vtable = &winIVRScreenshots_IVRScreenshots_001_vtable;
r->u_iface = u_iface;
2018-01-18 20:29:49 +01:00
return r;
}
void destroy_winIVRScreenshots_IVRScreenshots_001(struct w_steam_iface *object)
{
TRACE("%p\n", object);
HeapFree(GetProcessHeap(), 0, object);
}
struct w_steam_iface *create_winIVRScreenshots_IVRScreenshots_001_FnTable(void *u_iface)
{
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
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);
init_thunk(&thunks[0], r, winIVRScreenshots_IVRScreenshots_001_RequestScreenshot, 4, FALSE, FALSE);
init_thunk(&thunks[1], r, winIVRScreenshots_IVRScreenshots_001_HookScreenshot, 2, FALSE, FALSE);
init_thunk(&thunks[2], r, winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType, 2, FALSE, FALSE);
init_thunk(&thunks[3], r, winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename, 5, FALSE, FALSE);
init_thunk(&thunks[4], r, winIVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress, 2, TRUE, FALSE);
init_thunk(&thunks[5], r, winIVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot, 3, FALSE, FALSE);
init_thunk(&thunks[6], r, winIVRScreenshots_IVRScreenshots_001_SubmitScreenshot, 4, FALSE, FALSE);
for (i = 0; i < 7; i++)
vtable[i] = &thunks[i];
r->u_iface = u_iface;
r->vtable = (void *)vtable;
return r;
}
void destroy_winIVRScreenshots_IVRScreenshots_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);
}
void init_winIVRScreenshots_rtti( char *base )
{
#ifdef __x86_64__
init_winIVRScreenshots_IVRScreenshots_001_rtti( base );
#endif /* __x86_64__ */
}