Markus Armbruster d20f616e8f qom: Clean up object_property_get_enum()'s error value
object_property_get_enum() is the only object_property_FOO() that is
documented to return an undefined value on error.  It does no such
thing, actually: it returns 0 on some errors, and -1 on others.

Needlessly complicated.  Always return -1 on error, and adjust the
contract.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20200917125540.597786-2-armbru@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2020-09-18 13:49:48 -04:00
..
2020-09-18 10:44:47 +01:00
2020-09-08 07:17:09 +02:00
2020-09-16 08:41:06 +02:00
2020-09-17 20:40:59 +01:00
2020-08-21 06:30:45 -04:00
2020-09-10 10:46:46 +01:00
2020-02-22 08:26:47 +00:00
2019-12-17 09:05:23 +01:00
2019-09-10 08:58:43 +02:00
2020-09-08 11:43:16 +02:00