summaryrefslogtreecommitdiff
path: root/block.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2012-11-30 10:52:04 -0200
committerKevin Wolf <kwolf@redhat.com>2012-12-11 11:05:10 +0100
commit71c79813d83b5b45ba934cf995436063da458f66 (patch)
tree65aa148ff433e1f7f122e451ef2f034aebce311d /block.h
parent3c42ea66888f149d72d600bab63624b2d849e4bf (diff)
downloadqemu-71c79813d83b5b45ba934cf995436063da458f66.tar.gz
block: bdrv_img_create(): add Error ** argument
This commit adds an Error ** argument to bdrv_img_create() and set it appropriately on error. Callers of bdrv_img_create() pass NULL for the new argument and still rely on bdrv_img_create()'s return value. Next commits will change callers to use the Error object instead. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.h')
-rw-r--r--block.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/block.h b/block.h
index 722c620590..ff54d15c86 100644
--- a/block.h
+++ b/block.h
@@ -345,7 +345,7 @@ int bdrv_load_vmstate(BlockDriverState *bs, uint8_t *buf,
int bdrv_img_create(const char *filename, const char *fmt,
const char *base_filename, const char *base_fmt,
- char *options, uint64_t img_size, int flags);
+ char *options, uint64_t img_size, int flags, Error **errp);
void bdrv_set_buffer_alignment(BlockDriverState *bs, int align);
void *qemu_blockalign(BlockDriverState *bs, size_t size);