[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 05/12] qom/object: fix iterating properties over a cl
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PULL 05/12] qom/object: fix iterating properties over a class |
Date: |
Wed, 3 Oct 2018 18:18:26 +0400 |
object_class_property_iter_init() starts from the given class, so the
next class should continue with the parent class.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
---
qom/object.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qom/object.c b/qom/object.c
index 9222b23172..9eaf08a53c 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -1115,7 +1115,7 @@ void
object_class_property_iter_init(ObjectPropertyIterator *iter,
ObjectClass *klass)
{
g_hash_table_iter_init(&iter->iter, klass->properties);
- iter->nextclass = klass;
+ iter->nextclass = object_class_get_parent(klass);
}
ObjectProperty *object_class_property_find(ObjectClass *klass, const char
*name,
--
2.19.0.271.gfe8321ec05
- [Qemu-devel] [PULL 00/12] Option patches, Marc-André Lureau, 2018/10/03
- [Qemu-devel] [PULL 01/12] qdev-monitor: print help to stdout, Marc-André Lureau, 2018/10/03
- [Qemu-devel] [PULL 02/12] cutils: add qemu_pstrcmp0(), Marc-André Lureau, 2018/10/03
- [Qemu-devel] [PULL 06/12] qom/object: register 'type' property as class property, Marc-André Lureau, 2018/10/03
- [Qemu-devel] [PULL 03/12] qemu-option: add help fallback to print the list of options, Marc-André Lureau, 2018/10/03
- [Qemu-devel] [PULL 04/12] qemu-option: improve qemu_opts_print_help() output, Marc-André Lureau, 2018/10/03
- [Qemu-devel] [PULL 05/12] qom/object: fix iterating properties over a class,
Marc-André Lureau <=
- [Qemu-devel] [PULL 07/12] tests/qom-proplist: check duplicate "bv" property registration failed, Marc-André Lureau, 2018/10/03
- [Qemu-devel] [PULL 08/12] tests/qom-proplist: check properties are not listed multiple times, Marc-André Lureau, 2018/10/03
- [Qemu-devel] [PULL 09/12] tests/qom-proplist: check class properties iterator, Marc-André Lureau, 2018/10/03
- [Qemu-devel] [PULL 10/12] vl: handle -object help, Marc-André Lureau, 2018/10/03
- [Qemu-devel] [PULL 11/12] hostmem: add some properties description, Marc-André Lureau, 2018/10/03
- [Qemu-devel] [PULL 12/12] vl: list user creatable properties when 'help' is argument, Marc-André Lureau, 2018/10/03
- Re: [Qemu-devel] [PULL 00/12] Option patches, Peter Maydell, 2018/10/05