mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-30 15:00:34 +00:00
0e2082d9e5
Factor out v9fs_iov_v{,un}marshal. Implement pdu_{,un}marshal with those functions. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
19 lines
770 B
C
19 lines
770 B
C
#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, ...);
|
|
|
|
ssize_t v9fs_iov_vunmarshal(struct iovec *out_sg, int out_num, size_t offset,
|
|
int bswap, const char *fmt, va_list ap);
|
|
ssize_t v9fs_iov_vmarshal(struct iovec *in_sg, int in_num, size_t offset,
|
|
int bswap, const char *fmt, va_list ap);
|
|
#endif
|