You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
564 B

5 years ago
  1. #pragma once
  2. #include <stdint.h>
  3. #include <sys/uio.h>
  4. #define FUSE_CHAN_SPLICE_READ (1<<0)
  5. #define FUSE_CHAN_SPLICE_WRITE (1<<1)
  6. typedef struct fuse_chan_t fuse_chan_t;
  7. struct fuse_chan_t
  8. {
  9. void *buf;
  10. uint64_t bufsize;
  11. int32_t fd;
  12. int32_t splice_pipe[2];
  13. uint32_t flags;
  14. };
  15. fuse_chan_t *fuse_chan_new(int32_t fd, uint32_t flags);
  16. void fuse_chan_destroy(fuse_chan_t *ch);
  17. int64_t fuse_chan_recv(fuse_chan_t *ch, char *buf, uint64_t size);
  18. int64_t fuse_chan_send(fuse_chan_t *ch, const struct iovec iov[], uint64_t count);