qemu/include/qapi
Marc-André Lureau f5a74a5a50 qobject: Modify qobject_ref() to return obj
For convenience and clarity, make it possible to call qobject_ref() at
the time when the reference is associated with a variable, or
argument, by making qobject_ref() return the same pointer as given.
Use that to simplify the callers.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180419150145.24795-5-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Useless change to qobject_ref_impl() dropped, commit message improved
slightly]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2018-05-04 08:27:53 +02:00
..
qmp qobject: Modify qobject_ref() to return obj 2018-05-04 08:27:53 +02:00
clone-visitor.h
dealloc-visitor.h
error.h
opts-visitor.h
qmp-event.h
qobject-input-visitor.h
qobject-output-visitor.h
string-input-visitor.h
string-output-visitor.h
util.h
visitor-impl.h
visitor.h qapi: Move qapi-schema.json to qapi/, rename generated files 2018-03-02 13:45:57 -06:00