summary refs log tree commit diff stats
path: root/include/qemu/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/qemu/object.h')
-rw-r--r--include/qemu/object.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/qemu/object.h b/include/qemu/object.h
index be707f1a36..232463b3c7 100644
--- a/include/qemu/object.h
+++ b/include/qemu/object.h
@@ -230,6 +230,15 @@ typedef struct ObjectProperty
 } ObjectProperty;
 
 /**
+ * ObjectUnparent:
+ * @obj: the object that is being removed from the composition tree
+ *
+ * Called when an object is being removed from the QOM composition tree.
+ * The function should remove any backlinks from children objects to @obj.
+ */
+typedef void (ObjectUnparent)(Object *obj);
+
+/**
  * ObjectClass:
  *
  * The base for all classes.  The only thing that #ObjectClass contains is an
@@ -240,6 +249,8 @@ struct ObjectClass
     /*< private >*/
     Type type;
     GSList *interfaces;
+
+    ObjectUnparent *unparent;
 };
 
 /**