Re: [PATCH 06/12] qemu: Move qemuNetworkIfaceConnect to qemu_interface.c and rename

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

 




On 02/15/2016 05:38 PM, Laine Stump wrote:
> On 02/15/2016 02:37 PM, John Ferlan wrote:
>> Move the misplaced function from qemu_command.c to qemu_interface.c
>> since it's closer in functionality there and had less to do with building
>> the command line.
>>
>> Rename function to qemuInterfaceNetworkConnect and modify callers.
> 
> This function really is connecting to a bridge (either one that is part
> of a libvirt network, or a host bridge defined outside libvirt), so I
> would suggest qemuInterfaceBridgeConnect(). (I had considered suggesting
> qemuInterfaceTapConnect (and the other one
> qemuInterfaceMacvlanConnect()), but I think I like naming them *Bridge*
> and *Direct* instead).
> 
> ACK with the name change.

OK - done

> 
> (Of course in the end both functions should end up being called by some
> function called qemuInterfaceConnect(), and that function will be the
> only one called from qemu_command.c. No sense in going wild right out of
> the chute though, eh? :-)

Baby steps... It's the new normal.

Although I'll keep this in mind... Could be a challenge due to
qemu_hotplug usage and calling sequence, but we'll see.

John

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