summaryrefslogtreecommitdiffstats
path: root/ruby
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-13 13:42:40 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-14 11:13:49 +0100
commitb48ae2eadf43315159f2174c8fd35b05ede14c0f (patch)
treee32e73caf222502bf54b783e507042d7c4d1f993 /ruby
parent98757e151ae8ad8d334f028690abcc85b91c73e5 (diff)
downloadlibguestfs-b48ae2eadf43315159f2174c8fd35b05ede14c0f.tar.gz
libguestfs-b48ae2eadf43315159f2174c8fd35b05ede14c0f.tar.xz
libguestfs-b48ae2eadf43315159f2174c8fd35b05ede14c0f.zip
generator: In non-C bindings, generate '*_opts' alias.
In C, a function called 'func' which has once_had_no_optargs=true will (because of the previous commit) generate 'func_opts' and a backwards-compatibility function called 'func'. This commit changes some of the non-C bindings so that they also generate 'func_opts' which is merely a wrapper that calls 'func'. This avoids incompatibility when we rename 'mkfs_opts' etc back to plain 'mkfs', and it also makes it easier to translate between other language bindings and C code. NB: Some bindings do not include aliases: PHP: There's no way to easily alias methods in PHP < 5.3, and we can't assume everyone has this minimum version. GObject: Very complex to add aliases, but we should probably do this at some point. Haskell: No support for optargs in these bindings. Unfortunately this means that we can no longer bind 'Guestfs.add_drive' (since it will be changed to add optional arguments) making the Haskell bindings even less useful than they were already.
Diffstat (limited to 'ruby')
0 files changed, 0 insertions, 0 deletions