mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
vl: Clean up user-creatable objects when exiting
Delete all user-creatable objects in /objects when exiting QEMU, so they can perform cleanup actions. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20170824192315.5897-2-ehabkost@redhat.com> Acked-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Zack Cornelius <zack.cornelius@kove.net> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
a9158a5cba
commit
9d5139e543
3 changed files with 14 additions and 0 deletions
|
@ -147,4 +147,12 @@ int user_creatable_add_opts_foreach(void *opaque,
|
|||
*/
|
||||
void user_creatable_del(const char *id, Error **errp);
|
||||
|
||||
/**
|
||||
* user_creatable_cleanup:
|
||||
*
|
||||
* Delete all user-creatable objects and the user-creatable
|
||||
* objects container.
|
||||
*/
|
||||
void user_creatable_cleanup(void);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue