Re: [PATCH] network: fix incorrect VIR_NETWORK_UPDATE_COMMAND_* values

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

 



On Wed, Sep 19, 2012 at 09:57:10AM -0400, Laine Stump wrote:
> These enums originally were put into the flags for virNetworkUpdate,
> and when they were moved into their own enum, the numbers weren't
> appropriately changed, causing the commands to start with value 2
> instead of 1. This causes problems for things like ENUM_IMPL, which
> wants a string for every value in the requested range, including those
> not used in the enum.
> ---
>  include/libvirt/libvirt.h.in | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
> index 84ac2d0..0f67cbb 100644
> --- a/include/libvirt/libvirt.h.in
> +++ b/include/libvirt/libvirt.h.in
> @@ -2356,10 +2356,10 @@ int                     virNetworkUndefine      (virNetworkPtr network);
>   */
>  typedef enum {
>      VIR_NETWORK_UPDATE_COMMAND_NONE      = 0, /* (invalid) */
> -    VIR_NETWORK_UPDATE_COMMAND_MODIFY    = 2, /* modify an existing element */
> -    VIR_NETWORK_UPDATE_COMMAND_DELETE    = 3, /* delete an existing element */
> -    VIR_NETWORK_UPDATE_COMMAND_ADD_LAST  = 4, /* add an element at end of list */
> -    VIR_NETWORK_UPDATE_COMMAND_ADD_FIRST = 5, /* add an element at start of list */
> +    VIR_NETWORK_UPDATE_COMMAND_MODIFY    = 1, /* modify an existing element */
> +    VIR_NETWORK_UPDATE_COMMAND_DELETE    = 2, /* delete an existing element */
> +    VIR_NETWORK_UPDATE_COMMAND_ADD_LAST  = 3, /* add an element at end of list */
> +    VIR_NETWORK_UPDATE_COMMAND_ADD_FIRST = 4, /* add an element at start of list */
>  #ifdef VIR_ENUM_SENTINELS
>      VIR_NETWORK_UPDATE_COMMAND_LAST
>  #endif

ACK, assuming we have not released any version with the broken
numbering

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]