unicorn/qemu/include
Daniel P. Berrange b97ab59f08
qom: Allow properties to be registered against classes
When there are many instances of a given class, registering
properties against the instance is wasteful of resources. The
majority of objects have a statically defined list of possible
properties, so most of the properties are easily registerable
against the class. Only those properties which are conditionally
registered at runtime need be recorded against the klass.

Registering properties against classes also makes it possible
to provide static introspection of QOM - currently introspection
is only possible after creating an instance of a class, which
severely limits its usefulness.

This impl only supports simple scalar properties. It does not
attempt to allow child object / link object properties against
the class. There are ways to support those too, but it would
make this patch more complicated, so it is left as an exercise
for the future.

There is no equivalent to object_property_del() provided, since
classes must be immutable once they are defined.

Backports commit 16bf7f522a2ff68993f80631ed86254c71eaf5d4 from qemu
2018-02-21 21:00:56 -05:00
..
crypto Drop unused crypto source files 2018-02-17 15:23:57 -05:00
exec Merge memory_region_init_reservation() into memory_region_init_io() 2018-02-21 11:23:00 -05:00
fpu fpu: Remove use of int_fast16_t in conversions to int16 2018-02-20 16:54:04 -05:00
hw qom: Allow properties to be registered against classes 2018-02-21 21:00:56 -05:00
qapi qapi: Don't box branches of flat unions 2018-02-20 16:44:55 -05:00
qemu typedefs: Add CPUState 2018-02-21 01:55:22 -05:00
qom qom: Allow properties to be registered against classes 2018-02-21 21:00:56 -05:00
sysemu oslib-win32: Change return type of function getpagesize 2018-02-17 19:10:37 -05:00
config.h import 2015-08-21 15:04:50 +08:00
elf.h fix merge conflicts 2017-03-10 21:04:33 +08:00
glib_compat.h glib_compat: backport hashtable iterator interfaces 2018-02-21 13:18:44 -05:00
qemu-common.h osdep.h: Include glib-compat.h in osdep.h rather than qemu-common.h 2018-02-17 20:47:28 -05:00