Skip to content

add PROP_TYPE_ENUM and print_options callback

Alon Levy qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3qdev: add print_options callbackhw/qdev.c hw/qdev.h+10 -10 replies
2/3qdev: add data pointer to Propertyhw/qdev.h+1 -00 replies
3/3qdev-properties: add PROP_TYPE_ENUMhw/qdev-properties.c hw/qdev.h+75 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] add PROP_TYPE_ENUM and print_options callback

This patchset allows a new property type called PROP_TYPE_ENUM, I want to use it for the backend property in the ccid patches (will send the patchset that uses it after this), libvirt is the ultimate user.

The first patch adds a print_options callback that works with this property type to print the optional values.

The second patch allows storing the name/value mapping in the property, using a void ptr for later different uses.

The third patch adds the property itself.

Alon Levy (3):
qdev: add print_options callback
qdev: add data pointer to Property
qdev-properties: add PROP_TYPE_ENUM

 hw/qdev-properties.c |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/qdev.c            |   10 +++++++-
 hw/qdev.h            |   17 ++++++++++++++
 3 files changed, 86 insertions(+), 1 deletions(-)
Signature · 1 line
1.7.3.4