From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtbCx-0008P2-D8 for qemu-devel@nongnu.org; Mon, 01 Jul 2013 06:19:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtbCv-0001GE-N5 for qemu-devel@nongnu.org; Mon, 01 Jul 2013 06:19:43 -0400 Received: from [222.73.24.84] (port=20227 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtbCv-0001Fv-DR for qemu-devel@nongnu.org; Mon, 01 Jul 2013 06:19:41 -0400 Received: from fnstmail02.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id r61AJbmf015551 for ; Mon, 1 Jul 2013 18:19:38 +0800 From: Hu Tao Date: Mon, 1 Jul 2013 18:18:17 +0800 Message-Id: In-Reply-To: References: Subject: [Qemu-devel] [PATCH v2 01/26] sysbus: document SysBusDeviceClass about @init List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Signed-off-by: Hu Tao --- include/hw/sysbus.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/hw/sysbus.h b/include/hw/sysbus.h index 7c2e316..9614758 100644 --- a/include/hw/sysbus.h +++ b/include/hw/sysbus.h @@ -23,6 +23,16 @@ typedef struct SysBusDevice SysBusDevice; #define SYS_BUS_DEVICE_GET_CLASS(obj) \ OBJECT_GET_CLASS(SysBusDeviceClass, (obj), TYPE_SYS_BUS_DEVICE) +/* + * SysBusDeviceClass: + * @parent_class: This is private + * @init: Callback function invoked when the #DeviceState::realized property + * is changed to %true. Deprecated, new types inheriting directly from + * TYPE_SYS_BUS_DEVICE should use #DeviceClass::realize instead, new leaf + * types should consult their respective parent type. SysBusDeviceClass is + * not implementing #DeviceClass::realize, so deriving classes can simply + * ignore it. + */ typedef struct SysBusDeviceClass { DeviceClass parent_class; -- 1.8.3.1