qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] qom: refactor Interfaces
@ 2012-06-13 20:54 Anthony Liguori
  2012-06-13 20:55 ` [Qemu-devel] [PATCH 1/3] tests: fix dependency inclusion Anthony Liguori
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Anthony Liguori @ 2012-06-13 20:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter A. G. Crosthwaite, Paolo Bonzini, Andreas Faerber

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

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.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-06-22 11:29 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-13 20:54 [Qemu-devel] [PATCH 0/3] qom: refactor Interfaces Anthony Liguori
2012-06-13 20:55 ` [Qemu-devel] [PATCH 1/3] tests: fix dependency inclusion Anthony Liguori
2012-06-14 13:08   ` Andreas Färber
2012-06-14 13:12     ` Paolo Bonzini
2012-06-13 20:55 ` [Qemu-devel] [PATCH 2/3] qom: reimplement Interfaces Anthony Liguori
2012-06-16 10:47   ` Peter Crosthwaite
2012-06-22 11:29     ` Peter Crosthwaite
2012-06-13 20:55 ` [Qemu-devel] [PATCH 3/3] qom: add unit test for Interfaces Anthony Liguori
2012-06-16 10:31   ` Peter Crosthwaite
2012-06-18 13:26     ` Anthony Liguori
2012-06-18 13:46       ` Peter Crosthwaite
2012-06-18 13:51         ` Andreas Färber
2012-06-18 14:54           ` Anthony Liguori
2012-06-14  9:10 ` [Qemu-devel] [PATCH 0/3] qom: refactor Interfaces Paolo Bonzini
2012-06-15  4:58 ` Peter Crosthwaite

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).