qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 7/7] spice: Call qemu spice functions indirectly


From: Gerd Hoffmann
Subject: Re: [PATCH 7/7] spice: Call qemu spice functions indirectly
Date: Tue, 4 Aug 2020 12:25:26 +0200

> >  #ifdef CONFIG_SPICE
> > +SpiceInfo *qmp_query_spice(Error **errp)
> > +{
> > +    if (!using_spice) {
> > +        return NULL;
> > +    }
> > +    return qemu_spice.query(errp);
> > +}
> > +
> 
> It's a bit weird to put the qmp function in the hmp file.

Yes, it should go to qmp-cmds.c instead.

The #ifdef CONFIG_SPICE should not be needed.  Also the !using_spice
case should throw an error.  Or, even better, just have a
qemu_spice_query_stub() function throwing an error, then the
!using_spice check can be dropped.

take care,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]