Suppress errors to stderr and use thread-local virErrorPtr
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 17 Mar 2015 12:51:50 +0000 (12:51 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 17 Mar 2015 12:51:50 +0000 (12:51 +0000)
commit68fae1ec3de46fd9eec88fb7c1894ea7ed85ccc9
tree844afd7fefd97ee62e15bc612e49cdd93b4fc111
parent7483c7454538584a3dbe4582096f058e6e877df6
Suppress errors to stderr and use thread-local virErrorPtr

This allows us to capture errors that happen during virConnectOpen,
without spewing error messages on stderr.

The patch is rather large, only because we don't need to pass the
virConnectPtr argument to CHECK_ERROR/_raise_virterror any longer.
libvirt/generator.pl
libvirt/libvirt_c.c
libvirt/libvirt_c_epilogue.c
libvirt/libvirt_c_oneoffs.c
libvirt/libvirt_c_prologue.c