summaryrefslogtreecommitdiff
path: root/fsdev/9p-iov-marshal.h
diff options
context:
space:
mode:
authorWei Liu <wei.liu2@citrix.com>2015-11-30 16:14:29 +0000
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2016-01-08 14:35:06 +0530
commit2209bd050a9287120b74f8616837293d739c5fb3 (patch)
treea7e4380dcadee18ed1ecfed2458a174d9b7c5188 /fsdev/9p-iov-marshal.h
parent829dd2861a0f925526c5598d65a1bc05de9186c2 (diff)
downloadqemu-2209bd050a9287120b74f8616837293d739c5fb3.tar.gz
fsdev: rename virtio-9p-marshal.{c,h} to 9p-iov-marshal.{c,h}
And rename v9fs_marshal to v9fs_iov_marshal, v9fs_unmarshal to v9fs_iov_unmarshal. The rationale behind this change is that, this marshalling interface is used both by virtio and proxy helper. Renaming files and functions to reflect the true nature of this interface. Xen transport is going to have its own marshalling interface. 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 'fsdev/9p-iov-marshal.h')
-rw-r--r--fsdev/9p-iov-marshal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/fsdev/9p-iov-marshal.h b/fsdev/9p-iov-marshal.h
new file mode 100644
index 0000000000..993614f544
--- /dev/null
+++ b/fsdev/9p-iov-marshal.h
@@ -0,0 +1,13 @@
+#ifndef _QEMU_9P_IOV_MARSHAL_H
+#define _QEMU_9P_IOV_MARSHAL_H
+
+#include "9p-marshal.h"
+
+
+ssize_t v9fs_pack(struct iovec *in_sg, int in_num, size_t offset,
+ const void *src, size_t size);
+ssize_t v9fs_iov_unmarshal(struct iovec *out_sg, int out_num, size_t offset,
+ int bswap, const char *fmt, ...);
+ssize_t v9fs_iov_marshal(struct iovec *in_sg, int in_num, size_t offset,
+ int bswap, const char *fmt, ...);
+#endif