Re: [Qemu-devel] [PATCH v5 3/6] qapi: Add qobject_is_equal()

2017-09-18 Thread Eric Blake
On 09/16/2017 01:51 PM, Max Reitz wrote: > This generic function (along with its implementations for different > types) determines whether two QObjects are equal. > > Signed-off-by: Max Reitz > --- > +case QNUM_DOUBLE: > +switch (num_y->kind) { > +case QNUM_I64: > +ca

[Qemu-devel] [PATCH v5 3/6] qapi: Add qobject_is_equal()

2017-09-16 Thread Max Reitz
This generic function (along with its implementations for different types) determines whether two QObjects are equal. Signed-off-by: Max Reitz --- include/qapi/qmp/qbool.h | 1 + include/qapi/qmp/qdict.h | 1 + include/qapi/qmp/qlist.h | 1 + include/qapi/qmp/qnull.h | 2 ++ include/