Re: [Qemu-devel] [PATCH v2] Revised: Add object_property_get_child().

2012-02-20 Thread Alexander Barabash
On 02/19/2012 06:04 PM, Alexander Barabash wrote: Add object_property_get_child(). Please disregard this patch. object_property_get_link() works for this purpose.

Re: [Qemu-devel] [PATCH v2] Revised: Add object_property_get_child().

2012-02-20 Thread Alexander Barabash
On 02/19/2012 07:14 PM, Andreas Färber wrote: Am 19.02.2012 17:04, schrieb Alexander Barabash: ... Signed-off-by: Alexander Barabashalexander_barab...@mentor.com Please use git-send-email to submit your patches: The commit message is unnecessarily indented and the first line is

[Qemu-devel] [PATCH v2] Revised: Add object_property_get_child().

2012-02-19 Thread Alexander Barabash
Add object_property_get_child(). Adding a direct accessor to a child property. In the existing implementation, object_property_get() must be used, with with a visitor, implementing the 'type_str' callback, receiving the child's canonical path. In the new

Re: [Qemu-devel] [PATCH v2] Revised: Add object_property_get_child().

2012-02-19 Thread Andreas Färber
Am 19.02.2012 17:04, schrieb Alexander Barabash: Add object_property_get_child(). Adding a direct accessor to a child property. In the existing implementation, object_property_get() must be used, with with a visitor, implementing the 'type_str' callback, receiving

Re: [Qemu-devel] [PATCH v2] Revised: Add object_property_get_child().

2012-02-19 Thread Peter Maydell
On 19 February 2012 17:14, Andreas Färber afaer...@suse.de wrote: Am 19.02.2012 17:04, schrieb Alexander Barabash: +    return g_strndup(type[sizeof(LINK_PROPERTY_TYPE_PREFIX) - 1], +                     strlen(type) +                     - (sizeof(LINK_PROPERTY_TYPE_PREFIX) - 1) +