aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2004-09-22 08:48:26 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2004-09-22 08:48:26 +0000
commitd169f31d6926c5bdc7c66822b6a49c87ddf7f901 (patch)
tree77e03086637d4f2f7855bbb36553822499154c7a /include/fuse.h
parentc2309918d4fda35c647764ee072894891fb4a21c (diff)
downloadlibfuse-d169f31d6926c5bdc7c66822b6a49c87ddf7f901.tar.gz
fix
Diffstat (limited to 'include/fuse.h')
-rw-r--r--include/fuse.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/include/fuse.h b/include/fuse.h
index 81ef0d4..22de11b 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -133,6 +133,7 @@ struct fuse_operations {
/** Extra context that may be needed by some filesystems */
struct fuse_context {
+ struct fuse *fuse;
uid_t uid;
gid_t gid;
};
@@ -162,15 +163,6 @@ extern "C" {
*/
void fuse_main(int argc, char *argv[], const struct fuse_operations *op);
-/*
- * Returns the fuse object created by fuse_main()
- *
- * This is useful when fuse_get_context() is used.
- *
- * @return the fuse object
- */
-struct fuse *fuse_get(void);
-
/**
* Invalidate cached data of a file.
*
@@ -266,7 +258,7 @@ int fuse_loop_mt(struct fuse *f);
* @param f the FUSE handle
* @return the context
*/
-struct fuse_context *fuse_get_context(struct fuse *f);
+struct fuse_context *fuse_get_context(void);
/**
* Check whether a mount option should be passed to the kernel or the
@@ -288,6 +280,7 @@ struct fuse_cmd *__fuse_read_cmd(struct fuse *f);
void __fuse_process_cmd(struct fuse *f, struct fuse_cmd *cmd);
int __fuse_loop_mt(struct fuse *f, fuse_processor_t proc, void *data);
int __fuse_exited(struct fuse* f);
+void __fuse_set_getcontext_func(struct fuse_context *(*func)(void));
#ifdef __cplusplus
}