Commit 8a7dc454 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

gamingtcui: Add stub for ShowProfileCardUI().

Based on a patch by Myah Caron. Signed-off-by: 's avatarPaul Gofman <pgofman@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 6eaf494f
......@@ -2,6 +2,6 @@
@ stub ShowChangeFriendRelationshipUI
@ stub ShowGameInviteUI
@ stdcall ShowPlayerPickerUI(ptr ptr long ptr long long long ptr ptr) gamingtcui.ShowPlayerPickerUI
@ stub ShowProfileCardUI
@ stdcall ShowProfileCardUI(ptr ptr ptr) gamingtcui.ShowProfileCardUI
@ stub ShowTitleAchievementsUI
@ stub TryCancelPendingGameUI
......@@ -17,7 +17,7 @@
@ stub ShowGameInviteUIWithContextForUser
@ stdcall ShowPlayerPickerUI(ptr ptr long ptr long long long ptr ptr)
@ stub ShowPlayerPickerUIForUser
@ stub ShowProfileCardUI
@ stdcall ShowProfileCardUI(ptr ptr ptr)
@ stub ShowProfileCardUIForUser
@ stub ShowTitleAchievementsUI
@ stub ShowTitleAchievementsUIForUser
......
......@@ -48,3 +48,14 @@ HRESULT WINAPI ShowPlayerPickerUI(HSTRING prompt_display_text, const HSTRING *xu
return S_OK;
}
HRESULT WINAPI ShowProfileCardUI(HSTRING target_user_xuid, GameUICompletionRoutine completion_routine, void *context)
{
FIXME("target_user_xuid %p, completion_routine %p, context %p stub.\n",
target_user_xuid, completion_routine, context);
if (completion_routine)
completion_routine(S_OK, context);
return S_OK;
}
......@@ -28,6 +28,7 @@ extern "C"
{
#endif
typedef void (WINAPI *GameUICompletionRoutine)(HRESULT return_code, void *context);
typedef void (WINAPI *PlayerPickerUICompletionRoutine)(HRESULT return_code, void *context,
const HSTRING *selected_xuids, size_t count);
......@@ -35,6 +36,7 @@ HRESULT WINAPI ProcessPendingGameUI(BOOL wait_for_completion);
HRESULT WINAPI ShowPlayerPickerUI(HSTRING prompt_display_text, const HSTRING *xuids, size_t xuid_count,
const HSTRING *preselected_xuids, size_t preselected_xuid_count, size_t min_selection_count,
size_t max_selection_count, PlayerPickerUICompletionRoutine completion_routine, void *context);
HRESULT WINAPI ShowProfileCardUI(HSTRING target_user_xuid, GameUICompletionRoutine completion_routine, void *context);
#ifdef __cplusplus
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment