Re: [PATCH 10/24] maint: improve VIR_ERR_INVALID_CONN usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 12/28/2013 11:11 AM, Eric Blake wrote:
> The datatype.c object checks could result in a message like:
> 
> error: invalid connection pointer in no connection
> 
> This consolidates all clients of this message to have uniform contents:
> 
> error: invalid connection pointer in someFunc
> 
> * src/datatypes.h (virCheckConnectReturn)
> (virCheckConnectGoto): New macros.
> * src/datatypes.c: Use new macro.
> * src/libvirt-qemu.c (virDomainQemuAttach): Likewise.
> (virLibConnError): Delete unused macro.
> * src/libvirt-lxc.c (virLibConnError): Likewise.
> * src/libvirt.c: Use new macro throughout.
> * docs/api_extension.html.in: Modernize documentation.
> 
> Signed-off-by: Eric Blake <eblake@xxxxxxxxxx>
> ---
>  docs/api_extension.html.in |   7 +-
>  src/datatypes.c            |  86 ++---
>  src/datatypes.h            |  19 ++
>  src/libvirt-lxc.c          |   4 -
>  src/libvirt-qemu.c         |  11 +-
>  src/libvirt.c              | 783 +++++++--------------------------------------
>  6 files changed, 178 insertions(+), 732 deletions(-)
> 

ACK

John

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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]