Better than hardcoding the same string in several different places.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
}
-/*
- *-----------------------------------------------------------------------------
- *
- * 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");
-}
-
-
/*
*-----------------------------------------------------------------------------
*
Bool
GuestApp_IsDiskShrinkCapable(void);
-Bool
-GuestApp_DiskShrink(void);
-
void
GuestApp_GetPos(int16 *x, // OUT
int16 *y); // OUT
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));