From 8869adf1e811d894088dbb0f371edc23299005c8 Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones@trick.home.annexia.org>
Date: Mon, 21 Sep 2009 11:52:53 +0100
Subject: Remove guestfs_wait_ready (turn it into a no-op).

This commit changes guestfs_launch so that it both launches
the appliance and waits until it is ready (ie. the daemon communicates
back to us).

Since we removed the pretence that we could implement a low-level
asynchronous API, the need to call launch() followed by wait_ready()
has looked a bit silly.

Now guestfs_wait_ready() is basically a no-op.  It is left in the
API for backwards compatibility.  Any calls to guestfs_wait_ready()
can be removed from client code.
---
 fish/fish.c | 2 --
 1 file changed, 2 deletions(-)

(limited to 'fish')

diff --git a/fish/fish.c b/fish/fish.c
index 9215f4e8..f8c04836 100644
--- a/fish/fish.c
+++ b/fish/fish.c
@@ -81,8 +81,6 @@ launch (guestfs_h *_g)
   if (guestfs_is_config (g)) {
     if (guestfs_launch (g) == -1)
       return -1;
-    if (guestfs_wait_ready (g) == -1)
-      return -1;
   }
   return 0;
 }
-- 
cgit