summaryrefslogtreecommitdiffstats
path: root/src/util/ralloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/ralloc.h')
-rw-r--r--src/util/ralloc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/ralloc.h b/src/util/ralloc.h
index f088a36274d..01f102ba244 100644
--- a/src/util/ralloc.h
+++ b/src/util/ralloc.h
@@ -235,6 +235,13 @@ void ralloc_free(void *ptr);
void ralloc_steal(const void *new_ctx, void *ptr);
/**
+ * Reparent all children from one context to another.
+ *
+ * This effectively calls ralloc_steal(new_ctx, child) for all children of \p old_ctx.
+ */
+void ralloc_adopt(const void *new_ctx, void *old_ctx);
+
+/**
* Return the given pointer's ralloc context.
*/
void *ralloc_parent(const void *ptr);