diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-08-03 15:08:19 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-09-06 11:24:07 +0200 |
commit | ba5b7ad4495a9788d0af67133186bbc7a553008f (patch) | |
tree | 005077ad41c5ffafdf147f34820c7ea04f3f41a4 | |
parent | 124386cc756f6a7975562d652d0e98a379292138 (diff) |
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>
-rw-r--r-- | block.h | 2 | ||||
-rw-r--r-- | block_int.h | 2 | ||||
-rw-r--r-- | hw/sd.c | 1 |
3 files changed, 2 insertions, 3 deletions
@@ -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); diff --git a/block_int.h b/block_int.h index 539b4ed895..5dc0074bfc 100644 --- a/block_int.h +++ b/block_int.h @@ -224,8 +224,6 @@ void *qemu_aio_get(AIOPool *pool, BlockDriverState *bs, BlockDriverCompletionFunc *cb, void *opaque); void qemu_aio_release(void *p); -void *qemu_blockalign(BlockDriverState *bs, size_t size); - #ifdef _WIN32 int is_windows_drive(const char *filename); #endif @@ -31,7 +31,6 @@ #include "hw.h" #include "block.h" -#include "block_int.h" #include "sd.h" //#define DEBUG_SD 1 |