Re: [PATCH v2 1/2] util: TristateBool and TristateSwitch are interchangeable

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

 



Hi

----- Original Message -----
> >  VIR_ENUM_DECL(virTristateBool)
> >  VIR_ENUM_DECL(virTristateSwitch)
> >  
> > +/* the two enums must be in sync to be able to use helpers interchangeably
> > in
> > + * some special cases */
> > +verify((int)VIR_TRISTATE_BOOL_YES == (int)VIR_TRISTATE_SWITCH_ON);
> > +verify((int)VIR_TRISTATE_BOOL_NO == (int)VIR_TRISTATE_SWITCH_OFF);
> > +verify((int)VIR_TRISTATE_BOOL_ABSENT == (int)VIR_TRISTATE_SWITCH_ABSENT);
> > +
> >  unsigned int virGetListenFDs(void);
> >  
> >  long virGetSystemPageSize(void);
> > 
> 
> ACK.
> 
> I'm pushing this one as it makes perfect sense on its own.
> 

thanks

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