OSDN Git Service

qom: Simplify object_property_get_enum()
authorMarkus Armbruster <armbru@redhat.com>
Tue, 5 May 2020 15:29:12 +0000 (17:29 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 15 May 2020 04:26:02 +0000 (06:26 +0200)
commitb555f89fcbdc797423f6d6a41b76ef5fa5272235
tree49940b7cf084b2e3325a4bf488d9e377cc1cd1dd
parentf73a32a5147ef7ff90f682d6ba3a6ef11ff97d9e
qom: Simplify object_property_get_enum()

Reuse object_property_get_str().  Switches from the string to the
qobject visitor under the hood.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200505152926.18877-5-armbru@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
qom/object.c