Re: [Qemu-devel] [PATCH v5 0/5] Simplify qobject refcount

2018-04-19 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > On Thu, Apr 19, 2018 at 12:09 PM, Marc-André Lureau > wrote: >>> On the one hand, we provide safe conversion macros QOBJECT() and >>> qobject_to(). By the way, shouting one but not the other is a bit

Re: [Qemu-devel] [PATCH v5 0/5] Simplify qobject refcount

2018-04-19 Thread Marc-André Lureau
Hi On Thu, Apr 19, 2018 at 12:09 PM, Marc-André Lureau wrote: >> On the one hand, we provide safe conversion macros QOBJECT() and >> qobject_to(). By the way, shouting one but not the other is a bit ugly. > > QOBJECT is static upcast, the compiler will shout. >

Re: [Qemu-devel] [PATCH v5 0/5] Simplify qobject refcount

2018-04-19 Thread Marc-André Lureau
Hi On Thu, Apr 19, 2018 at 8:44 AM, Markus Armbruster wrote: > Marc-André Lureau writes: > >> Hi, >> >> This series aims to get rid of the distinction between QObject, that >> must use qobject_incref/qobject_decref and its various derived types >>

Re: [Qemu-devel] [PATCH v5 0/5] Simplify qobject refcount

2018-04-19 Thread Markus Armbruster
Marc-André Lureau writes: > Hi, > > This series aims to get rid of the distinction between QObject, that > must use qobject_incref/qobject_decref and its various derived types > that have to use QINCREF/QDECREF. Instead, replace it with > qobject_ref/qobject_unref

[Qemu-devel] [PATCH v5 0/5] Simplify qobject refcount

2018-04-17 Thread Marc-André Lureau
Hi, This series aims to get rid of the distinction between QObject, that must use qobject_incref/qobject_decref and its various derived types that have to use QINCREF/QDECREF. Instead, replace it with qobject_ref/qobject_unref for all types. v5: after Markus review - various commit message &