summaryrefslogtreecommitdiffstats
path: root/include/qemu/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/qemu/buffer.h')
-rw-r--r--include/qemu/buffer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/qemu/buffer.h b/include/qemu/buffer.h
index f53ee9e..1358df1 100644
--- a/include/qemu/buffer.h
+++ b/include/qemu/buffer.h
@@ -137,4 +137,14 @@ gboolean buffer_empty(Buffer *buffer);
*/
void buffer_move_empty(Buffer *to, Buffer *from);
+/**
+ * buffer_move:
+ * @to: destination buffer object
+ * @from: source buffer object
+ *
+ * Moves buffer, copying data (unless 'to' buffer happens to be empty).
+ * 'from' buffer is empty and zero-sized on return.
+ */
+void buffer_move(Buffer *to, Buffer *from);
+
#endif /* QEMU_BUFFER_H__ */
OpenPOWER on IntegriCloud