[virt-tools-list] Libosinfo 0.2.2
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_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
Size: 198 bytes
Desc: not available
More information about the virt-tools-list