migration/rdma: Return -1 instead of negative errno code
[qemu/armbru.git] / hw / virtio / virtio-qmp.h
blob245a446a5675f79e25453fcdf56a55ac7154d7bf
1 /*
2 * Virtio QMP helpers
4 * Copyright IBM, Corp. 2007
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * SPDX-License-Identifier: GPL-2.0-or-later
11 #ifndef HW_VIRTIO_QMP_H
12 #define HW_VIRTIO_QMP_H
14 #include "qapi/qapi-types-virtio.h"
15 #include "hw/virtio/virtio.h"
16 #include "hw/virtio/vhost.h"
18 VirtIODevice *qmp_find_virtio_device(const char *path);
19 VirtioDeviceStatus *qmp_decode_status(uint8_t bitmap);
20 VhostDeviceProtocols *qmp_decode_protocols(uint64_t bitmap);
21 VirtioDeviceFeatures *qmp_decode_features(uint16_t device_id, uint64_t bitmap);
23 #endif