add functions to block driver interface to support inplace image conversion

Signed-off-by: Devin Nakamura <devin...@gmail.com>
---
 block_int.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/block_int.h b/block_int.h
index 1e265d2..ef311c7 100644
--- a/block_int.h
+++ b/block_int.h
@@ -136,6 +136,16 @@ struct BlockDriver {
      * zeros, 0 otherwise.
      */
     int (*bdrv_has_zero_init)(BlockDriverState *bs);
+    
+    /*  Image conversion stuff */
+    int (*bdrv_open_conversion_target)(BlockDriverState *bs, char *filename,
+        QEMUOptionParameter *options);
+    int (*bdrv_get_mapping)(BlockDriverState *bs, uint64_t *guest_offset,
+        uint64_t *host_offset, uint64_t *contiguous_bytes);
+    int (*bdrv_map)(BlockDriverState *bs, uint64_t *guest_offset, 
+        uint64_t *host_offset, uint64_t *contiguous_bytes);
+    int (*bdrv_copy_header) (BlockDriverState *bs);
+    
 
     QLIST_ENTRY(BlockDriver) list;
 };
-- 
1.7.6.rc1


Reply via email to