From: Oliver Kurth Date: Wed, 29 Aug 2018 20:29:43 +0000 (-0700) Subject: Common header file change not directly applicable to open-vm-tools. X-Git-Tag: stable-11.0.0~450 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49c74fb3a37aa1fd973f72e078ee9a10c7199fc9;p=thirdparty%2Fopen-vm-tools.git Common header file change not directly applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/ghIntegrationCommon.h b/open-vm-tools/lib/include/ghIntegrationCommon.h index 3ca4b8f4a..07045e635 100644 --- a/open-vm-tools/lib/include/ghIntegrationCommon.h +++ b/open-vm-tools/lib/include/ghIntegrationCommon.h @@ -58,8 +58,23 @@ typedef uint32 GHIChannelType; // MKSCONTROL_GHI_REQUEST_SUCCESS_OK. typedef uint32 GHIRequestResult; +#define GHI_GUEST_CHANNEL_BITS(channel) ((channel) << 24) +#define GHI_GUEST_GET_MSG_CHANNEL(msg) (((msg) >> 24) & 0xff) +typedef uint32 GHIGuestToHostMessageType; + + +/* + * MKS->UI messages over GHI_CHANNEL_VIEW_REMOTE_SHARED_FOLDER. + * + * Only for View product. + */ +#define GHI_CHANNEL_VIEW_REMOTE_SHARED_FOLDER_BITS \ + GHI_GUEST_CHANNEL_BITS(GHI_CHANNEL_VIEW_REMOTE_SHARED_FOLDER) +#define GHI_GUEST_RDPDR_CAP (GHI_CHANNEL_VIEW_REMOTE_SHARED_FOLDER_BITS | 0x000001) + + /* - * Message names - DnD. + * UI->MKS Messages over GHI_CHANNEL_DND. */ #define GHI_DND_DND_HOST_GUEST_CMD "ghi.dnd.dnd.hostguest" #define GHI_DND_COPYPASTE_HOST_GUEST_CMD "ghi.dnd.copypaste.hostguest" @@ -71,10 +86,23 @@ typedef uint32 GHIRequestResult; #define GHI_DND_HOST_ADDBLOCK_CMD "ghi.dnd.host.addblock" #define GHI_DND_HOST_REMOVEBLOCK_CMD "ghi.dnd.host.removeblock" +/* + * Results of UI->MKS Messages over GHI_CHANNEL_DND. + */ #define GHI_DND_GUEST_RET_MAX_LEN 64 #define GHI_DND_GUEST_RET_ERROR "error" #define GHI_DND_GUEST_RET_INPROGRESS "inProgress" #define GHI_DND_GUEST_RET_DONE "done" +/* + * MKS->UI messages over GHI_CHANNEL_DND. + */ +#define GHI_CHANNEL_DND_BITS GHI_GUEST_CHANNEL_BITS(GHI_CHANNEL_DND) +#define GHI_GUEST_DND_DND_CMD (GHI_CHANNEL_DND_BITS | 0x000001) +#define GHI_GUEST_DND_COPYPASTE_CMD (GHI_CHANNEL_DND_BITS | 0x000002) +#define GHI_GUEST_DND_NOTIFY_BLOCKROOT (GHI_CHANNEL_DND_BITS | 0x000003) +#define GHI_GUEST_DND_TRANSFERFILES_PROGRESS (GHI_CHANNEL_DND_BITS | 0x000004) +#define GHI_GUEST_DND_GETFILE_OVERWRITE_QUESTION (GHI_CHANNEL_DND_BITS | 0x000005) + #endif // ifndef _GHINTEGRATIONCOMMON_H_