generator: Rename 'add_drive_opts' API to 'add_drive'.

By using the once_had_no_optargs flag, this change is backwards
compatible for callers (except Haskell, PHP and GObject as discussed
in earlier commit).
This commit is contained in:
Richard W.M. Jones
2012-07-14 12:42:24 +01:00
parent b48ae2eadf
commit 7486fc6f43
47 changed files with 93 additions and 115 deletions

View File

@@ -8,7 +8,7 @@ guestfs-python - How to use libguestfs from Python
import guestfs
g = guestfs.GuestFS ()
g.add_drive_opts ("disk.img", format="raw", readonly=1)
g.add_drive ("disk.img", format="raw", readonly=1)
g.launch ()
=head1 DESCRIPTION