[libvirt] [PATCH 3/8] virDomainGetState public API implementation
Eric Blake
eblake at redhat.com
Wed May 4 17:10:49 UTC 2011
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 eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110504/77aa6d05/attachment-0001.sig>
More information about the libvir-list
mailing list