aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-09-07 06:02:44 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2006-09-07 06:02:44 +0000
commit288ed4ebcea335c77793ee3d207c7466d55c4f71 (patch)
treedfdf3cf06866141cdce9811cff1f7fb5ed5ad5a0 /include
parent38f152c72decfc8a995c8a9fa7f932f348d0e1e2 (diff)
downloadlibfuse-288ed4ebcea335c77793ee3d207c7466d55c4f71.tar.gz
interrupt support
Diffstat (limited to 'include')
-rw-r--r--include/fuse.h14
-rw-r--r--include/fuse_lowlevel.h8
2 files changed, 20 insertions, 2 deletions
diff --git a/include/fuse.h b/include/fuse.h
index 8a18914..b05075d 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -513,12 +513,19 @@ int fuse_loop_mt(struct fuse *f);
* The context is only valid for the duration of a filesystem
* operation, and thus must not be stored and used later.
*
- * @param f the FUSE handle
* @return the context
*/
struct fuse_context *fuse_get_context(void);
/**
+ * Check if a request has already been interrupted
+ *
+ * @param req request handle
+ * @return 1 if the request has been interrupted, 0 otherwise
+ */
+int fuse_interrupted(void);
+
+/**
* Obsolete, doesn't do anything
*
* @return -EINVAL
@@ -540,6 +547,9 @@ int fuse_main_real(int argc, char *argv[], const struct fuse_operations *op,
* Advanced API for event handling, don't worry about this... *
* ----------------------------------------------------------- */
+/* NOTE: the following functions are deprecated, and will be removed
+ from the 3.0 API. Use the lowlevel session functions instead */
+
/** Function type used to process commands */
typedef void (*fuse_processor_t)(struct fuse *, struct fuse_cmd *, void *);
@@ -566,7 +576,7 @@ int fuse_loop_mt_proc(struct fuse *f, fuse_processor_t proc, void *data);
called */
int fuse_exited(struct fuse *f);
-/** Set function which can be used to get the current context */
+/** This function is obsolete and implemented as a no-op */
void fuse_set_getcontext_func(struct fuse_context *(*func)(void));
/** Get session from fuse object */
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index a676830..58f568c 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -1006,6 +1006,14 @@ typedef void (*fuse_interrupt_func_t)(fuse_req_t req, void *data);
void fuse_req_interrupt_func(fuse_req_t req, fuse_interrupt_func_t func,
void *data);
+/**
+ * Check if a request has already been interrupted
+ *
+ * @param req request handle
+ * @return 1 if the request has been interrupted, 0 otherwise
+ */
+int fuse_req_interrupted(fuse_req_t req);
+
/* ----------------------------------------------------------- *
* Filesystem setup *
* ----------------------------------------------------------- */