On 05/04/2011 08:45 AM, Jiri Denemark wrote:
> ---
>  src/libvirt.c |   47 +++++++++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 47 insertions(+), 0 deletions(-)
> 
> diff --git a/src/libvirt.c b/src/libvirt.c
> index e74e977..5cd20ce 100644
> --- a/src/libvirt.c
> +++ b/src/libvirt.c
> @@ -3173,6 +3173,53 @@ error:
>  }
>  
>  /**
> + * virDomainGetState:
> + * @domain: a domain object
> + * @state: returned state of the domain (one of virDomainState)
> + * @reason: returned reason which led to @state (one of virDomain*Reason
> + * corresponding to the current state); it is allowed to be NULL
> + *
> + * Extract domain state. Each state can be accompanied with a reason (if 
> known)
> + * which led to the state.
> + *
> + * Returns 0 in case of success and -1 in case of failure.
> + */
> +int
> +virDomainGetState(virDomainPtr domain, int *state, int *reason)

Obvious fallout from signature changes in patch 1.

But the documentation looks good for what we have so far.

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to