diff options
author | Markus Armbruster <armbru@redhat.com> | 2016-03-15 19:34:49 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2016-03-21 21:29:02 +0100 |
commit | 55e8a154359be12ca4c9730c562d1e3d4b1bd2a1 (patch) | |
tree | 2f28a748ff703175154099bf055382e4654e8d4d /hw/core | |
parent | 8baeb22bfc3b57a8568c17b34c66ea2ff54df09a (diff) | |
download | qemu-55e8a154359be12ca4c9730c562d1e3d4b1bd2a1.zip qemu-55e8a154359be12ca4c9730c562d1e3d4b1bd2a1.tar.gz qemu-55e8a154359be12ca4c9730c562d1e3d4b1bd2a1.tar.bz2 |
qdev: New DEFINE_PROP_ON_OFF_AUTO
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <1458066895-20632-35-git-send-email-armbru@redhat.com>
Diffstat (limited to 'hw/core')
-rw-r--r-- | hw/core/qdev-properties.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/core/qdev-properties.c b/hw/core/qdev-properties.c index bc89800..d2f5a08 100644 --- a/hw/core/qdev-properties.c +++ b/hw/core/qdev-properties.c @@ -516,6 +516,16 @@ PropertyInfo qdev_prop_macaddr = { .set = set_mac, }; +/* --- on/off/auto --- */ + +PropertyInfo qdev_prop_on_off_auto = { + .name = "OnOffAuto", + .description = "on/off/auto", + .enum_table = OnOffAuto_lookup, + .get = get_enum, + .set = set_enum, +}; + /* --- lost tick policy --- */ QEMU_BUILD_BUG_ON(sizeof(LostTickPolicy) != sizeof(int)); |