aboutsummaryrefslogtreecommitdiff
path: root/include/block
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2019-02-01 20:29:15 +0100
committerMax Reitz <mreitz@redhat.com>2019-02-25 15:11:26 +0100
commit6b6833c1b4d11d7d838bce34ed4a2d7c42855efe (patch)
tree7471e68e26ad34e71cde337d685274449b40bf58 /include/block
parent645ae7d88e5393a2a67ebe325f4456ecd49e33e5 (diff)
block: bdrv_get_full_backing_filename's ret. val.
Make bdrv_get_full_backing_filename() return an allocated string instead of placing the result in a caller-provided buffer. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Message-id: 20190201192935.18394-12-mreitz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/block/block.h b/include/block/block.h
index 5f1650304d..42cc38f598 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -487,8 +487,7 @@ void bdrv_round_to_clusters(BlockDriverState *bs,
void bdrv_get_backing_filename(BlockDriverState *bs,
char *filename, int filename_size);
-void bdrv_get_full_backing_filename(BlockDriverState *bs,
- char *dest, size_t sz, Error **errp);
+char *bdrv_get_full_backing_filename(BlockDriverState *bs, Error **errp);
char *bdrv_get_full_backing_filename_from_filename(const char *backed,
const char *backing,
Error **errp);