summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorRichard Jones <rjones@trick.home.annexia.org>2009-09-21 11:52:53 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-09-21 12:01:51 +0100
commit8869adf1e811d894088dbb0f371edc23299005c8 (patch)
tree6c0229f90c81f03f6e989cdd57e20b114a437d41 /examples
parent62b322872543c2ec069ac4fb0103ab758f587cef (diff)
downloadlibguestfs-8869adf1e811d894088dbb0f371edc23299005c8.tar.gz
libguestfs-8869adf1e811d894088dbb0f371edc23299005c8.tar.xz
libguestfs-8869adf1e811d894088dbb0f371edc23299005c8.zip
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.
Diffstat (limited to 'examples')
-rw-r--r--examples/hello.c1
-rw-r--r--examples/to-xml.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/examples/hello.c b/examples/hello.c
index 1c12f8ea..8b36ed44 100644
--- a/examples/hello.c
+++ b/examples/hello.c
@@ -27,7 +27,6 @@ main (int argc, char *argv[])
if (guestfs_add_drive (g, argv[1]) == -1) exit (1);
if (guestfs_launch (g) == -1) exit (1);
- if (guestfs_wait_ready (g) == -1) exit (1);
if (guestfs_mount (g, argv[2], "/") == -1) exit (1);
diff --git a/examples/to-xml.c b/examples/to-xml.c
index 2cf3de89..6d0a1dfb 100644
--- a/examples/to-xml.c
+++ b/examples/to-xml.c
@@ -51,7 +51,6 @@ main (int argc, char *argv[])
CALL (guestfs_add_drive (g, argv[i]), -1);
CALL (guestfs_launch (g), -1);
- CALL (guestfs_wait_ready (g), -1);
printf ("<guestfs-system>\n");