qemu-rust.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] qom: Introduce class_post_init() handler
@ 2025-01-25 16:58 Philippe Mathieu-Daudé
  2025-01-25 16:58 ` [PATCH 1/2] qom: Declare class_base_init() before class_init() Philippe Mathieu-Daudé
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-01-25 16:58 UTC (permalink / raw)
  To: qemu-devel
  Cc: Daniel P. Berrangé, qemu-rust, Eduardo Habkost,
	Manos Pitsidianakis, Paolo Bonzini, Markus Armbruster,
	Philippe Mathieu-Daudé

Add a class_post_init() handler to be called by parents
*after* child class_init() handler is called. This is
necessary to have parent class check children properly
set some values or mandatory handlers.

Philippe Mathieu-Daudé (2):
  qom: Declare class_base_init() before class_init()
  qom: Introduce class_post_init() handler

 include/qom/object.h     | 17 ++++++++++-------
 qom/object.c             | 14 ++++++++++++--
 rust/qemu-api/src/qom.rs |  8 +++++++-
 3 files changed, 29 insertions(+), 10 deletions(-)

-- 
2.47.1



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

end of thread, other threads:[~2025-01-27 14:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-25 16:58 [PATCH 0/2] qom: Introduce class_post_init() handler Philippe Mathieu-Daudé
2025-01-25 16:58 ` [PATCH 1/2] qom: Declare class_base_init() before class_init() Philippe Mathieu-Daudé
2025-01-25 16:58 ` [PATCH 2/2] qom: Introduce class_post_init() handler Philippe Mathieu-Daudé
2025-01-27  7:00   ` Markus Armbruster
2025-01-27  8:06     ` Philippe Mathieu-Daudé
2025-01-27  8:26 ` [PATCH 0/2] " Paolo Bonzini

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