Re: Libosinfo 0.2.2

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

 



On Mon, Dec 10, 2012 at 08:40:02PM +0200, Zeeshan Ali (Khattak) wrote:
> - OsinfoList is now instantiable and all its subclasses has been deprecated.
>   Newer code should use OsinfoList directly.

This is not quite right. Derived classes should still be used and are not
deprecated.
osinfo_foolist_new_copy, osinfo_foolist_new_filtered,
osinfo_foolist_new_intersection and osinfo_foolist_new_union have been
deprecated in subclasses and moved to the OsinfoList class. The reasoning
for that is that these helpers were duplicated in all OsinfoList classes
while they were only useful for a few of these subclasses. Having them in
the base class makes the API smaller and simpler. One drawback of this
approach is that the return value of these functions is now OsinfoList,
though its runtime type will be the same type as its list arguments.

Christophe

Attachment: pgpEUFJcdTFxF.pgp
Description: PGP signature

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list

[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux