diff options
author | Eric Blake | 2020-05-13 03:16:43 +0200 |
---|---|---|
committer | Eric Blake | 2020-05-19 17:32:14 +0200 |
commit | c6996cf9a6c759c29919642be9a73ac64b38301b (patch) | |
tree | a5e73329adfbf47137d08fee8ebb3dd0f933b4eb /include/block | |
parent | block: Make it easier to learn which BDS support bitmaps (diff) | |
download | qemu-c6996cf9a6c759c29919642be9a73ac64b38301b.tar.gz qemu-c6996cf9a6c759c29919642be9a73ac64b38301b.tar.xz qemu-c6996cf9a6c759c29919642be9a73ac64b38301b.zip |
blockdev: Promote several bitmap functions to non-static
The next patch will split blockdev.c, which will require accessing
some previously-static functions from more than one .c file. But part
of promoting a function to public is picking a naming scheme that does
not reek of exposing too many internals (two of the three functions
were named starting with 'do_'). To make future code motion easier,
perform the function rename and non-static promotion into its own
patch.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200513011648.166876-5-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Diffstat (limited to 'include/block')
-rw-r--r-- | include/block/block_int.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index 33a12916f4..791de6a59c 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -1344,4 +1344,16 @@ int coroutine_fn bdrv_co_create_opts_simple(BlockDriver *drv, Error **errp); extern QemuOptsList bdrv_create_opts_simple; +BdrvDirtyBitmap *block_dirty_bitmap_lookup(const char *node, + const char *name, + BlockDriverState **pbs, + Error **errp); +BdrvDirtyBitmap *block_dirty_bitmap_merge(const char *node, const char *target, + BlockDirtyBitmapMergeSourceList *bms, + HBitmap **backup, Error **errp); +BdrvDirtyBitmap *block_dirty_bitmap_remove(const char *node, const char *name, + bool release, + BlockDriverState **bitmap_bs, + Error **errp); + #endif /* BLOCK_INT_H */ |