[libvirt] [PATCH v2 1/4] qemu: refactor qemuDomainMachine* functions

Pavel Hrdina phrdina at redhat.com
Tue Apr 18 11:57:30 UTC 2017


On Tue, Apr 18, 2017 at 01:45:31PM +0200, Peter Krempa wrote:
> On Tue, Apr 18, 2017 at 13:37:26 +0200, Pavel Hrdina wrote:
> > Introduce new wrapper functions without *Machine* in the function
> > name that take the whole virDomainDef structure as argument and
> > call the existing functions with *Machine* in the function name.
> > 
> > Change the arguments of existing functions to *machine* and *arch*
> > because they don't need the whole virDomainDef structure and they
> > could be used in places where we don't have virDomainDef.
> > 
> > Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> > ---
> > 
> > New in v2:
> >     - add a wrappers that extract required data from virDomainDef structure
> 
> This should have been split into the rename patch and then into addition
> of the new wrappers. Calling this "refactor" is a convenient way to
> avoid doing that.

And I almost got away with it :).

> 
> ACK regardless.

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170418/78e51f2a/attachment-0001.sig>


More information about the libvir-list mailing list