Re: [PATCH 02/10] virdbus: Add virDBusGetSessionBus helper

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

 



On Tue, Nov 27, 2012 at 01:48:51PM -0500, Eric Blake wrote:
> ----- Original Message -----
> > From: Alexander Larsson <alexl@xxxxxxxxxx>
> > 
> > This splits out some common code from virDBusGetSystemBus and
> > uses it to implement a new virDBusGetSessionBus helper.
> > ---
> >  src/libvirt_private.syms |  1 +
> >  src/util/virdbus.c       | 84
> >  ++++++++++++++++++++++++++++++++++++------------
> >  src/util/virdbus.h       |  1 +
> >  3 files changed, 66 insertions(+), 20 deletions(-)
> > 
> > diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
> > index 63e187a..8d649bf 100644
> > --- a/src/libvirt_private.syms
> > +++ b/src/libvirt_private.syms
> > @@ -1336,6 +1336,7 @@ virConsoleOpen;
> >  
> >  # virdbus.h
> >  virDBusGetSystemBus;
> > +virDBusGetSessionBus;
> 
> Sorting (although I see 4/10 touches this again, and it doesn't
> affect bisection, so I won't oppose this going in as-is)

I'll fix this while applying

> >  
> > -static void virDBusSystemBusInit(void)
> > +static DBusConnection *virDBusBusInit(DBusBusType type, DBusError
> > *dbuserr)
> 
> Long line; should this be:
> 
> static DBusConnection*
> virDBusBusInit(DBusBusType type, DBusError *dbuserr)

Yep, wil fix

> 
> > @@ -74,7 +83,7 @@ DBusConnection *virDBusGetSystemBus(void)
> >      if (!systembus) {
> >          virReportError(VIR_ERR_INTERNAL_ERROR,
> >                         _("Unable to get DBus system bus connection:
> >                         %s"),
> > -                       dbuserr.message ? dbuserr.message : "watch
> > setup failed");
> > +                       systemdbuserr.message ? systemdbuserr.message
> > : "watch setup failed");
> 
> Worth wrapping this to avoid long lines?

Ok


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
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]