qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] add PROP_TYPE_ENUM and print_options callback
@ 2011-01-18 10:58 Alon Levy
  2011-01-18 10:58 ` [Qemu-devel] [PATCH 1/3] qdev: add " Alon Levy
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Alon Levy @ 2011-01-18 10:58 UTC (permalink / raw)
  To: qemu-devel

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(-)

-- 
1.7.3.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-25 15:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-18 10:58 [Qemu-devel] [PATCH 0/3] add PROP_TYPE_ENUM and print_options callback Alon Levy
2011-01-18 10:58 ` [Qemu-devel] [PATCH 1/3] qdev: add " Alon Levy
2011-01-18 10:58 ` [Qemu-devel] [PATCH 2/3] qdev: add data pointer to Property Alon Levy
2011-01-18 10:58 ` [Qemu-devel] [PATCH 3/3] qdev-properties: add PROP_TYPE_ENUM Alon Levy
2011-01-25 15:58 ` [Qemu-devel] [PATCH 0/3] add PROP_TYPE_ENUM and print_options callback Alon Levy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).