X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fprio_heap.h;h=347a2ced5fa302482878fd75160c0aa61c17c1b4;hb=0be8b6b76e1767f8d5f6b4c974df9a7d01eb91bc;hp=b3e2491e519b9be5e86409b54f89a3985397cafb;hpb=96e1cf269c09a34129404b430f1a5d158adf3a57;p=babeltrace.git diff --git a/include/babeltrace/prio_heap.h b/include/babeltrace/prio_heap.h index b3e2491e..347a2ced 100644 --- a/include/babeltrace/prio_heap.h +++ b/include/babeltrace/prio_heap.h @@ -114,4 +114,13 @@ extern void *heap_cherrypick(struct ptr_heap *heap, void *p); */ extern void *heap_replace_max(struct ptr_heap *heap, void *p); +/** + * heap_copy - copy a heap + * @dst: the destination heap (must be allocated) + * @src: the source heap + * + * Returns -ENOMEM if out of memory. + */ +extern int heap_copy(struct ptr_heap *dst, struct ptr_heap *src); + #endif /* _BABELTRACE_PRIO_HEAP_H */