[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 1/6] qdev: device_class_set_props() function
From: |
Igor Mammedov |
Subject: |
Re: [Qemu-devel] [PATCH v2 1/6] qdev: device_class_set_props() function |
Date: |
Wed, 26 Oct 2016 15:34:29 +0200 |
On Thu, 20 Oct 2016 15:47:54 -0200
Eduardo Habkost <address@hidden> wrote:
> Replace direct assignment of DeviceClass::props with a
> device_class_set_props() function. The new function will handle
> registration of class properties, later.
>
> Except for manual conversion of target-ppc/translate_init.c, the
> existing code was converted using the following Coccinelle patch:
Patch doesn't apply to current master anymore with multiple conflicts,
it needs to be regenerated.
> @@
> identifier DC;
> expression PROPS;
> typedef DeviceClass;
> @@
> DeviceClass *DC;
> ...
> -DC->props = PROPS;
> +device_class_set_props(DC, PROPS);
>
> Signed-off-by: Eduardo Habkost <address@hidden>
- [Qemu-devel] [PATCH v2 0/6] qdev class properties + abstract class support on device-list-properties, Eduardo Habkost, 2016/10/20
- [Qemu-devel] [PATCH v2 2/6] qdev: Extract property-default code to qdev_property_set_to_default(), Eduardo Habkost, 2016/10/20
- [Qemu-devel] [PATCH v2 3/6] qdev: Register static properties as class properties, Eduardo Habkost, 2016/10/20
- [Qemu-devel] [PATCH v2 4/6] qom: object_class_property_iter_init() function, Eduardo Habkost, 2016/10/20
- [Qemu-devel] [PATCH v2 5/6] qmp: Support abstract classes on device-list-properties, Eduardo Habkost, 2016/10/20
- [Qemu-devel] [PATCH v2 6/6] qdev: Warning about using object_class_property_add() in new code, Eduardo Habkost, 2016/10/20
- [Qemu-devel] [PATCH v2 1/6] qdev: device_class_set_props() function, Eduardo Habkost, 2016/10/20
- Re: [Qemu-devel] [PATCH v2 1/6] qdev: device_class_set_props() function,
Igor Mammedov <=
- Re: [Qemu-devel] [PATCH v2 0/6] qdev class properties + abstract class support on device-list-properties, no-reply, 2016/10/20