mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 19:06:55 +00:00
qom: Correct object_property_get_int() description
The description of object_property_get_int() stated that on an error it returns NULL. This is not the case and the function will return -1 if an error occurs. Update the commented documentation accordingly. Backports commit b29b47e9b35017428904e0e934700877dfaabe73 from qemu
This commit is contained in:
parent
dfb78118ff
commit
a4bf026460
|
@ -968,7 +968,7 @@ void object_property_set_int(struct uc_struct *uc, Object *obj, int64_t value,
|
||||||
* @name: the name of the property
|
* @name: the name of the property
|
||||||
* @errp: returns an error if this function fails
|
* @errp: returns an error if this function fails
|
||||||
*
|
*
|
||||||
* Returns: the value of the property, converted to an integer, or NULL if
|
* Returns: the value of the property, converted to an integer, or negative if
|
||||||
* an error occurs (including when the property value is not an integer).
|
* an error occurs (including when the property value is not an integer).
|
||||||
*/
|
*/
|
||||||
int64_t object_property_get_int(struct uc_struct *uc, Object *obj, const char *name,
|
int64_t object_property_get_int(struct uc_struct *uc, Object *obj, const char *name,
|
||||||
|
|
Loading…
Reference in a new issue