summaryrefslogtreecommitdiff
path: root/block.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-08-03 15:08:19 +0200
committerKevin Wolf <kwolf@redhat.com>2011-09-06 11:24:07 +0200
commit8f284857d8b327eb2dbe08c592fcf87822d79a76 (patch)
tree005077ad41c5ffafdf147f34820c7ea04f3f41a4 /block.h
parentf32136720c44cc0e9f3ba4bb8a4ed1ae4420e1d2 (diff)
downloadqemu-8f284857d8b327eb2dbe08c592fcf87822d79a76.tar.gz
qemu-8f284857d8b327eb2dbe08c592fcf87822d79a76.tar.bz2
qemu-8f284857d8b327eb2dbe08c592fcf87822d79a76.zip
block: Declare qemu_blockalign() in block.h, not block_int.h
Device models should be able to use it without an unclean include of block_int.h. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.h')
-rw-r--r--block.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/block.h b/block.h
index 7e3f587feb..8ec409fd18 100644
--- a/block.h
+++ b/block.h
@@ -258,6 +258,8 @@ 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);
+void *qemu_blockalign(BlockDriverState *bs, size_t size);
+
#define BDRV_SECTORS_PER_DIRTY_CHUNK 2048
void bdrv_set_dirty_tracking(BlockDriverState *bs, int enable);