[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 06/18] qom: add child properties (composition)
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH 06/18] qom: add child properties (composition) |
Date: |
Fri, 02 Dec 2011 12:54:22 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 |
Am 30.11.2011 22:03, schrieb Anthony Liguori:
> Child properties express a relationship of composition.
>
> Signed-off-by: Anthony Liguori <address@hidden>
Do we have a flag or something that makes sure that a child is never
removed without its parent? The code assumes that child stays valid as
long as the parent lives.
> @@ -499,4 +499,24 @@ gchar *qdev_get_canonical_path(DeviceState *dev);
> */
> DeviceState *qdev_resolve_path(const char *path, bool *ambiguous);
>
> +/**
> + * @qdev_property_add_child - Add a child property to a device
> + *
> + * Child properties form the composition tree. All devices need to be a
> child
> + * of another device. Devices can only be a child of one device.
> + *
> + * There is no way for a child to determine what it's parent is. It is not
s/it's/its/
Kevin
- Re: [Qemu-devel] [PATCH 06/18] qom: add child properties (composition),
Kevin Wolf <=