summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-08-02 17:21:47 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-08-02 17:21:47 +0100
commit863168467f14e33407c4bf9c7f790bcd4911aea3 (patch)
tree85742a492a5fda865939294fa3d998b46cf37783 /java
parentb3d0cc0588845d3cad3fd67943d93e1bd87b1700 (diff)
downloadlibguestfs-863168467f14e33407c4bf9c7f790bcd4911aea3.tar.gz
libguestfs-863168467f14e33407c4bf9c7f790bcd4911aea3.tar.xz
libguestfs-863168467f14e33407c4bf9c7f790bcd4911aea3.zip
examples: Use add_drive_opts function in examples.
In libguestfs 1.20, you will be able to use 'add_drive' instead of 'add_drive_opts' (except in the C bindings). However until libguestfs 1.20 is the minimum stable version people will still be using old versions where you have to use 'add_drive_opts'. This makes the examples confusing. Therefore continue to use 'add_drive_opts' in the examples for now.
Diffstat (limited to 'java')
-rw-r--r--java/examples/CreateDisk.java2
-rw-r--r--java/examples/InspectVM.java2
-rw-r--r--java/examples/guestfs-java.pod2
3 files changed, 3 insertions, 3 deletions
diff --git a/java/examples/CreateDisk.java b/java/examples/CreateDisk.java
index 7eecf9e4..381fae1f 100644
--- a/java/examples/CreateDisk.java
+++ b/java/examples/CreateDisk.java
@@ -29,7 +29,7 @@ public class CreateDisk
put ("readonly", Boolean.FALSE);
}
};
- g.add_drive (output, optargs);
+ g.add_drive_opts (output, optargs);
// Run the libguestfs back-end.
g.launch ();
diff --git a/java/examples/InspectVM.java b/java/examples/InspectVM.java
index 1feadbe5..d92aa70f 100644
--- a/java/examples/InspectVM.java
+++ b/java/examples/InspectVM.java
@@ -35,7 +35,7 @@ public class InspectVM
}
};
- g.add_drive (disk, optargs);
+ g.add_drive_opts (disk, optargs);
// Run the libguestfs back-end.
g.launch ();
diff --git a/java/examples/guestfs-java.pod b/java/examples/guestfs-java.pod
index f7b1e7a0..482539bd 100644
--- a/java/examples/guestfs-java.pod
+++ b/java/examples/guestfs-java.pod
@@ -9,7 +9,7 @@ guestfs-java - How to use libguestfs from Java
import com.redhat.et.libguestfs.*;
GuestFS g = new GuestFS ();
- g.add_drive ("disk.img");
+ g.add_drive_opts ("disk.img");
g.launch ();
=head1 DESCRIPTION