diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-02 09:38:06 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-02 10:46:49 -0700 |
commit | 65c9df72e33c134ebcac03b1ef6c1c98ae3e887c (patch) | |
tree | e4d61a0509757e624e70491064e562333d806187 /lib/fuse_lowlevel.c | |
parent | 63fcf7a1434e6210a010010242fab0a17e75afee (diff) |
Turned fuse_session_{process,receive}_buf into wrapper functions.
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rwxr-xr-x | lib/fuse_lowlevel.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index b425856..8b08f3a 100755 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -2437,7 +2437,14 @@ static int fuse_ll_copy_from_pipe(struct fuse_bufvec *dst, } void fuse_session_process_buf(struct fuse_session *se, - const struct fuse_buf *buf, struct fuse_chan *ch) + const struct fuse_buf *buf, + struct fuse_chan *ch) +{ + fuse_session_process_buf_int(se, buf, ch); +} + +void fuse_session_process_buf_int(struct fuse_session *se, + const struct fuse_buf *buf, struct fuse_chan *ch) { struct fuse_ll *f = se->f; const size_t write_header_size = sizeof(struct fuse_in_header) + @@ -2712,6 +2719,12 @@ static void fuse_ll_pipe_destructor(void *data) int fuse_session_receive_buf(struct fuse_session *se, struct fuse_buf *buf, struct fuse_chan *ch) { + return fuse_session_receive_buf_int(se, buf, ch); +} + +int fuse_session_receive_buf_int(struct fuse_session *se, struct fuse_buf *buf, + struct fuse_chan *ch) +{ struct fuse_ll *f = se->f; int err; ssize_t res; |