mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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:
parent
5325cc34a2
commit
6fd5bef10b
6 changed files with 122 additions and 62 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue