]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common header file change not directly applicable to open-vm-tools
authorOliver Kurth <okurth@vmware.com>
Fri, 26 Oct 2018 17:44:58 +0000 (10:44 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 26 Oct 2018 17:44:58 +0000 (10:44 -0700)
[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.

open-vm-tools/lib/include/ghIntegrationCommon.h

index 07045e635cbf8ba5ae5ea25bd8d6cc7def288af4..1d5a900e3d26dc45456962f841f1cf5da49215a8 100644 (file)
 #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)