aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <mszeredi@suse.cz>2013-06-21 13:35:30 +0200
committerGravatar Miklos Szeredi <mszeredi@suse.cz>2013-06-21 13:35:30 +0200
commitb13051ae4179a0fa7b7febda8cf9cece12a73119 (patch)
tree5b88b4b755b567be3546a01f0657b17af86a045e /include
parent2bcfd55fc145430e49193715417ced10d58d7b54 (diff)
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();
Diffstat (limited to 'include')
-rw-r--r--include/fuse_lowlevel.h72
1 files changed, 1 insertions, 71 deletions
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index f62afcc..539c6e7 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -1575,56 +1575,6 @@ struct fuse_session *fuse_lowlevel_new(struct fuse_args *args,
* ----------------------------------------------------------- */
/**
- * Session operations
- *
- * This is used in session creation
- */
-struct fuse_session_ops {
- /**
- * Hook to process a request (mandatory)
- *
- * @param data user data passed to fuse_session_new()
- * @param buf buffer containing the raw request
- * @param len request length
- * @param ch channel on which the request was received
- */
- void (*process) (void *data, const char *buf, size_t len,
- struct fuse_chan *ch);
-
- /**
- * Hook for session exit and reset (optional)
- *
- * @param data user data passed to fuse_session_new()
- * @param val exited status (1 - exited, 0 - not exited)
- */
- void (*exit) (void *data, int val);
-
- /**
- * Hook for querying the current exited status (optional)
- *
- * @param data user data passed to fuse_session_new()
- * @return 1 if exited, 0 if not exited
- */
- int (*exited) (void *data);
-
- /**
- * Hook for cleaning up the channel on destroy (optional)
- *
- * @param data user data passed to fuse_session_new()
- */
- void (*destroy) (void *data);
-};
-
-/**
- * Create a new session
- *
- * @param op session operations
- * @param data user data
- * @return new session object, or NULL on failure
- */
-struct fuse_session *fuse_session_new(struct fuse_session_ops *op, void *data);
-
-/**
* Assign a channel to a session
*
* If a session is destroyed, the assigned channel is also destroyed
@@ -1652,21 +1602,9 @@ void fuse_session_remove_chan(struct fuse_chan *ch);
struct fuse_chan *fuse_session_chan(struct fuse_session *se);
/**
- * Process a raw request
- *
- * @param se the session
- * @param buf buffer containing the raw request
- * @param len request length
- * @param ch channel on which the request was received
- */
-void fuse_session_process(struct fuse_session *se, const char *buf, size_t len,
- struct fuse_chan *ch);
-
-/**
* Process a raw request supplied in a generic buffer
*
- * This is a more generic version of fuse_session_process(). The
- * fuse_buf may contain a memory buffer or a pipe file descriptor.
+ * The fuse_buf may contain a memory buffer or a pipe file descriptor.
*
* @param se the session
* @param buf the fuse_buf containing the request
@@ -1720,14 +1658,6 @@ void fuse_session_reset(struct fuse_session *se);
int fuse_session_exited(struct fuse_session *se);
/**
- * Get the user data provided to the session
- *
- * @param se the session
- * @return the user data
- */
-void *fuse_session_data(struct fuse_session *se);
-
-/**
* Enter a single threaded event loop
*
* @param se the session