summaryrefslogtreecommitdiffstats
path: root/php
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-14 12:42:24 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-14 12:42:24 +0100
commit7486fc6f43bdb22a989cc039e361afc4c0658d52 (patch)
treeeebbe3e0bb3ec8c79a1a60961f1d7c2ea96a28e1 /php
parentb48ae2eadf43315159f2174c8fd35b05ede14c0f (diff)
downloadlibguestfs-7486fc6f43bdb22a989cc039e361afc4c0658d52.tar.gz
libguestfs-7486fc6f43bdb22a989cc039e361afc4c0658d52.tar.xz
libguestfs-7486fc6f43bdb22a989cc039e361afc4c0658d52.zip
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).
Diffstat (limited to 'php')
-rw-r--r--php/extension/guestfs_php_003.phpt16
1 files changed, 8 insertions, 8 deletions
diff --git a/php/extension/guestfs_php_003.phpt b/php/extension/guestfs_php_003.phpt
index 08e53a37..2624a293 100644
--- a/php/extension/guestfs_php_003.phpt
+++ b/php/extension/guestfs_php_003.phpt
@@ -11,20 +11,20 @@ if ($g == false) {
echo ("Failed to create guestfs_php handle.\n");
exit;
}
-if (guestfs_add_drive_opts ($g, "/dev/null") == false) {
- echo ("Failed add_drive_opts, no optional arguments.\n");
+if (guestfs_add_drive ($g, "/dev/null") == false) {
+ echo ("Failed add_drive, no optional arguments.\n");
exit;
}
-if (guestfs_add_drive_opts ($g, "/dev/null", 0) == false) {
- echo ("Failed add_drive_opts, one optional argument.\n");
+if (guestfs_add_drive ($g, "/dev/null", 0) == false) {
+ echo ("Failed add_drive, one optional argument.\n");
exit;
}
-if (guestfs_add_drive_opts ($g, "/dev/null", 1) == false) {
- echo ("Failed add_drive_opts, one optional argument.\n");
+if (guestfs_add_drive ($g, "/dev/null", 1) == false) {
+ echo ("Failed add_drive, one optional argument.\n");
exit;
}
-if (guestfs_add_drive_opts ($g, "/dev/null", 1, "qcow2") == false) {
- echo ("Failed add_drive_opts, two optional arguments.\n");
+if (guestfs_add_drive ($g, "/dev/null", 1, "qcow2") == false) {
+ echo ("Failed add_drive, two optional arguments.\n");
exit;
}
echo ("Completed tests OK.\n");