mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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>
This commit is contained in:
parent
b6cc36abb2
commit
51b2e8c331
4 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue