On 2 November 2015 at 09:04, Cao jin <address@hidden> wrote:
Signed-off-by: Cao jin <address@hidden>
---
include/qom/object.h | 2 +-
qom/object.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/qom/object.h b/include/qom/object.h
index be7280c..9e5162a 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -511,7 +511,7 @@ struct TypeInfo
/**
* OBJECT_CLASS_CHECK:
* @class: The C type to use for the return value.
- * @obj: A derivative of @type to cast.
+ * @obj: A derivative class of @class to cast.
* @name: the QOM typename of @class.
I think this is right but not sufficient. Since OBJECT_CLASS_CHECK's
second parameter is not an object but a class, the name "obj" is
rather misleading and should be changed. My suggestion would be
to use
* @classtype: The C type to use for the return value.
* @class: A derivative class of @classtype to cast.
* @name: the QOM typename of @class.
(and the macro definition parameter names should change to match).