Re: [PATCHv2 9/4] virsh: declare more common functions

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

 



On 08/20/2012 05:30 PM, Eric Blake wrote:
> In preparation for splitting virsh-interface.c, I found these
> functions need to be declared in virsh.h, as well as one that
> belongs more properly in virsh-domain.h.  Also, since we
> use the VSH_BY* flags in more than one function, I improved
> how they are used.
>
> * tools/virsh.h	(vshNameSorter, vshCmdHasOption): Declare.
> (VSH_BYID): Turn into enum.
> (vshCommandOptDomainBy): Move...
> * tools/virsh-domain.h): ...here.
> * tools/virsh.c: (vshNameSorter): Export.
> (cmd_has_option): Rename...
> (vshCmdHasOption): ...and export.
> (vshCommandOptDomainBy): Move...
> * tools/virsh-domain.c (vshCommandOptDomainBy): ...here, adjust
> signature, and check flags.
> * tools/virsh-network.c (vshCommandOptNetworkBy): Update callers.
> * tools/virsh-nwfilter.c (vshCommandOptNWFilterBy): Likewise.
> * tools/virsh-secret.c (vshCommandOptSecret): Likewise.
> * tools/virsh-domain-monitor.c (includes): Likewise.
> * tools/virsh-host.c (includes): Likewise.
> ---
>
> v2: keep VSH_BYID in virsh.h after all, but convert to enum and add
> virCheckFlags sanity checking

Okay, sure. ACK to this version instead.

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