qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC] QOM design - add instance data to Object (-> add


From: Liviu Ionescu
Subject: Re: [Qemu-devel] [RFC] QOM design - add instance data to Object (-> add constructors)
Date: Sun, 14 Jun 2015 16:39:22 +0300

> On 14 Jun 2015, at 15:43, Liviu Ionescu <address@hidden> wrote:
> 
> 
>> I never said you cant ref one object from another. QOM links exist for
>> this exact purpose.
> 
> Q: any example of QOM links?

ok, I found them, they are not part of qdev but only in qom. 

they look like this:

    object_property_set_link(OBJECT(ds), OBJECT(s), "dma", &local_err);

and apparently they set a string property with the canonical path to the object.

why is this preferred to a direct pointer to the object?


regards,

Liviu




reply via email to

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