qdev: Add help for property value
commit922910ce42d15bdb7c2347436b1b5798b5401de4
authorStefan Weil <weil@mail.berlios.de>
Wed, 20 Jan 2010 21:58:34 +0000 (20 22:58 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Jan 2010 21:42:01 +0000 (26 15:42 -0600)
tree83b3ec6cdee14b1cc51f01997271489985d3084c
parent2ba6edf0dd740166632df80caa85992b20791a68
qdev: Add help for property value

When called with property value "?",
a help text will be printed (instead of an error message).

This is useful for command lines like
     qemu -device e1000,mac=?
and is already standard for other command line options.

A better help text could be provided by extending
the Property structure with a desc field.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev-properties.c