From b13051ae4179a0fa7b7febda8cf9cece12a73119 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 21 Jun 2013 13:35:30 +0200 Subject: libfuse: clean up fuse_session Clean up fuse_session related interfaces. Remove the following from the lowlevel library API: struct fuse_session_ops; fuse_session_new(); fuse_session_process(); fuse_session_data(); --- lib/fuse_i.h | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'lib/fuse_i.h') diff --git a/lib/fuse_i.h b/lib/fuse_i.h index 33fbb43..c205fa8 100644 --- a/lib/fuse_i.h +++ b/lib/fuse_i.h @@ -13,14 +13,14 @@ struct fuse_chan; struct fuse_ll; struct fuse_session { - struct fuse_session_ops op; - int (*receive_buf)(struct fuse_session *se, struct fuse_buf *buf, struct fuse_chan **chp); void (*process_buf)(void *data, const struct fuse_buf *buf, struct fuse_chan *ch); + void (*destroy) (void *data); + void *data; volatile int exited; @@ -95,6 +95,23 @@ struct fuse_chan *fuse_kern_chan_new(int fd); int fuse_chan_clearfd(struct fuse_chan *ch); +/** + * Create a new session + * + * @param data user data + * @return new session object, or NULL on failure + */ +struct fuse_session *fuse_session_new(void *data); + +/** + * Get the user data provided to the session + * + * @param se the session + * @return the user data + */ +void *fuse_session_data(struct fuse_session *se); + + void fuse_kern_unmount(const char *mountpoint, int fd); int fuse_kern_mount(const char *mountpoint, struct fuse_args *args); -- cgit v1.2.3