summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEduardo Habkost2017-08-24 21:23:13 +0200
committerEduardo Habkost2017-09-19 14:09:23 +0200
commit9d5139e543e8579aacd324193680c64fd1463d89 (patch)
tree4f4964e485ea4e1de4a12ca057de4f422ba6a407 /include
parentMerge remote-tracking branch 'remotes/kraxel/tags/audio-20170918-pull-request... (diff)
downloadqemu-9d5139e543e8579aacd324193680c64fd1463d89.tar.gz
qemu-9d5139e543e8579aacd324193680c64fd1463d89.tar.xz
qemu-9d5139e543e8579aacd324193680c64fd1463d89.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/qom/object_interfaces.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/qom/object_interfaces.h b/include/qom/object_interfaces.h
index d63c1c28f8..d23e11bc53 100644
--- a/include/qom/object_interfaces.h
+++ b/include/qom/object_interfaces.h
@@ -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