From: Junichi Uekawa Date: Fri, 7 May 2021 09:43:30 +0000 (+0900) Subject: Fix doxygen warnings. (#600) X-Git-Tag: fuse-3.10.4~9 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8c4d315108352f9cc2c0d141989b4c01faff8b9e;p=qemu-gpiodev%2Flibfuse.git Fix doxygen warnings. (#600) Some parameters were undocumented, and @file does not mean to expand current file name. --- diff --git a/example/invalidate_path.c b/example/invalidate_path.c index 61ec351..9159b2f 100644 --- a/example/invalidate_path.c +++ b/example/invalidate_path.c @@ -19,10 +19,10 @@ * * ## Compilation ## * - * gcc -Wall @file `pkg-config fuse3 --cflags --libs` -o invalidate_path + * gcc -Wall invalidate_path.c `pkg-config fuse3 --cflags --libs` -o invalidate_path * * ## Source code ## - * \include @file + * \include invalidate_path.c */ #define FUSE_USE_VERSION 34 diff --git a/example/printcap.c b/example/printcap.c index bf058f5..472a597 100644 --- a/example/printcap.c +++ b/example/printcap.c @@ -16,7 +16,7 @@ * gcc -Wall printcap.c `pkg-config fuse3 --cflags --libs` -o printcap * * ## Source code ## - * \include @file + * \include printcap.c */ #define FUSE_USE_VERSION 31 diff --git a/include/fuse.h b/include/fuse.h index 0e03a76..9e6c633 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -51,6 +51,9 @@ enum fuse_readdir_flags { FUSE_READDIR_PLUS = (1 << 0) }; +/** + * Readdir flags, passed to fuse_fill_dir_t callback. + */ enum fuse_fill_dir_flags { /** * "Plus" mode: all file attributes are valid @@ -74,7 +77,7 @@ enum fuse_fill_dir_flags { * * @param buf the buffer passed to the readdir() operation * @param name the file name of the directory entry - * @param stat file attributes, can be NULL + * @param stbuf file attributes, can be NULL * @param off offset of the next entry or zero * @param flags fill flags * @return 1 if buffer is full, zero otherwise @@ -664,6 +667,10 @@ struct fuse_operations { */ int (*bmap) (const char *, size_t blocksize, uint64_t *idx); +#if FUSE_USE_VERSION < 35 + int (*ioctl) (const char *, int cmd, void *arg, + struct fuse_file_info *, unsigned int flags, void *data); +#else /** * Ioctl * @@ -680,10 +687,6 @@ struct fuse_operations { * Note : the unsigned long request submitted by the application * is truncated to 32 bits. */ -#if FUSE_USE_VERSION < 35 - int (*ioctl) (const char *, int cmd, void *arg, - struct fuse_file_info *, unsigned int flags, void *data); -#else int (*ioctl) (const char *, unsigned int cmd, void *arg, struct fuse_file_info *, unsigned int flags, void *data); #endif @@ -984,6 +987,10 @@ int fuse_loop(struct fuse *f); */ void fuse_exit(struct fuse *f); +#if FUSE_USE_VERSION < 32 +int fuse_loop_mt_31(struct fuse *f, int clone_fd); +#define fuse_loop_mt(f, clone_fd) fuse_loop_mt_31(f, clone_fd) +#else /** * FUSE event loop with multiple threads * @@ -1015,10 +1022,6 @@ void fuse_exit(struct fuse *f); * * See also: fuse_loop() */ -#if FUSE_USE_VERSION < 32 -int fuse_loop_mt_31(struct fuse *f, int clone_fd); -#define fuse_loop_mt(f, clone_fd) fuse_loop_mt_31(f, clone_fd) -#else int fuse_loop_mt(struct fuse *f, struct fuse_loop_config *config); #endif diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h index 95737eb..2a7db93 100644 --- a/include/fuse_lowlevel.h +++ b/include/fuse_lowlevel.h @@ -1967,6 +1967,11 @@ int fuse_session_mount(struct fuse_session *se, const char *mountpoint); */ int fuse_session_loop(struct fuse_session *se); +#if FUSE_USE_VERSION < 32 +int fuse_session_loop_mt_31(struct fuse_session *se, int clone_fd); +#define fuse_session_loop_mt(se, clone_fd) fuse_session_loop_mt_31(se, clone_fd) +#else +#if (!defined(__UCLIBC__) && !defined(__APPLE__)) /** * Enter a multi-threaded event loop. * @@ -1978,11 +1983,6 @@ int fuse_session_loop(struct fuse_session *se); * @param config session loop configuration * @return see fuse_session_loop() */ -#if FUSE_USE_VERSION < 32 -int fuse_session_loop_mt_31(struct fuse_session *se, int clone_fd); -#define fuse_session_loop_mt(se, clone_fd) fuse_session_loop_mt_31(se, clone_fd) -#else -#if (!defined(__UCLIBC__) && !defined(__APPLE__)) int fuse_session_loop_mt(struct fuse_session *se, struct fuse_loop_config *config); #else int fuse_session_loop_mt_32(struct fuse_session *se, struct fuse_loop_config *config);