aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFredyVia <942513309@qq.com>2024-03-20 23:08:04 +0800
committerGitHub <noreply@github.com>2024-03-20 16:08:04 +0100
commitc021e910a5592756f7c3fa47f89d83e41c8a3505 (patch)
tree533e0e2d83802b7007b30b2b21cad9ec7928f8d2 /include
parent9a823df6d91869960b733581dc71ccefcbe92cc3 (diff)
downloadlibfuse-c021e910a5592756f7c3fa47f89d83e41c8a3505.tar.gz
Add FUSE_FILL_DIR_DEFAULTS enum (#903)
In order to use the fuse_fill_dir_t function in a C++ program, add the enum item: FUSE_FILL_DIR_DEFAULTS Without this change g++ compilation failed with example/hello.c:94:35: error: invalid conversion from ‘int’ to ‘fuse_fill_dir_flags’ [-fpermissive] 94 | filler(buf, ".", NULL, 0, 0); | ^ | | | int
Diffstat (limited to 'include')
-rw-r--r--include/fuse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fuse.h b/include/fuse.h
index f0c6f10..90ee4bb 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -48,6 +48,7 @@ enum fuse_readdir_flags {
* FUSE_FILL_DIR_FLAGS for the filler function. The filesystem may also
* just ignore this flag completely.
*/
+ FUSE_READDIR_DEFAULTS = 0,
FUSE_READDIR_PLUS = (1 << 0)
};
@@ -64,6 +65,7 @@ enum fuse_fill_dir_flags {
* It is okay to set FUSE_FILL_DIR_PLUS if FUSE_READDIR_PLUS is not set
* and vice versa.
*/
+ FUSE_FILL_DIR_DEFAULTS = 0,
FUSE_FILL_DIR_PLUS = (1 << 1)
};