diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-18 15:31:53 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-18 15:31:53 +0100 |
commit | ef499de8946cf4b8120ef7917b2e5d7f9115041f (patch) | |
tree | 8972aedf961b05a1d836ab15dcf946e837d12b42 /perl/lib | |
parent | ad1d84a142169baaed293de71fb9430178d9f999 (diff) | |
download | libguestfs-ef499de8946cf4b8120ef7917b2e5d7f9115041f.tar.gz libguestfs-ef499de8946cf4b8120ef7917b2e5d7f9115041f.tar.xz libguestfs-ef499de8946cf4b8120ef7917b2e5d7f9115041f.zip |
Separate out the high-level API actions.
- Split out the high-level API actions so that they are in a
separate file, and use the defined guestfs C API, instead of
fiddling around with internal structures.
Diffstat (limited to 'perl/lib')
-rw-r--r-- | perl/lib/Sys/Guestfs.pm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm index 28d2b0fa..71223145 100644 --- a/perl/lib/Sys/Guestfs.pm +++ b/perl/lib/Sys/Guestfs.pm @@ -417,10 +417,31 @@ Return the current search path. This is always non-NULL. If it wasn't set already, then this will return the default path. +=item $state = $h->get_state (); + +This returns the current state as an opaque integer. This is +only useful for printing debug and internal error messages. + +For more information on states, see L<guestfs(3)>. + =item $verbose = $h->get_verbose (); This returns the verbose messages flag. +=item $busy = $h->is_busy (); + +This returns true iff this handle is busy processing a command +(in the C<BUSY> state). + +For more information on states, see L<guestfs(3)>. + +=item $config = $h->is_config (); + +This returns true iff this handle is being configured +(in the C<CONFIG> state). + +For more information on states, see L<guestfs(3)>. + =item $dirflag = $h->is_dir ($path); This returns C<true> if and only if there is a directory @@ -437,6 +458,20 @@ other objects like directories. See also C<$h-E<gt>stat>. +=item $launching = $h->is_launching (); + +This returns true iff this handle is launching the subprocess +(in the C<LAUNCHING> state). + +For more information on states, see L<guestfs(3)>. + +=item $ready = $h->is_ready (); + +This returns true iff this handle is ready to accept commands +(in the C<READY> state). + +For more information on states, see L<guestfs(3)>. + =item $h->kill_subprocess (); This kills the qemu subprocess. You should never need to call this. |