From c021e910a5592756f7c3fa47f89d83e41c8a3505 Mon Sep 17 00:00:00 2001 From: FredyVia <942513309@qq.com> Date: Wed, 20 Mar 2024 23:08:04 +0800 Subject: Add FUSE_FILL_DIR_DEFAULTS enum (#903) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/fuse.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/fuse.h') 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) }; -- cgit v1.2.3