[virt-tools-list] Libosinfo 0.2.2

Christophe Fergeau cfergeau at redhat.com
Tue Dec 11 10:01:57 UTC 2012

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20121211/4779bc8d/attachment.sig>

More information about the virt-tools-list mailing list