From: Oliver Kurth Date: Fri, 26 Oct 2018 17:44:58 +0000 (-0700) Subject: Common header file change not directly applicable to open-vm-tools X-Git-Tag: stable-11.0.0~368 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88adffa22be7f8212a8f18f43ede7d71b163c6d5;p=thirdparty%2Fopen-vm-tools.git Common header file change not directly applicable to open-vm-tools [ghi messages over MKSControl] Add a new return type for UI -> MKS message. So that the MKS side can send utf8 string error message to the UI side. --- diff --git a/open-vm-tools/lib/include/ghIntegrationCommon.h b/open-vm-tools/lib/include/ghIntegrationCommon.h index 07045e635..1d5a900e3 100644 --- a/open-vm-tools/lib/include/ghIntegrationCommon.h +++ b/open-vm-tools/lib/include/ghIntegrationCommon.h @@ -48,14 +48,15 @@ #define GHI_CHANNEL_MAX 4 typedef uint32 GHIChannelType; -#define GHI_REQUEST_SUCCESS_OK 0 // Guest returns OK. -#define GHI_REQUEST_SUCCESS_ERROR 1 // Guest returns ERROR. -#define GHI_REQUEST_GUEST_RPC_FAILED 2 // Not sent to guest - // or guest failed to return, - // including timeout. -#define GHI_REQUEST_GENERAL_ERROR 3 // General error, can be any - // situation except - // MKSCONTROL_GHI_REQUEST_SUCCESS_OK. +#define GHI_REQUEST_SUCCESS_OK 0 // Guest received the message and returned OK. +#define GHI_REQUEST_SUCCESS_ERROR 1 // Guest received the message but returned ERROR. +#define GHI_REQUEST_GUEST_RPC_FAILED 2 // Not sent to guest + // or guest failed to return, + // including timeout. +#define GHI_REQUEST_GENERAL_ERROR 3 // General error, can be guest error + // or prc error. +#define GHI_REQUEST_FAILED_WITH_UTF8_MESSAGE 4 // Failed and with utf8 error message returned. + typedef uint32 GHIRequestResult; #define GHI_GUEST_CHANNEL_BITS(channel) ((channel) << 24)