]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Internal branch sync. Included in this change:
authorVMware, Inc <>
Mon, 26 Jul 2010 19:16:48 +0000 (12:16 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 26 Jul 2010 19:16:48 +0000 (12:16 -0700)
. bump tools version.

. changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/guestRpc/unity.x
open-vm-tools/lib/include/vm_tools_version.h
open-vm-tools/lib/unity/unity.c
open-vm-tools/lib/unity/unityPlatform.h
open-vm-tools/lib/unity/unityPlatformX11.c

index f412e481c8dd7af232ae24c4c5c5c1dfccec8452..fd205b8ace9eca014776bd3de726986c24d0ba27 100644 (file)
@@ -40,7 +40,8 @@ enum UnityOptionsVersion {
 enum UnityFeatures {
    UNITY_ADD_HIDDEN_WINDOWS_TO_TRACKER = 1,
    UNITY_INTERLOCK_MINIMIZE_OPERATION = 2,
-   UNITY_SEND_WINDOW_CONTENTS = 4
+   UNITY_SEND_WINDOW_CONTENTS = 4,
+   UNITY_DISABLE_COMPOSITING_IN_GUEST = 8
 };
 
 /*
index 90d89b88ef6e47a50afc780ec7052966c61646ad..ef224277ac22cd6144360e427fc279e37ecdc0af 100644 (file)
@@ -1004,9 +1004,16 @@ typedef uint32 ToolsVersion;
 #define   TOOLS_VERSION_HOSTED10_UPDATE1_V_MNR  4
 #define   TOOLS_VERSION_HOSTED10_UPDATE1_V_BASE 3
 
-#define   TOOLS_VERSION_CURRENT        TOOLS_VERSION_HOSTED10_UPDATE1
-#define   TOOLS_VERSION_CURRENT_STR    TOOLS_VERSION_TO_STR(TOOLS_VERSION_HOSTED10_UPDATE1)
-#define   TOOLS_VERSION_CURRENT_CSV    TOOLS_VERSION_TO_CSV(TOOLS_VERSION_HOSTED10_UPDATE1)
+#ifndef RC_INVOKED
+#define   TOOLS_VERSION_HOSTED10_UPDATE2 TOOLS_VERSION_TO_UINT(TOOLS_VERSION_HOSTED10_UPDATE2_V)
+#endif /* RC_INVOKED */
+#define   TOOLS_VERSION_HOSTED10_UPDATE2_V_MJR  8
+#define   TOOLS_VERSION_HOSTED10_UPDATE2_V_MNR  4
+#define   TOOLS_VERSION_HOSTED10_UPDATE2_V_BASE 4
+
+#define   TOOLS_VERSION_CURRENT        TOOLS_VERSION_HOSTED10_UPDATE2
+#define   TOOLS_VERSION_CURRENT_STR    TOOLS_VERSION_TO_STR(TOOLS_VERSION_HOSTED10_UPDATE2)
+#define   TOOLS_VERSION_CURRENT_CSV    TOOLS_VERSION_TO_CSV(TOOLS_VERSION_HOSTED10_UPDATE2)
 
 /*
  * The extended Tools version is the current Tools version with the
index c520f748a7a4c5d7dbae82b3f1778d26a4673d97..f1cf4bd3e702925381ab51f87b964bed1f511efa 100644 (file)
@@ -82,6 +82,17 @@ static void UnitySetAddHiddenWindows(Bool enabled);
 static void UnitySetInterlockMinimizeOperation(Bool enabled);
 static void UnitySetSendWindowContents(Bool enabled);
 static void FireEnterUnitySignal(ToolsAppCtx *ctx, gboolean entered);
+static void UnitySetDisableCompositing(Bool disabled);
+
+/*
+ * Wrapper function for the "unity.set.options" RPC.
+ */
+RpcInRet UnityTcloSetUnityOptions(RpcInData *data);
+
+/*
+ * Wrapper function for the "unity.window.contents.request" RPC.
+ */
+RpcInRet UnityTcloRequestWindowContents(RpcInData *data);
 
 /* Sends the unity.window.contents.start RPC to the host. */
 Bool UnitySendWindowContentsStart(UnityWindowId window,
@@ -148,6 +159,7 @@ static UnityFeatureSetter unityFeatureTable[] = {
    { UNITY_ADD_HIDDEN_WINDOWS_TO_TRACKER, UnitySetAddHiddenWindows },
    { UNITY_INTERLOCK_MINIMIZE_OPERATION, UnitySetInterlockMinimizeOperation },
    { UNITY_SEND_WINDOW_CONTENTS, UnitySetSendWindowContents },
+   { UNITY_DISABLE_COMPOSITING_IN_GUEST, UnitySetDisableCompositing },
    /* Add more Unity Feature Setters above this. */
    {0, NULL}
 };
@@ -2620,6 +2632,42 @@ UnitySetSendWindowContents(Bool enabled)
 }
 
 
+/*
+ *----------------------------------------------------------------------------
+ *
+ * UnitySetDisableCompositing --
+ *
+ *     Set (or unset) whether the compositing features of the guest window
+ *     manager should be disabled.
+ *
+ * Results:
+ *     None.
+ *
+ * Side effects:
+ *     None.
+ *
+ *----------------------------------------------------------------------------
+ */
+
+void
+UnitySetDisableCompositing(Bool disabled)
+{
+   /*
+    * Does the host wish us to disable the compositing features of the guest window
+    * manager. The flag only takes effect on subsequent 'enter unity' calls where
+    * it is checked and used to disable compositing in the platform layer.
+    */
+   if (disabled) {
+      Debug("%s: Window compositing will be disabled in the guest window manager.\n",
+            __FUNCTION__);
+   } else {
+      Debug("%s: Window compositing will be enabled in the guest window manager.\n",
+            __FUNCTION__);
+   }
+   UnityPlatformSetDisableCompositing(unity.up, disabled);
+}
+
+
 /*
  *------------------------------------------------------------------------------
  *
index 2a36bd3a6c61b2536bd0aed28caa18c18fd2794e..377d973ab3f72052723e701112938f4958c86539 100644 (file)
@@ -172,6 +172,8 @@ Bool UnitySendWindowContents(UnityWindowId windowID,
                              const char *imageData,
                              uint32 imageLength);
 
+void UnityPlatformSetDisableCompositing(UnityPlatform *up, Bool disabled);
+
 #ifdef __cplusplus
 };
 #endif // __cplusplus
index 1e024d2c3de7aee71c126ef5b3c1bb20f404abea..b191e05f74197fbc5419ffce94d453d95ab9d686 100644 (file)
@@ -3200,6 +3200,30 @@ UnityPlatformWillRemoveWindow(UnityPlatform *up,      // IN
 }
 
 
+/*
+ *-----------------------------------------------------------------------------
+ *
+ * UnityPlatformSetDisableCompositing --
+ *
+ *     Disable (or Enable) the compositing features of the window manager the
+ *     next time Unity starts.
+ *
+ * Results:
+ *     None.
+ *
+ * Side effects:
+ *     None.
+ *
+ *------------------------------------------------------------------------------
+ */
+
+void UnityPlatformSetDisableCompositing(UnityPlatform *up,      // IN
+                                        Bool disabled)          // IN
+{
+   ASSERT(up);
+}
+
+
 /*
  ******************************************************************************
  * Begin file-scope functions.