]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
qom: allow creating an alias of a child<> property
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Jun 2014 09:17:35 +0000 (11:17 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Jul 2014 08:17:48 +0000 (10:17 +0200)
commitd190698e6f806198da42c05c35b623760b6e1f00
tree8addf76c5d81c726a24a98a4638c310b504e3079
parent64607d088132abdb25bf30d93e97d0c8df7b364c
qom: allow creating an alias of a child<> property

Child properties must be unique.  Fix this problem by
turning their aliases into links.

The resolve function that forwards to the target property
does not have any knowledge of the target property's type,
so it works fine.

Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qom/object.c