qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC] QDev explicit constructors & destructors


From: Liviu Ionescu
Subject: Re: [Qemu-devel] [RFC] QDev explicit constructors & destructors
Date: Wed, 24 Jun 2015 10:30:11 +0300

> On 23 Jun 2015, at 23:10, Liviu Ionescu <address@hidden> wrote:
> 
> another solution would look like:
> 
>    DeviceState *dev = my_dev_alloc(NULL, TYPE_MYTYPE);
>    my_dev_prop_set_string(dev, "param", "something");
>    my_dev_realize(dev);
>    my_dev_prop_set_uint32(dev, "xyz", 123);
> 
> which obviously fails while trying to set the locked "xyz" property.

as a last resort to avoid explicit constructors, what about doing whatever 
tricks are necessary to have these properties unlocked even after realize()?


Peter C, is this solution acceptable? 

if so, I'll update my code and perhaps tomorrow we can schedule the Skype call.


regards,

Liviu




reply via email to

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