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"
|
|
|
|
|
2018-06-04 17:45:00 +02:00
|
|
|
#include "flatapi.h"
|
|
|
|
|
2018-01-18 20:29:49 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(vrclient);
|
|
|
|
|
2023-09-20 23:58:12 +02:00
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRNotifications_IVRNotifications_001_GetErrorString, 16)
|
2023-09-23 20:52:28 +02:00
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRNotifications_IVRNotifications_001_CreateNotification, 40)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRNotifications_IVRNotifications_001_DismissNotification, 8)
|
|
|
|
|
2023-09-14 16:22:47 +02:00
|
|
|
uint32_t __thiscall winIVRNotifications_IVRNotifications_001_GetErrorString(struct w_steam_iface *_this, uint32_t error, char *pchBuffer, uint32_t unBufferSize)
|
2018-01-18 20:29:49 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRNotifications_IVRNotifications_001_GetErrorString_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.error = error,
|
|
|
|
.pchBuffer = pchBuffer,
|
|
|
|
.unBufferSize = unBufferSize,
|
|
|
|
};
|
2018-01-18 20:29:49 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRNotifications_IVRNotifications_001_GetErrorString, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2018-01-18 20:29:49 +01:00
|
|
|
}
|
|
|
|
|
2023-09-29 11:28:17 +02:00
|
|
|
uint32_t __thiscall winIVRNotifications_IVRNotifications_001_CreateNotification(struct w_steam_iface *_this, uint64_t ulOverlayHandle, uint64_t ulUserValue, const char *strType, const char *strText, const char *strCategory, const w_NotificationBitmap *photo, uint32_t *notificationId)
|
2018-01-18 20:29:49 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRNotifications_IVRNotifications_001_CreateNotification_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.ulUserValue = ulUserValue,
|
|
|
|
.strType = strType,
|
|
|
|
.strText = strText,
|
|
|
|
.strCategory = strCategory,
|
|
|
|
.photo = photo,
|
|
|
|
.notificationId = notificationId,
|
|
|
|
};
|
2018-01-18 20:29:49 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRNotifications_IVRNotifications_001_CreateNotification, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2018-01-18 20:29:49 +01:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVRNotifications_IVRNotifications_001_DismissNotification(struct w_steam_iface *_this, uint32_t notificationId)
|
2023-09-20 23:58:12 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRNotifications_IVRNotifications_001_DismissNotification_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.notificationId = notificationId,
|
|
|
|
};
|
2023-09-20 23:58:12 +02:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRNotifications_IVRNotifications_001_DismissNotification, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-20 23:58:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
extern vtable_ptr winIVRNotifications_IVRNotifications_001_vtable;
|
2018-01-18 20:29:49 +01:00
|
|
|
|
2023-10-02 20:00:22 +02:00
|
|
|
DEFINE_RTTI_DATA0(winIVRNotifications_IVRNotifications_001, 0, ".?AVIVRNotifications@@")
|
|
|
|
|
|
|
|
__ASM_BLOCK_BEGIN(winIVRNotifications_IVRNotifications_001_vtables)
|
2023-09-20 23:58:12 +02:00
|
|
|
__ASM_VTABLE(winIVRNotifications_IVRNotifications_001,
|
|
|
|
VTABLE_ADD_FUNC(winIVRNotifications_IVRNotifications_001_GetErrorString)
|
|
|
|
VTABLE_ADD_FUNC(winIVRNotifications_IVRNotifications_001_CreateNotification)
|
|
|
|
VTABLE_ADD_FUNC(winIVRNotifications_IVRNotifications_001_DismissNotification)
|
2018-01-18 20:29:49 +01:00
|
|
|
);
|
2023-10-02 20:00:22 +02:00
|
|
|
__ASM_BLOCK_END
|
2018-01-18 20:29:49 +01:00
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
struct w_steam_iface *create_winIVRNotifications_IVRNotifications_001(void *u_iface)
|
2018-01-18 20:29:49 +01:00
|
|
|
{
|
2023-09-24 14:50:45 +02: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);
|
2023-09-20 23:58:12 +02:00
|
|
|
r->vtable = &winIVRNotifications_IVRNotifications_001_vtable;
|
2023-09-24 14:50:45 +02:00
|
|
|
r->u_iface = u_iface;
|
2018-01-18 20:29:49 +01:00
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
void destroy_winIVRNotifications_IVRNotifications_001(struct w_steam_iface *object)
|
2018-04-19 15:50:32 +02:00
|
|
|
{
|
|
|
|
TRACE("%p\n", object);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object);
|
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
struct w_steam_iface *create_winIVRNotifications_IVRNotifications_001_FnTable(void *u_iface)
|
2018-06-04 17:45:00 +02:00
|
|
|
{
|
2023-09-24 14:50:45 +02:00
|
|
|
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
|
2023-09-20 23:58:12 +02:00
|
|
|
struct thunk *thunks = alloc_thunks(3);
|
|
|
|
struct thunk **vtable = HeapAlloc(GetProcessHeap(), 0, 3 * sizeof(*vtable));
|
2018-06-04 17:45:00 +02:00
|
|
|
int i;
|
|
|
|
|
|
|
|
TRACE("-> %p, vtable %p, thunks %p\n", r, vtable, thunks);
|
2023-09-20 23:58:12 +02:00
|
|
|
init_thunk(&thunks[0], r, winIVRNotifications_IVRNotifications_001_GetErrorString, 3, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[1], r, winIVRNotifications_IVRNotifications_001_CreateNotification, 7, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[2], r, winIVRNotifications_IVRNotifications_001_DismissNotification, 1, FALSE, FALSE);
|
|
|
|
for (i = 0; i < 3; i++)
|
2018-06-04 17:45:00 +02:00
|
|
|
vtable[i] = &thunks[i];
|
2023-09-24 14:50:45 +02:00
|
|
|
r->u_iface = u_iface;
|
2018-06-04 17:45:00 +02:00
|
|
|
r->vtable = (void *)vtable;
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
void destroy_winIVRNotifications_IVRNotifications_001_FnTable(struct w_steam_iface *object)
|
2018-06-04 17:45:00 +02:00
|
|
|
{
|
2023-09-24 14:50:45 +02:00
|
|
|
TRACE("%p\n", object);
|
|
|
|
VirtualFree(object->vtable[0], 0, MEM_RELEASE);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object->vtable);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object);
|
2018-06-04 17:45:00 +02:00
|
|
|
}
|
|
|
|
|
2023-09-20 23:58:12 +02:00
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRNotifications_IVRNotifications_002_CreateNotification, 40)
|
2023-09-23 20:52:28 +02:00
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRNotifications_IVRNotifications_002_RemoveNotification, 8)
|
|
|
|
|
2023-09-29 11:28:17 +02:00
|
|
|
uint32_t __thiscall winIVRNotifications_IVRNotifications_002_CreateNotification(struct w_steam_iface *_this, uint64_t ulOverlayHandle, uint64_t ulUserValue, uint32_t type, const char *pchText, uint32_t style, const w_NotificationBitmap_t *pImage, uint32_t *pNotificationId)
|
2018-01-18 20:29:49 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRNotifications_IVRNotifications_002_CreateNotification_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.ulUserValue = ulUserValue,
|
|
|
|
.type = type,
|
|
|
|
.pchText = pchText,
|
|
|
|
.style = style,
|
|
|
|
.pImage = pImage,
|
|
|
|
.pNotificationId = pNotificationId,
|
|
|
|
};
|
2018-01-18 20:29:49 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRNotifications_IVRNotifications_002_CreateNotification, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2018-01-18 20:29:49 +01:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVRNotifications_IVRNotifications_002_RemoveNotification(struct w_steam_iface *_this, uint32_t notificationId)
|
2018-01-18 20:29:49 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRNotifications_IVRNotifications_002_RemoveNotification_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.notificationId = notificationId,
|
|
|
|
};
|
2018-01-18 20:29:49 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRNotifications_IVRNotifications_002_RemoveNotification, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2018-01-18 20:29:49 +01:00
|
|
|
}
|
|
|
|
|
2023-09-20 23:58:12 +02:00
|
|
|
extern vtable_ptr winIVRNotifications_IVRNotifications_002_vtable;
|
2018-01-18 20:29:49 +01:00
|
|
|
|
2023-10-02 20:00:22 +02:00
|
|
|
DEFINE_RTTI_DATA0(winIVRNotifications_IVRNotifications_002, 0, ".?AVIVRNotifications@@")
|
|
|
|
|
|
|
|
__ASM_BLOCK_BEGIN(winIVRNotifications_IVRNotifications_002_vtables)
|
2023-09-20 23:58:12 +02:00
|
|
|
__ASM_VTABLE(winIVRNotifications_IVRNotifications_002,
|
|
|
|
VTABLE_ADD_FUNC(winIVRNotifications_IVRNotifications_002_CreateNotification)
|
|
|
|
VTABLE_ADD_FUNC(winIVRNotifications_IVRNotifications_002_RemoveNotification)
|
2018-01-18 20:29:49 +01:00
|
|
|
);
|
2023-10-02 20:00:22 +02:00
|
|
|
__ASM_BLOCK_END
|
2018-01-18 20:29:49 +01:00
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
struct w_steam_iface *create_winIVRNotifications_IVRNotifications_002(void *u_iface)
|
2018-01-18 20:29:49 +01:00
|
|
|
{
|
2023-09-24 14:50:45 +02: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);
|
2023-09-20 23:58:12 +02:00
|
|
|
r->vtable = &winIVRNotifications_IVRNotifications_002_vtable;
|
2023-09-24 14:50:45 +02:00
|
|
|
r->u_iface = u_iface;
|
2018-01-18 20:29:49 +01:00
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
void destroy_winIVRNotifications_IVRNotifications_002(struct w_steam_iface *object)
|
2018-04-19 15:50:32 +02:00
|
|
|
{
|
|
|
|
TRACE("%p\n", object);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object);
|
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
struct w_steam_iface *create_winIVRNotifications_IVRNotifications_002_FnTable(void *u_iface)
|
2018-06-04 17:45:00 +02:00
|
|
|
{
|
2023-09-24 14:50:45 +02:00
|
|
|
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
|
2023-09-20 23:58:12 +02:00
|
|
|
struct thunk *thunks = alloc_thunks(2);
|
|
|
|
struct thunk **vtable = HeapAlloc(GetProcessHeap(), 0, 2 * sizeof(*vtable));
|
2018-06-04 17:45:00 +02:00
|
|
|
int i;
|
|
|
|
|
|
|
|
TRACE("-> %p, vtable %p, thunks %p\n", r, vtable, thunks);
|
2023-09-20 23:58:12 +02:00
|
|
|
init_thunk(&thunks[0], r, winIVRNotifications_IVRNotifications_002_CreateNotification, 7, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[1], r, winIVRNotifications_IVRNotifications_002_RemoveNotification, 1, FALSE, FALSE);
|
|
|
|
for (i = 0; i < 2; i++)
|
2018-06-04 17:45:00 +02:00
|
|
|
vtable[i] = &thunks[i];
|
2023-09-24 14:50:45 +02:00
|
|
|
r->u_iface = u_iface;
|
2018-06-04 17:45:00 +02:00
|
|
|
r->vtable = (void *)vtable;
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
void destroy_winIVRNotifications_IVRNotifications_002_FnTable(struct w_steam_iface *object)
|
2018-06-04 17:45:00 +02:00
|
|
|
{
|
2023-09-24 14:50:45 +02:00
|
|
|
TRACE("%p\n", object);
|
|
|
|
VirtualFree(object->vtable[0], 0, MEM_RELEASE);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object->vtable);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object);
|
2018-06-04 17:45:00 +02:00
|
|
|
}
|
|
|
|
|
2023-10-02 20:00:22 +02:00
|
|
|
void init_winIVRNotifications_rtti( char *base )
|
|
|
|
{
|
|
|
|
#ifdef __x86_64__
|
|
|
|
init_winIVRNotifications_IVRNotifications_001_rtti( base );
|
|
|
|
init_winIVRNotifications_IVRNotifications_002_rtti( base );
|
|
|
|
#endif /* __x86_64__ */
|
|
|
|
}
|