mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
java: Generate overloaded non-optargs method for each optargs method.
For example the existing method:
public void mkfs_opts (String fstype, String device, Map<..> optargs);
is now accompanied by this overloaded method which is a simple wrapper:
public void mkfs_opts (String fstype, String device)
throws LibGuestFSException
{
mkfs_opts (fstype, device, null);
}
This commit is contained in:
@@ -9,7 +9,7 @@ guestfs-java - How to use libguestfs from Java
|
||||
import com.redhat.et.libguestfs.*;
|
||||
|
||||
GuestFS g = new GuestFS ();
|
||||
g.add_drive_opts ("disk.img", null);
|
||||
g.add_drive_opts ("disk.img");
|
||||
g.launch ();
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
Reference in New Issue
Block a user