]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Make code use new shared definitions from tclodefs.h.
authorVMware, Inc <>
Thu, 17 Jun 2010 21:06:14 +0000 (14:06 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Thu, 17 Jun 2010 21:06:14 +0000 (14:06 -0700)
Better than hardcoding the same string in several different places.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/guestApp/guestApp.c
open-vm-tools/lib/include/guestApp.h
open-vm-tools/toolbox/toolboxShrink.c

index 17778fb841257cda4b6664656cbb3114ecb6ec32..b81bddd37e989e6a3e1f34ef72095052254c2f70 100644 (file)
@@ -1228,28 +1228,6 @@ GuestApp_IsDiskShrinkEnabled(void) {
 }
 
 
-/*
- *-----------------------------------------------------------------------------
- *
- * GuestApp_DiskShrink --
- *
- *      Shrink disk
- *
- * Results:
- *      TRUE if the shrinking is successful
- *      FALSE if disk shrinking is not successful
- * Side effects:
- *     None
- *
- *-----------------------------------------------------------------------------
- */
-
-Bool
-GuestApp_DiskShrink(void) {
-   return RpcOut_sendOne(NULL, NULL, "disk.shrink");
-}
-
-
 /*
  *-----------------------------------------------------------------------------
  *
index 6307550454736935d2b481e9e0368bea37818948..8fbcb9d725ab50961311ad7e85a2d9d7107b6e4c 100644 (file)
@@ -122,9 +122,6 @@ GuestApp_IsDiskShrinkEnabled(void);
 Bool
 GuestApp_IsDiskShrinkCapable(void);
 
-Bool
-GuestApp_DiskShrink(void);
-
 void
 GuestApp_GetPos(int16 *x,  // OUT
                 int16 *y); // OUT
index 1d5dedef9e423a6a79a0fd10f01ce9db225fada1..568c8f6232b9487873668dcd3f17320ccb6356e4 100644 (file)
@@ -245,7 +245,7 @@ Shrink_OnShrinkClicked(GtkButton *btn,     // IN: unused
       if (disks_to_shrink > 0) {
          if (ToolsMain_YesNoBox("Shrink Disk",
                                 "Do you want to shrink the disk(s)?\n")) {
-            if (GuestApp_DiskShrink()) {
+            if (RpcOut_sendOne(NULL, NULL, DISK_SHRINK_CMD)) {
                ToolsMain_MsgBox("Information", "The shrink process has finished.");
             }
             gtk_clist_unselect_all(GTK_CLIST(shrinkList));