Proton/vrclient_x64/vrclient_x64/winIVRIOBuffer.c

306 lines
10 KiB
C
Raw Normal View History

/* 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 "cppIVRIOBuffer_IVRIOBuffer_001.h"
2019-06-28 14:22:25 -05:00
DEFINE_THISCALL_WRAPPER(winIVRIOBuffer_IVRIOBuffer_001_Open, 24)
DEFINE_THISCALL_WRAPPER(winIVRIOBuffer_IVRIOBuffer_001_Close, 12)
DEFINE_THISCALL_WRAPPER(winIVRIOBuffer_IVRIOBuffer_001_Read, 24)
DEFINE_THISCALL_WRAPPER(winIVRIOBuffer_IVRIOBuffer_001_Write, 20)
DEFINE_THISCALL_WRAPPER(winIVRIOBuffer_IVRIOBuffer_001_PropertyContainer, 12)
EIOBufferError __thiscall winIVRIOBuffer_IVRIOBuffer_001_Open(struct w_steam_iface *_this, const char *pchPath, EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, IOBufferHandle_t *pulBuffer)
2019-06-28 14:22:25 -05:00
{
struct cppIVRIOBuffer_IVRIOBuffer_001_Open_params params =
{
.linux_side = _this->u_iface,
.pchPath = pchPath,
.mode = mode,
.unElementSize = unElementSize,
.unElements = unElements,
.pulBuffer = pulBuffer,
};
2019-06-28 14:22:25 -05:00
TRACE("%p\n", _this);
cppIVRIOBuffer_IVRIOBuffer_001_Open( &params );
return params._ret;
2019-06-28 14:22:25 -05:00
}
EIOBufferError __thiscall winIVRIOBuffer_IVRIOBuffer_001_Close(struct w_steam_iface *_this, IOBufferHandle_t ulBuffer)
2019-06-28 14:22:25 -05:00
{
struct cppIVRIOBuffer_IVRIOBuffer_001_Close_params params =
{
.linux_side = _this->u_iface,
.ulBuffer = ulBuffer,
};
2019-06-28 14:22:25 -05:00
TRACE("%p\n", _this);
cppIVRIOBuffer_IVRIOBuffer_001_Close( &params );
return params._ret;
2019-06-28 14:22:25 -05:00
}
EIOBufferError __thiscall winIVRIOBuffer_IVRIOBuffer_001_Read(struct w_steam_iface *_this, IOBufferHandle_t ulBuffer, void *pDst, uint32_t unBytes, uint32_t *punRead)
2019-06-28 14:22:25 -05:00
{
struct cppIVRIOBuffer_IVRIOBuffer_001_Read_params params =
{
.linux_side = _this->u_iface,
.ulBuffer = ulBuffer,
.pDst = pDst,
.unBytes = unBytes,
.punRead = punRead,
};
2019-06-28 14:22:25 -05:00
TRACE("%p\n", _this);
cppIVRIOBuffer_IVRIOBuffer_001_Read( &params );
return params._ret;
2019-06-28 14:22:25 -05:00
}
EIOBufferError __thiscall winIVRIOBuffer_IVRIOBuffer_001_Write(struct w_steam_iface *_this, IOBufferHandle_t ulBuffer, void *pSrc, uint32_t unBytes)
2019-06-28 14:22:25 -05:00
{
struct cppIVRIOBuffer_IVRIOBuffer_001_Write_params params =
{
.linux_side = _this->u_iface,
.ulBuffer = ulBuffer,
.pSrc = pSrc,
.unBytes = unBytes,
};
2019-06-28 14:22:25 -05:00
TRACE("%p\n", _this);
cppIVRIOBuffer_IVRIOBuffer_001_Write( &params );
return params._ret;
2019-06-28 14:22:25 -05:00
}
PropertyContainerHandle_t __thiscall winIVRIOBuffer_IVRIOBuffer_001_PropertyContainer(struct w_steam_iface *_this, IOBufferHandle_t ulBuffer)
2019-06-28 14:22:25 -05:00
{
struct cppIVRIOBuffer_IVRIOBuffer_001_PropertyContainer_params params =
{
.linux_side = _this->u_iface,
.ulBuffer = ulBuffer,
};
2019-06-28 14:22:25 -05:00
TRACE("%p\n", _this);
cppIVRIOBuffer_IVRIOBuffer_001_PropertyContainer( &params );
return params._ret;
2019-06-28 14:22:25 -05:00
}
extern vtable_ptr winIVRIOBuffer_IVRIOBuffer_001_vtable;
2019-06-28 14:22:25 -05:00
#ifndef __GNUC__
void __asm_dummy_vtables(void) {
#endif
__ASM_VTABLE(winIVRIOBuffer_IVRIOBuffer_001,
VTABLE_ADD_FUNC(winIVRIOBuffer_IVRIOBuffer_001_Open)
VTABLE_ADD_FUNC(winIVRIOBuffer_IVRIOBuffer_001_Close)
VTABLE_ADD_FUNC(winIVRIOBuffer_IVRIOBuffer_001_Read)
VTABLE_ADD_FUNC(winIVRIOBuffer_IVRIOBuffer_001_Write)
VTABLE_ADD_FUNC(winIVRIOBuffer_IVRIOBuffer_001_PropertyContainer)
2019-06-28 14:22:25 -05:00
);
#ifndef __GNUC__
}
#endif
struct w_steam_iface *create_winIVRIOBuffer_IVRIOBuffer_001(void *u_iface)
2019-06-28 14:22:25 -05:00
{
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
2019-06-28 14:22:25 -05:00
TRACE("-> %p\n", r);
r->vtable = &winIVRIOBuffer_IVRIOBuffer_001_vtable;
r->u_iface = u_iface;
2019-06-28 14:22:25 -05:00
return r;
}
void destroy_winIVRIOBuffer_IVRIOBuffer_001(struct w_steam_iface *object)
2019-06-28 14:22:25 -05:00
{
TRACE("%p\n", object);
HeapFree(GetProcessHeap(), 0, object);
}
struct w_steam_iface *create_winIVRIOBuffer_IVRIOBuffer_001_FnTable(void *u_iface)
2019-06-28 14:22:25 -05:00
{
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
struct thunk *thunks = alloc_thunks(5);
struct thunk **vtable = HeapAlloc(GetProcessHeap(), 0, 5 * sizeof(*vtable));
2019-06-28 14:22:25 -05:00
int i;
TRACE("-> %p, vtable %p, thunks %p\n", r, vtable, thunks);
init_thunk(&thunks[0], r, winIVRIOBuffer_IVRIOBuffer_001_Open, 5, FALSE, FALSE);
init_thunk(&thunks[1], r, winIVRIOBuffer_IVRIOBuffer_001_Close, 1, FALSE, FALSE);
init_thunk(&thunks[2], r, winIVRIOBuffer_IVRIOBuffer_001_Read, 4, FALSE, FALSE);
init_thunk(&thunks[3], r, winIVRIOBuffer_IVRIOBuffer_001_Write, 3, FALSE, FALSE);
init_thunk(&thunks[4], r, winIVRIOBuffer_IVRIOBuffer_001_PropertyContainer, 1, FALSE, FALSE);
for (i = 0; i < 5; i++)
2019-06-28 14:22:25 -05:00
vtable[i] = &thunks[i];
r->u_iface = u_iface;
2019-06-28 14:22:25 -05:00
r->vtable = (void *)vtable;
return r;
}
void destroy_winIVRIOBuffer_IVRIOBuffer_001_FnTable(struct w_steam_iface *object)
2019-06-28 14:22:25 -05:00
{
TRACE("%p\n", object);
VirtualFree(object->vtable[0], 0, MEM_RELEASE);
HeapFree(GetProcessHeap(), 0, object->vtable);
HeapFree(GetProcessHeap(), 0, object);
2019-06-28 14:22:25 -05:00
}
#include "cppIVRIOBuffer_IVRIOBuffer_002.h"
DEFINE_THISCALL_WRAPPER(winIVRIOBuffer_IVRIOBuffer_002_Open, 24)
DEFINE_THISCALL_WRAPPER(winIVRIOBuffer_IVRIOBuffer_002_Close, 12)
DEFINE_THISCALL_WRAPPER(winIVRIOBuffer_IVRIOBuffer_002_Read, 24)
DEFINE_THISCALL_WRAPPER(winIVRIOBuffer_IVRIOBuffer_002_Write, 20)
DEFINE_THISCALL_WRAPPER(winIVRIOBuffer_IVRIOBuffer_002_PropertyContainer, 12)
DEFINE_THISCALL_WRAPPER(winIVRIOBuffer_IVRIOBuffer_002_HasReaders, 12)
EIOBufferError __thiscall winIVRIOBuffer_IVRIOBuffer_002_Open(struct w_steam_iface *_this, const char *pchPath, EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, IOBufferHandle_t *pulBuffer)
{
struct cppIVRIOBuffer_IVRIOBuffer_002_Open_params params =
{
.linux_side = _this->u_iface,
.pchPath = pchPath,
.mode = mode,
.unElementSize = unElementSize,
.unElements = unElements,
.pulBuffer = pulBuffer,
};
TRACE("%p\n", _this);
cppIVRIOBuffer_IVRIOBuffer_002_Open( &params );
return params._ret;
}
EIOBufferError __thiscall winIVRIOBuffer_IVRIOBuffer_002_Close(struct w_steam_iface *_this, IOBufferHandle_t ulBuffer)
{
struct cppIVRIOBuffer_IVRIOBuffer_002_Close_params params =
{
.linux_side = _this->u_iface,
.ulBuffer = ulBuffer,
};
TRACE("%p\n", _this);
cppIVRIOBuffer_IVRIOBuffer_002_Close( &params );
return params._ret;
}
EIOBufferError __thiscall winIVRIOBuffer_IVRIOBuffer_002_Read(struct w_steam_iface *_this, IOBufferHandle_t ulBuffer, void *pDst, uint32_t unBytes, uint32_t *punRead)
{
struct cppIVRIOBuffer_IVRIOBuffer_002_Read_params params =
{
.linux_side = _this->u_iface,
.ulBuffer = ulBuffer,
.pDst = pDst,
.unBytes = unBytes,
.punRead = punRead,
};
TRACE("%p\n", _this);
cppIVRIOBuffer_IVRIOBuffer_002_Read( &params );
return params._ret;
}
EIOBufferError __thiscall winIVRIOBuffer_IVRIOBuffer_002_Write(struct w_steam_iface *_this, IOBufferHandle_t ulBuffer, void *pSrc, uint32_t unBytes)
{
struct cppIVRIOBuffer_IVRIOBuffer_002_Write_params params =
{
.linux_side = _this->u_iface,
.ulBuffer = ulBuffer,
.pSrc = pSrc,
.unBytes = unBytes,
};
TRACE("%p\n", _this);
cppIVRIOBuffer_IVRIOBuffer_002_Write( &params );
return params._ret;
}
PropertyContainerHandle_t __thiscall winIVRIOBuffer_IVRIOBuffer_002_PropertyContainer(struct w_steam_iface *_this, IOBufferHandle_t ulBuffer)
{
struct cppIVRIOBuffer_IVRIOBuffer_002_PropertyContainer_params params =
{
.linux_side = _this->u_iface,
.ulBuffer = ulBuffer,
};
TRACE("%p\n", _this);
cppIVRIOBuffer_IVRIOBuffer_002_PropertyContainer( &params );
return params._ret;
}
bool __thiscall winIVRIOBuffer_IVRIOBuffer_002_HasReaders(struct w_steam_iface *_this, IOBufferHandle_t ulBuffer)
{
struct cppIVRIOBuffer_IVRIOBuffer_002_HasReaders_params params =
{
.linux_side = _this->u_iface,
.ulBuffer = ulBuffer,
};
TRACE("%p\n", _this);
cppIVRIOBuffer_IVRIOBuffer_002_HasReaders( &params );
return params._ret;
}
extern vtable_ptr winIVRIOBuffer_IVRIOBuffer_002_vtable;
#ifndef __GNUC__
void __asm_dummy_vtables(void) {
#endif
__ASM_VTABLE(winIVRIOBuffer_IVRIOBuffer_002,
VTABLE_ADD_FUNC(winIVRIOBuffer_IVRIOBuffer_002_Open)
VTABLE_ADD_FUNC(winIVRIOBuffer_IVRIOBuffer_002_Close)
VTABLE_ADD_FUNC(winIVRIOBuffer_IVRIOBuffer_002_Read)
VTABLE_ADD_FUNC(winIVRIOBuffer_IVRIOBuffer_002_Write)
VTABLE_ADD_FUNC(winIVRIOBuffer_IVRIOBuffer_002_PropertyContainer)
VTABLE_ADD_FUNC(winIVRIOBuffer_IVRIOBuffer_002_HasReaders)
);
#ifndef __GNUC__
}
#endif
struct w_steam_iface *create_winIVRIOBuffer_IVRIOBuffer_002(void *u_iface)
{
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
TRACE("-> %p\n", r);
r->vtable = &winIVRIOBuffer_IVRIOBuffer_002_vtable;
r->u_iface = u_iface;
return r;
}
void destroy_winIVRIOBuffer_IVRIOBuffer_002(struct w_steam_iface *object)
{
TRACE("%p\n", object);
HeapFree(GetProcessHeap(), 0, object);
}
struct w_steam_iface *create_winIVRIOBuffer_IVRIOBuffer_002_FnTable(void *u_iface)
{
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
struct thunk *thunks = alloc_thunks(6);
struct thunk **vtable = HeapAlloc(GetProcessHeap(), 0, 6 * sizeof(*vtable));
int i;
TRACE("-> %p, vtable %p, thunks %p\n", r, vtable, thunks);
init_thunk(&thunks[0], r, winIVRIOBuffer_IVRIOBuffer_002_Open, 5, FALSE, FALSE);
init_thunk(&thunks[1], r, winIVRIOBuffer_IVRIOBuffer_002_Close, 1, FALSE, FALSE);
init_thunk(&thunks[2], r, winIVRIOBuffer_IVRIOBuffer_002_Read, 4, FALSE, FALSE);
init_thunk(&thunks[3], r, winIVRIOBuffer_IVRIOBuffer_002_Write, 3, FALSE, FALSE);
init_thunk(&thunks[4], r, winIVRIOBuffer_IVRIOBuffer_002_PropertyContainer, 1, FALSE, FALSE);
init_thunk(&thunks[5], r, winIVRIOBuffer_IVRIOBuffer_002_HasReaders, 1, FALSE, FALSE);
for (i = 0; i < 6; i++)
vtable[i] = &thunks[i];
r->u_iface = u_iface;
r->vtable = (void *)vtable;
return r;
}
void destroy_winIVRIOBuffer_IVRIOBuffer_002_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);
}