diff options
author | Gonglei <arei.gonglei@huawei.com> | 2014-10-07 14:33:20 +0800 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-10-15 05:03:15 +0200 |
commit | 51b2e8c331c1e3de5463bd7fe13676c2a9ec52fe (patch) | |
tree | 49826b47d549f60993d82a48c62caf5ca326fbe2 /include/hw | |
parent | b6cc36abb20a54a30fbd7d0ae98066df6c5adabc (diff) |
qdev: Add description field in PropertyInfo struct
The descriptions can serve as documentation in the code,
and they can be used to provide better help.
Cc: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/qdev-core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h index 01d7db47e0..c30e50268f 100644 --- a/include/hw/qdev-core.h +++ b/include/hw/qdev-core.h @@ -231,6 +231,7 @@ struct Property { struct PropertyInfo { const char *name; const char *legacy_name; + const char *description; const char **enum_table; int (*print)(DeviceState *dev, Property *prop, char *dest, size_t len); ObjectPropertyAccessor *get; |