mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
9859facc04
commit
b77ade9bb3
2 changed files with 5 additions and 3 deletions
|
@ -1005,8 +1005,9 @@ GSList *object_class_get_list_sorted(const char *implements_type,
|
|||
*
|
||||
* Increase the reference count of a object. A object cannot be freed as long
|
||||
* as its reference count is greater than zero.
|
||||
* Returns: @obj
|
||||
*/
|
||||
void object_ref(Object *obj);
|
||||
Object *object_ref(Object *obj);
|
||||
|
||||
/**
|
||||
* object_unref:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue