mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
qom: Add object_get_container()
Add a helper to fetch a root container (under object_get_root()). Sanity check on the type of the object. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-ID: <20241121192202.4155849-12-peterx@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
1c34335844
commit
180e8f16f0
2 changed files with 20 additions and 0 deletions
|
@ -1510,6 +1510,16 @@ const char *object_property_get_type(Object *obj, const char *name,
|
|||
*/
|
||||
Object *object_get_root(void);
|
||||
|
||||
/**
|
||||
* object_get_container:
|
||||
* @name: the name of container to lookup
|
||||
*
|
||||
* Lookup a root level container.
|
||||
*
|
||||
* Returns: the container with @name.
|
||||
*/
|
||||
Object *object_get_container(const char *name);
|
||||
|
||||
|
||||
/**
|
||||
* object_get_objects_root:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue