Re: [Qemu-devel] [PATCH v2 1/6] qapi: Add qobject_to()

2018-01-31 Thread Alberto Garcia
On Sat 20 Jan 2018 04:44:07 PM CET, Max Reitz wrote: > This is a dynamic casting macro that, given a QObject type, returns an > object as that type or NULL if the object is of a different type (or > NULL itself). > > The macro uses lower-case letters because: > 1. There does not seem to be a hard

Re: [Qemu-devel] [PATCH v2 1/6] qapi: Add qobject_to()

2018-01-22 Thread Max Reitz
On 2018-01-22 16:33, Eric Blake wrote: > On 01/20/2018 09:44 AM, Max Reitz wrote: >> This is a dynamic casting macro that, given a QObject type, returns an >> object as that type or NULL if the object is of a different type (or >> NULL itself). >> >> The macro uses lower-case letters because: >>

Re: [Qemu-devel] [PATCH v2 1/6] qapi: Add qobject_to()

2018-01-22 Thread Eric Blake
On 01/20/2018 09:44 AM, Max Reitz wrote: > This is a dynamic casting macro that, given a QObject type, returns an > object as that type or NULL if the object is of a different type (or > NULL itself). > > The macro uses lower-case letters because: > 1. There does not seem to be a hard rule on

[Qemu-devel] [PATCH v2 1/6] qapi: Add qobject_to()

2018-01-20 Thread Max Reitz
This is a dynamic casting macro that, given a QObject type, returns an object as that type or NULL if the object is of a different type (or NULL itself). The macro uses lower-case letters because: 1. There does not seem to be a hard rule on whether qemu macros have to be upper-cased, 2. The