From b2cf9561fe5c0615aff91c29d89849c4bf6d8131 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 16 Sep 2004 08:42:40 +0000 Subject: fix --- include/fuse.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/fuse.h') diff --git a/include/fuse.h b/include/fuse.h index 845e645..81ef0d4 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -231,8 +231,9 @@ void fuse_destroy(struct fuse *f); * operations are called. * * @param f the FUSE handle + * @return 0 if no error occured, -1 otherwise */ -void fuse_loop(struct fuse *f); +int fuse_loop(struct fuse *f); /** * Exit from event loop @@ -252,8 +253,9 @@ void fuse_exit(struct fuse *f); * the application. * * @param f the FUSE handle + * @return 0 if no error occured, -1 otherwise */ -void fuse_loop_mt(struct fuse *f); +int fuse_loop_mt(struct fuse *f); /** * Get the current context @@ -284,7 +286,7 @@ struct fuse_cmd; typedef void (*fuse_processor_t)(struct fuse *, struct fuse_cmd *, void *); struct fuse_cmd *__fuse_read_cmd(struct fuse *f); void __fuse_process_cmd(struct fuse *f, struct fuse_cmd *cmd); -void __fuse_loop_mt(struct fuse *f, fuse_processor_t proc, void *data); +int __fuse_loop_mt(struct fuse *f, fuse_processor_t proc, void *data); int __fuse_exited(struct fuse* f); #ifdef __cplusplus -- cgit v1.2.3