[libvirt] [PATCH 3/6 V4] inject-nmi: Implementing the public API
Eric Blake
eblake at redhat.com
Tue May 10 17:43:35 UTC 2011
On 05/10/2011 02:26 AM, Lai Jiangshan wrote:
> ---
> src/libvirt.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 44 insertions(+), 0 deletions(-)
>
> diff --git a/src/libvirt.c b/src/libvirt.c
> index abacf85..f468b61 100644
> --- a/src/libvirt.c
> +++ b/src/libvirt.c
> @@ -5217,6 +5217,50 @@ error:
> }
>
> /**
> + * virDomainInjectNMI:
> + * @domain: pointer to domain object, or NULL for Domain0
> + * @flags: the flags for controlling behaviours
s/behaviours/behavior, pass 0 for now/
> + if (!VIR_IS_CONNECTED_DOMAIN(domain)) {
> + virLibDomainError(VIR_ERR_INVALID_DOMAIN, __FUNCTION__);
> + virDispatchError(NULL);
> + return (-1);
No need for extra () on return.
--
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/20110510/808786da/attachment-0001.sig>
More information about the libvir-list
mailing list