[libvirt] [libvirt-glib] Add gvir_xml_set_error

Christophe Fergeau cfergeau at redhat.com
Mon Dec 5 11:47:00 UTC 2011


On Mon, Dec 05, 2011 at 11:27:04AM +0000, Daniel P. Berrange wrote:
> On Fri, Dec 02, 2011 at 06:00:15PM +0100, Christophe Fergeau wrote:
> > This mirrors g_set_error, but uses gvir_xml_error_new. The main
> > benefit of using gvxr_xml_set_error over gvir_xml_error_new is that
> > it handles NULL GError **.
> > ---
> >  libvirt-gconfig/libvirt-gconfig-helpers-private.h |    2 +
> >  libvirt-gconfig/libvirt-gconfig-helpers.c         |   40 ++++++++++++++++-----
> >  libvirt-gconfig/libvirt-gconfig-object.c          |   32 ++++++----------
> >  3 files changed, 45 insertions(+), 29 deletions(-)
> 
> I have almost exactly this code in a patch of my own,

 Ah :((
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111205/b3b33642/attachment-0001.sig>


More information about the libvir-list mailing list