Export object_property_is_child() to let it be invoked in other places. Signed-off-by: Zhu Guihua <zhugh.f...@cn.fujitsu.com> --- include/qom/object.h | 1 + qom/object.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/qom/object.h b/include/qom/object.h index 5d55889..8f27b7c 100644 --- a/include/qom/object.h +++ b/include/qom/object.h @@ -1302,4 +1302,5 @@ Object *container_get(Object *root, const char *path); void *object_property_get_opaque(ObjectProperty *prop, Error **errp); +bool object_property_is_child(ObjectProperty *prop); #endif diff --git a/qom/object.c b/qom/object.c index 00a25e0..8de2599 100644 --- a/qom/object.c +++ b/qom/object.c @@ -351,7 +351,7 @@ void object_initialize(void *data, size_t size, const char *typename) object_initialize_with_type(data, size, type); } -static inline bool object_property_is_child(ObjectProperty *prop) +bool object_property_is_child(ObjectProperty *prop) { return strstart(prop->type, "child<", NULL); } -- 1.9.3