Re: [Qemu-devel] [RFC 1/3] qom: Document reference count ownership rules

2018-07-13 Thread Eduardo Habkost
On Fri, Jul 13, 2018 at 11:07:15AM +0200, Thomas Huth wrote: > On 12.07.2018 21:45, Eduardo Habkost wrote: > > The documentation for QOM is not clear about who owns references > > to objects (i.e. who is responsible for calling object_unref() > > later). > > > > This is important considering there

Re: [Qemu-devel] [RFC 1/3] qom: Document reference count ownership rules

2018-07-13 Thread Thomas Huth
On 12.07.2018 21:45, Eduardo Habkost wrote: > The documentation for QOM is not clear about who owns references > to objects (i.e. who is responsible for calling object_unref() > later). > > This is important considering there are a few inconsistencies in > the API (e.g. callers of object_new() nee

[Qemu-devel] [RFC 1/3] qom: Document reference count ownership rules

2018-07-12 Thread Eduardo Habkost
The documentation for QOM is not clear about who owns references to objects (i.e. who is responsible for calling object_unref() later). This is important considering there are a few inconsistencies in the API (e.g. callers of object_new() need to call object_unref() later, but callers of object_ne