diff options
author | Wei Liu <wei.liu2@citrix.com> | 2015-12-03 12:40:28 +0000 |
---|---|---|
committer | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2016-01-08 15:19:40 +0530 |
commit | fe9fa96d7c83efc1457bd6a5b07aab7550c6d197 (patch) | |
tree | 9ed58288faa4eb234ff693120adabf1d383b502b /hw/9pfs/virtio-9p.h | |
parent | 0e2082d9e5aafbde9d1cf71159ce0123cd9fda05 (diff) | |
download | qemu-fe9fa96d7c83efc1457bd6a5b07aab7550c6d197.zip qemu-fe9fa96d7c83efc1457bd6a5b07aab7550c6d197.tar.gz qemu-fe9fa96d7c83efc1457bd6a5b07aab7550c6d197.tar.bz2 |
9pfs: factor out virtio_pdu_{,un}marshal
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'hw/9pfs/virtio-9p.h')
-rw-r--r-- | hw/9pfs/virtio-9p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/9pfs/virtio-9p.h b/hw/9pfs/virtio-9p.h index d6f3ac0..e298949 100644 --- a/hw/9pfs/virtio-9p.h +++ b/hw/9pfs/virtio-9p.h @@ -323,6 +323,11 @@ extern int v9fs_name_to_path(V9fsState *s, V9fsPath *dirpath, ssize_t pdu_marshal(V9fsPDU *pdu, size_t offset, const char *fmt, ...); ssize_t pdu_unmarshal(V9fsPDU *pdu, size_t offset, const char *fmt, ...); +ssize_t virtio_pdu_vmarshal(V9fsPDU *pdu, size_t offset, + const char *fmt, va_list ap); +ssize_t virtio_pdu_vunmarshal(V9fsPDU *pdu, size_t offset, + const char *fmt, va_list ap); + #define TYPE_VIRTIO_9P "virtio-9p-device" #define VIRTIO_9P(obj) \ OBJECT_CHECK(V9fsState, (obj), TYPE_VIRTIO_9P) |