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-14 14:24:59 +01:00
2020-09-17 14:16:19 +02:00
2020-09-14 14:23:19 +01:00
2020-09-18 10:44:47 +01:00
2020-08-21 06:30:15 -04:00
2020-05-15 15:25:07 +01:00
2019-11-05 16:36:11 +01:00
2020-09-08 07:17:09 +02:00
2020-09-08 11:43:16 +02:00
2020-08-21 06:30:40 -04:00
2019-06-04 15:20:41 +02:00
2020-09-10 10:47:03 +01:00
2020-09-16 08:41:06 +02:00
2020-09-16 08:41:06 +02:00
2020-09-17 20:40:59 +01:00
2020-09-10 10:47:03 +01:00
2020-06-16 14:49:05 +01:00
2020-09-13 23:03:14 +02:00
2020-08-21 06:30:45 -04:00
2020-03-17 17:38:47 +00:00
2020-09-10 11:02:17 +01:00
2020-09-10 11:02:17 +01:00
2020-09-10 11:02:17 +01:00
2020-07-02 06:25:28 +02:00
2020-09-15 11:05:13 +02:00
2019-08-21 10:27:13 +02:00
2020-04-30 06:51:15 +02:00
2020-07-02 06:25:28 +02:00
2020-09-09 09:27:09 -04:00
2020-09-18 13:49:48 -04:00
2019-06-12 13:20:21 +02:00
2020-07-17 14:20:57 +02:00
2019-06-12 13:20:21 +02:00
2020-01-06 18:41:32 +04:00
2019-06-12 13:20:20 +02:00
2020-01-07 14:32:57 +00:00
2020-09-10 10:47:03 +01:00
2020-09-16 08:41:06 +02:00
2019-08-20 17:26:21 +02:00
2020-01-12 11:42:40 +01:00
2020-07-11 15:53:00 +01:00
2020-02-25 17:42:59 +00:00
2020-09-10 10:46:46 +01:00
2020-09-16 08:41:06 +02:00
2019-08-22 17:30:25 +04:00
2020-02-22 08:26:47 +00:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2020-07-02 06:25:28 +02:00
2020-05-18 19:05:25 +02:00
2020-07-02 06:25:28 +02:00
2019-12-17 09:05:23 +01:00
2019-08-16 13:31:52 +02:00
2020-07-02 06:25:28 +02:00
2019-09-10 08:58:43 +02:00
2020-04-07 14:34:47 +02:00
2020-07-28 18:27:59 +04:00
2019-06-12 13:18:33 +02:00
2020-07-02 06:25:28 +02:00
2020-09-08 07:17:09 +02:00
2019-12-17 09:05:23 +01:00
2019-12-17 09:05:23 +01:00
2020-03-18 14:03:46 -04:00
2019-08-16 13:31:52 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2020-09-16 12:15:07 +02:00
2020-09-16 08:41:06 +02:00
2019-12-17 09:05:23 +01:00
2020-07-02 06:25:28 +02:00
2019-12-18 12:28:44 +01:00
2020-09-16 08:41:06 +02:00
2020-09-16 12:15:07 +02:00
2020-07-02 06:25:28 +02:00
2020-09-08 11:43:16 +02:00
2020-08-21 06:30:20 -04:00
2020-03-17 19:58:34 +01:00
2020-03-17 19:58:34 +01:00
2020-09-03 09:38:36 +02:00
2020-04-30 07:26:09 +02:00
2020-03-06 10:35:15 +00:00
2020-02-22 08:26:47 +00:00
2020-09-16 08:41:06 +02:00
2020-07-02 06:25:28 +02:00
2020-07-02 06:25:28 +02:00
2019-06-03 14:03:00 +02:00
2019-08-20 17:26:19 +02:00
2020-09-07 12:34:17 +02:00
2020-09-16 12:15:07 +02:00
2020-09-16 08:41:06 +02:00
2020-09-02 07:29:26 -04:00
2019-10-26 15:38:06 +02:00