diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-02-24 15:13:35 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-05-19 16:45:30 +0200 |
commit | 22aa8b246ada8d45add8eef64d4640a20b4f7ef3 (patch) | |
tree | 3d4c42208230b6e538be75111281d75cc63beb1f /include | |
parent | 97148076e8beebbcab11e5cb581d8508722143fc (diff) |
block: Introduce BdrvChild.opaque
BlockBackends use it to get a back pointer from BdrvChild to
BlockBackend in any BdrvChildRole callbacks.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/block/block_int.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index 1218857f82..47dfafa462 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -373,6 +373,7 @@ struct BdrvChild { BlockDriverState *bs; char *name; const BdrvChildRole *role; + void *opaque; QLIST_ENTRY(BdrvChild) next; QLIST_ENTRY(BdrvChild) next_parent; }; |