aboutsummaryrefslogtreecommitdiff
path: root/lib/fuse_i.h
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <mszeredi@suse.cz>2013-06-21 18:17:27 +0200
committerGravatar Miklos Szeredi <mszeredi@suse.cz>2013-06-21 18:17:27 +0200
commit5334a152e1272a072339fb4519de04ed4269d3ca (patch)
treece350efe74f0ecc17fd7cc4d43ddf51d06b5a993 /lib/fuse_i.h
parent39065e40e0f00528980b35b52d8f5e13759e5a59 (diff)
libfuse: remove fuse_chan_(send|receive)
Move the fuse_chan_ops.send and .receive implementations to fuse_lowlevel.c. The abstraction wasn't actually useful and made the the splice implementation more difficult. Remove fuse_chan_ops.send and fuse_chan_ops.receive.
Diffstat (limited to 'lib/fuse_i.h')
-rw-r--r--lib/fuse_i.h52
1 files changed, 1 insertions, 51 deletions
diff --git a/lib/fuse_i.h b/lib/fuse_i.h
index 245e175..741c3d5 100644
--- a/lib/fuse_i.h
+++ b/lib/fuse_i.h
@@ -19,30 +19,6 @@ struct fuse_ll;
*/
struct fuse_chan_ops {
/**
- * Hook for receiving a raw request
- *
- * @param ch pointer to the channel
- * @param buf the buffer to store the request in
- * @param size the size of the buffer
- * @return the actual size of the raw request, or -1 on error
- */
- int (*receive)(struct fuse_chan **chp, char *buf, size_t size);
-
- /**
- * Hook for sending a raw reply
- *
- * A return value of -ENOENT means, that the request was
- * interrupted, and the reply was discarded
- *
- * @param ch the channel
- * @param iov vector of blocks
- * @param count the number of blocks in vector
- * @return zero on success, -errno on failure
- */
- int (*send)(struct fuse_chan *ch, const struct iovec iov[],
- size_t count);
-
- /**
* Destroy the channel
*
* @param ch the channel
@@ -52,7 +28,7 @@ struct fuse_chan_ops {
struct fuse_session {
int (*receive_buf)(struct fuse_session *se, struct fuse_buf *buf,
- struct fuse_chan **chp);
+ struct fuse_chan *ch);
void (*process_buf)(void *data, const struct fuse_buf *buf,
struct fuse_chan *ch);
@@ -168,32 +144,6 @@ struct fuse_chan *fuse_chan_new(struct fuse_chan_ops *op, int fd,
*/
struct fuse_session *fuse_chan_session(struct fuse_chan *ch);
-/**
- * Send a raw reply
- *
- * A return value of -ENOENT means, that the request was
- * interrupted, and the reply was discarded
- *
- * @param ch the channel
- * @param iov vector of blocks
- * @param count the number of blocks in vector
- * @return zero on success, -errno on failure
- */
-int fuse_chan_send(struct fuse_chan *ch, const struct iovec iov[],
- size_t count);
-
-/**
- * Receive a raw request
- *
- * A return value of -ENODEV means, that the filesystem was unmounted
- *
- * @param ch pointer to the channel
- * @param buf the buffer to store the request in
- * @param size the size of the buffer
- * @return the actual size of the raw request, or -errno on error
- */
-int fuse_chan_recv(struct fuse_chan **ch, char *buf, size_t size);
-
void fuse_kern_unmount(const char *mountpoint, int fd);
int fuse_kern_mount(const char *mountpoint, struct fuse_args *args);