Re: [Qemu-devel] [PATCH v2 2/6] qapi: Replace qobject_to_X(o) by qobject_to(o, X)

2018-01-31 Thread Eric Blake
On 01/31/2018 10:11 AM, Eric Blake wrote: > On 01/20/2018 09:44 AM, Max Reitz wrote: >> This patch was generated using the following Coccinelle script: >> >> @@ >> expression Obj; >> @@ >> ( >> - qobject_to_qnum(Obj) >> + qobject_to(Obj, QNum) >> | >> - qobject_to_qstring(Obj) >> + qobject_to(Obj,

Re: [Qemu-devel] [PATCH v2 2/6] qapi: Replace qobject_to_X(o) by qobject_to(o, X)

2018-01-31 Thread Eric Blake
On 01/20/2018 09:44 AM, Max Reitz wrote: > This patch was generated using the following Coccinelle script: > > @@ > expression Obj; > @@ > ( > - qobject_to_qnum(Obj) > + qobject_to(Obj, QNum) > | > - qobject_to_qstring(Obj) > + qobject_to(Obj, QString) > | > - qobject_to_qdict(Obj) > + qobject_to(

Re: [Qemu-devel] [PATCH v2 2/6] qapi: Replace qobject_to_X(o) by qobject_to(o, X)

2018-01-31 Thread Alberto Garcia
On Sat 20 Jan 2018 04:44:08 PM CET, Max Reitz wrote: > This patch was generated using the following Coccinelle script: > > @@ > expression Obj; > @@ > ( > - qobject_to_qnum(Obj) > + qobject_to(Obj, QNum) > | > - qobject_to_qstring(Obj) > + qobject_to(Obj, QString) > | > - qobject_to_qdict(Obj) > +

[Qemu-devel] [PATCH v2 2/6] qapi: Replace qobject_to_X(o) by qobject_to(o, X)

2018-01-20 Thread Max Reitz
This patch was generated using the following Coccinelle script: @@ expression Obj; @@ ( - qobject_to_qnum(Obj) + qobject_to(Obj, QNum) | - qobject_to_qstring(Obj) + qobject_to(Obj, QString) | - qobject_to_qdict(Obj) + qobject_to(Obj, QDict) | - qobject_to_qlist(Obj) + qobject_to(Obj, QList) | - qo