include/sysemu/block-backend: split header into I/O and global state (GS) API
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>
Thu, 3 Mar 2022 15:15:52 +0000 (10:15 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Mar 2022 17:18:25 +0000 (18:18 +0100)
commita2c4c3b19bb2453008dfb5efdb35be0258b4cb2b
tree6f725d067279704968058a6f5185492f0eecd2b7
parent8cc5882c7fe0759f856b2f97a08816353227e8f7
include/sysemu/block-backend: split header into I/O and global state (GS) API

Similarly to the previous patches, split block-backend.h
in block-backend-io.h and block-backend-global-state.h

In addition, remove "block/block.h" include as it seems
it is not necessary anymore, together with "qemu/iov.h"

block-backend-common.h contains the structures shared between
the two headers, and the functions that can't be categorized as
I/O or global state.

Assertions are added in the next patch.

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Message-Id: <20220303151616.325444-8-eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c
include/sysemu/block-backend-common.h [new file with mode: 0644]
include/sysemu/block-backend-global-state.h [new file with mode: 0644]
include/sysemu/block-backend-io.h [new file with mode: 0644]
include/sysemu/block-backend.h