vhost-user: move VhostUserProtocolFeature definition to header file
authorJonah Palmer <jonah.palmer@oracle.com>
Tue, 26 Sep 2023 22:41:07 +0000 (18:41 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Oct 2023 08:54:28 +0000 (04:54 -0400)
commit3d123a8b411706423581db7d26a7bbe548360751
tree2b0700cf3cd10213aedcbf1f4ff7ac6a775ebaa3
parent58f81689789f63853d7585c5168f687f1633893a
vhost-user: move VhostUserProtocolFeature definition to header file

Move the definition of VhostUserProtocolFeature to
include/hw/virtio/vhost-user.h.

Remove previous definitions in hw/scsi/vhost-user-scsi.c,
hw/virtio/vhost-user.c, and hw/virtio/virtio-qmp.c.

Previously there were 3 separate definitions of this over 3 different
files. Now only 1 definition of this will be present for these 3 files.

Signed-off-by: Jonah Palmer <jonah.palmer@oracle.com>
Reviewed-by: Emmanouil Pitsidianakis <manos.pitsidianakis@linaro.org>
Message-Id: <20230926224107.2951144-4-jonah.palmer@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/scsi/vhost-user-scsi.c
hw/virtio/vhost-user.c
hw/virtio/virtio-qmp.c
include/hw/virtio/vhost-user.h