From d8ae7147bfe8f40e72ea640c6631a4b2c6f2c6c9 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 25 Oct 2001 14:16:17 +0000 Subject: improvements --- fuse_i.h | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'fuse_i.h') diff --git a/fuse_i.h b/fuse_i.h index 70e149c..a7a907f 100644 --- a/fuse_i.h +++ b/fuse_i.h @@ -6,6 +6,8 @@ See the file COPYING. */ +#include "fuse.h" + #include #include #include @@ -40,20 +42,29 @@ struct fuse_conn { /** Connnection number (for debuging) */ int id; + + /** The request id */ + int reqctr; }; /** - * A filesystem request + * A request to the client */ struct fuse_req { /** The request list */ struct list_head list; - /** The size of the data */ + /** The size of the parameters */ size_t size; - /** A pointer to the data */ - void *data; + /** The request parameters */ + struct fuse_param param; + + /** The request wait queue */ + wait_queue_head_t waitq; + + /** True if the request is finished */ + int done; }; /** @@ -97,6 +108,14 @@ int fuse_fs_init(void); */ void fuse_fs_cleanup(void); +/** + * Send a request + * + * @valuret: if true then the request can return a positive value + */ +void request_send(struct fuse_conn *fc, struct fuse_inparam *in, + struct fuse_outparam *out, int valuret); + /* * Local Variables: * indent-tabs-mode: t -- cgit v1.2.3