diff options
author | Eric Blake <eblake@redhat.com> | 2020-05-12 20:16:43 -0500 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2020-05-19 10:32:14 -0500 |
commit | c6996cf9a6c759c29919642be9a73ac64b38301b (patch) | |
tree | a5e73329adfbf47137d08fee8ebb3dd0f933b4eb /include/block | |
parent | ef893b5c84f3199d777e33966dc28839f71b1a5c (diff) | |
download | qemu-c6996cf9a6c759c29919642be9a73ac64b38301b.zip qemu-c6996cf9a6c759c29919642be9a73ac64b38301b.tar.gz qemu-c6996cf9a6c759c29919642be9a73ac64b38301b.tar.bz2 |
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 33a1291..791de6a 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 */ |