Added reserved elements to rdpClientContext

This is necessary to provide a stable ABI for future extensions.
(this struct is used as extension of rdpContext)
This commit is contained in:
akallabeth 2022-01-20 11:31:06 +01:00 committed by akallabeth
parent db00082974
commit 66338e4c1f
1 changed files with 9 additions and 3 deletions

View File

@ -81,14 +81,20 @@ extern "C"
struct rdp_client_context
{
rdpContext context;
HANDLE thread;
ALIGN64 HANDLE thread; /**< (offset 0) */
#if defined(CHANNEL_AINPUT_CLIENT)
AInputClientContext* ainput;
ALIGN64 AInputClientContext* ainput; /**< (offset 1) */
#else
UINT64 reserved1;
#endif
#if defined(CHANNEL_RDPEI_CLIENT)
RdpeiClientContext* rdpei;
ALIGN64 RdpeiClientContext* rdpei; /**< (offset 2) */
#else
UINT64 reserved2;
#endif
UINT64 reserved[128 - 3]; /**< (offset 3) */
};
/* Common client functions */