From 51b2e8c331c1e3de5463bd7fe13676c2a9ec52fe Mon Sep 17 00:00:00 2001 From: Gonglei Date: Tue, 7 Oct 2014 14:33:20 +0800 Subject: 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 Signed-off-by: Gonglei Signed-off-by: Paolo Bonzini Reviewed-by: Paolo Bonzini Reviewed-by: Michael S. Tsirkin Signed-off-by: Andreas Färber --- include/hw/qdev-core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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; -- cgit v1.2.3-55-g7522