diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2013-03-22 17:55:16 +0100 |
---|---|---|
committer | Pino Toscano <toscano.pino@tiscali.it> | 2013-03-22 17:55:16 +0100 |
commit | 6ff1c4ce7e024833263a2cddba424bf5cb48ed42 (patch) | |
tree | 16c27a02f610c418acb6f9e144b4e5f2f6edb6ce /src/netfs.c | |
parent | b1f475196174db8bc750b545f23449dd5859d965 (diff) |
Create and use a fuse struct
Introduce a fuse struct and use it to hold a copy of the fuse_operation and their version,
and the private data returned by init.
* src/fuse_i.h (struct fuse): New.
(fuse_ops25): Remove.
(libfuse_fuse): New.
(FUSE_OP_HAVE, FUSE_OP_CALL): Use libfuse_fuse.
(fsys_privdata): Remove.
* src/main.c (fuse_ops25): Remove.
(libfuse_fuse): New.
(fsys_privdata): Remove.
(fuse_new): Create and fill a fuse struct.
(fuse_loop): Reject null F instead of anything but FUSE_MAGIC.
Set LIBFUSE_FUSE as F.
(fuse_loop_mt_proc): Likewise.
(fuse_demuxer): Use libfuse_fuse.
(fuse_process_cmd): Reject null F instead of anything but FUSE_MAGIC.
* src/netfs.c (refresh_context_struct): Use libfuse_fuse.
Diffstat (limited to 'src/netfs.c')
-rw-r--r-- | src/netfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netfs.c b/src/netfs.c index f8d0d3973..d708b6254 100644 --- a/src/netfs.c +++ b/src/netfs.c @@ -68,8 +68,8 @@ refresh_context_struct(struct iouser *cred) libfuse_ctx = ctx; - ctx->fuse = (void *) FUSE_MAGIC; - ctx->private_data = fsys_privdata; + ctx->fuse = libfuse_fuse; + ctx->private_data = libfuse_fuse->private_data; /* FIXME, how to figure out the pid of the program asking for the * filesystem operation? */ |