qom: Make functions taking Error ** return bool, not void

See recent commit "error: Document Error API usage rules" for
rationale.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200707160613.848843-28-armbru@redhat.com>
This commit is contained in:
Markus Armbruster 2020-07-07 18:05:55 +02:00
parent 5325cc34a2
commit 6fd5bef10b
6 changed files with 122 additions and 62 deletions

View file

@ -33,8 +33,10 @@ struct QObject *object_property_get_qobject(Object *obj, const char *name,
* @errp: returns an error if this function fails
*
* Writes a property to a object.
*
* Returns: %true on success, %false on failure.
*/
void object_property_set_qobject(Object *obj,
bool object_property_set_qobject(Object *obj,
const char *name, struct QObject *value,
struct Error **errp);