diff options
Diffstat (limited to 'include/fuse_lowlevel.h')
-rw-r--r-- | include/fuse_lowlevel.h | 42 |
1 files changed, 9 insertions, 33 deletions
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h index 3cfff32..da12152 100644 --- a/include/fuse_lowlevel.h +++ b/include/fuse_lowlevel.h @@ -943,14 +943,6 @@ struct fuse_session *fuse_lowlevel_new(struct fuse_args *args, const struct fuse_lowlevel_ops *op, size_t op_size, void *userdata); -/** - * Create a kernel channel - * - * @param fd the file descriptor obtained from fuse_mount() - * @return the created channel object, or NULL on failure - */ -struct fuse_chan *fuse_kern_chan_new(int fd); - /* ----------------------------------------------------------- * * Session interface * * ----------------------------------------------------------- */ @@ -1019,6 +1011,15 @@ struct fuse_session *fuse_session_new(struct fuse_session_ops *op, void *data); void fuse_session_add_chan(struct fuse_session *se, struct fuse_chan *ch); /** + * Remove a channel from a session + * + * If the channel is not assigned to a session, then this is a no-op + * + * @param ch the channel to remove + */ +void fuse_session_remove_chan(struct fuse_chan *ch); + +/** * Iterate over the channels assigned to a session * * The iterating function needs to start with a NULL channel, and @@ -1208,31 +1209,6 @@ int fuse_chan_send(struct fuse_chan *ch, const struct iovec iov[], void fuse_chan_destroy(struct fuse_chan *ch); /* ----------------------------------------------------------- * - * Signal handling * - * ----------------------------------------------------------- */ - -/** - * Exit session on HUP, TERM and INT signals and ignore PIPE signal - * - * Stores session in a global variable. May only be called once per - * process until fuse_remove_signal_handlers() is called. - * - * @param se the session to exit - * @return 0 on success, -1 on failure - */ -int fuse_set_signal_handlers(struct fuse_session *se); - -/** - * Restore default signal handlers - * - * Resets global session. After this fuse_set_signal_handlers() may - * be called again. - * - * @param se the same session as given in fuse_set_signal_handlers() - */ -void fuse_remove_signal_handlers(struct fuse_session *se); - -/* ----------------------------------------------------------- * * Compatibility stuff * * ----------------------------------------------------------- */ |