]> git.ipfire.org Git - thirdparty/qemu.git/commit
object: return self in object_ref()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 10 Jan 2020 15:30:31 +0000 (19:30 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jan 2020 19:59:14 +0000 (20:59 +0100)
commitb77ade9bb37b2e9813a42008cb21d0c743aa50a1
tree97de7f3a5680ce1d1759ac72eee970690cc52bf7
parent9859facc0487b248217f7fe10aad8680be86b19f
object: return self in object_ref()

This allow for simpler assignment with ref: foo = object_ref(bar)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200110153039.1379601-19-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qom/object.h
qom/object.c