xref: /openbmc/qemu/fsdev/9p-iov-marshal.h (revision 520e210c)
1 #ifndef QEMU_9P_IOV_MARSHAL_H
2 #define QEMU_9P_IOV_MARSHAL_H
3 
4 #include "9p-marshal.h"
5 
6 
7 ssize_t v9fs_pack(struct iovec *in_sg, int in_num, size_t offset,
8                   const void *src, size_t size);
9 ssize_t v9fs_iov_unmarshal(struct iovec *out_sg, int out_num, size_t offset,
10                            int bswap, const char *fmt, ...);
11 ssize_t v9fs_iov_marshal(struct iovec *in_sg, int in_num, size_t offset,
12                          int bswap, const char *fmt, ...);
13 
14 ssize_t v9fs_iov_vunmarshal(struct iovec *out_sg, int out_num, size_t offset,
15                             int bswap, const char *fmt, va_list ap);
16 ssize_t v9fs_iov_vmarshal(struct iovec *in_sg, int in_num, size_t offset,
17                           int bswap, const char *fmt, va_list ap);
18 #endif
19