[Top][All Lists]

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

[Qemu-devel] [PATCH 0/3] qom: refactor Interfaces

From: Anthony Liguori
Subject: [Qemu-devel] [PATCH 0/3] qom: refactor Interfaces
Date: Wed, 13 Jun 2012 15:54:59 -0500

The interface implementation was pretty busted.  The way it created Objects for
each interface was extremely clumbsy and brittle.

This is a new implementation that does something quite a bit more natural.  It
simply modifies classes such that they can affectively have more than one super

Interfaces never get instantiated.  Instead an object's class just refers to its
parent class and it's implemented interfaces.

This should solve the issues Peter's run into and also eliminate the recursive
call to object_new() (its no longer necessary to allocate anything when creating
an object).

This also comes with a test case for object.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]