summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@debian.org>2021-05-07 18:43:30 +0900
committerGitHub <noreply@github.com>2021-05-07 10:43:30 +0100
commit8c4d315108352f9cc2c0d141989b4c01faff8b9e (patch)
tree12d8c7d18dfcb889bb8782205b10f10c8ac8f16c /include
parent98e261cfabb90a7c15cd77d1d30b2693a00cdb1d (diff)
downloadfuse-8c4d315108352f9cc2c0d141989b4c01faff8b9e.tar.gz
Fix doxygen warnings. (#600)
Some parameters were undocumented, and @file does not mean to expand current file name.
Diffstat (limited to 'include')
-rw-r--r--include/fuse.h21
-rw-r--r--include/fuse_lowlevel.h10
2 files changed, 17 insertions, 14 deletions
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);