unicorn/qemu
Daniel P. Berrange 3ba8959dfd
qom: Introduce ObjectPropertyIterator struct for iteration
Some users of QOM need to be able to iterate over properties
defined against an object instance. Currently they are just
directly using the QTAIL macros against the object properties
data structure.

This is bad because it exposes them to changes in the data
structure used to store properties, as well as changes in
functionality such as ability to register properties against
the class.

This provides an ObjectPropertyIterator struct which will
insulate the callers from the particular data structure
used to store properties. It can be used thus

ObjectProperty *prop;
ObjectPropertyIterator *iter;

iter = object_property_iter_init(obj);
while ((prop = object_property_iter_next(iter))) {
... do something with prop ...
}
object_property_iter_free(iter);

Backports commit a00c94824126901168bca5b89147f9e334a49e87 from qemu
2018-02-17 18:39:00 -05:00
..
crypto
default-configs
docs
fpu
hw
include qom: Introduce ObjectPropertyIterator struct for iteration 2018-02-17 18:39:00 -05:00
qapi
qobject
qom qom: Introduce ObjectPropertyIterator struct for iteration 2018-02-17 18:39:00 -05:00
scripts
target-arm target-arm: Update condexec before arch BP check in AA32 translation 2018-02-17 18:35:50 -05:00
target-i386 target-i386: Add clflushopt/clwb/pcommit to TCG_7_0_EBX_FEATURES 2018-02-17 17:26:53 -05:00
target-m68k
target-mips target-mips: fix updating XContext on mmu exception 2018-02-17 15:24:14 -05:00
target-sparc
tcg
util
aarch64.h qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00
aarch64eb.h qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00
accel.c
arm.h qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00
armeb.h qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00
CODING_STYLE
configure
COPYING
COPYING.LIB
cpu-exec-common.c
cpu-exec.c cpu-exec: Fix compiler warning (-Werror=clobbered) 2018-02-17 15:24:15 -05:00
cpus.c
cputlb.c
exec.c qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00
gen_all_header.sh
glib_compat.c
HACKING
header_gen.py qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00
ioport.c ioport: do not use CPU_LOG_IOPORT 2018-02-17 15:24:15 -05:00
LICENSE
m68k.h qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00
Makefile
Makefile.objs
Makefile.target
memory.c pc: resizeable ROM blocks 2018-02-17 17:18:38 -05:00
memory_mapping.c
mips.h qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00
mips64.h qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00
mips64el.h qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00
mipsel.h qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00
powerpc.h qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00
qapi-schema.json
qemu-log.c
qemu-timer.c
rules.mak
softmmu_template.h
sparc.h qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00
sparc64.h qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00
tcg-runtime.c
translate-all.c
translate-all.h
translate-common.c
unicorn_common.h
VERSION
vl.c vl.c: Remove periods and exclamation points from error messages 2018-02-17 15:24:14 -05:00
vl.h
x86_64.h qemu_ram_block_by_name 2018-02-17 18:01:16 -05:00