qom: make object_ref/unref use a void * instead of Object *.
The object_ref/unref methods are intended for use with any subclass of
the base Object. Using "Object *" in the signature is not adding any
meaningful level of type safety, since callers simply use "OBJECT(ptr)"
and this expands to an unchecked cast "(Object *)".
By using "void *" we enable the object_unref() method to be used to
provide support for g_autoptr() with any subclass.
Signed-off-by: Daniel P. Berrangé <[email protected]>
Message-Id: <
20200723181410.
3145233[email protected]>
Message-Id: <
20200831210740[email protected]>
Signed-off-by: Eduardo Habkost <[email protected]>