From d368dad2c8d34bc37d76ef36f79a463c12f933ff Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Tue, 10 Sep 2019 12:36:56 +0200 Subject: log: move fuse_log() to the public header file Applications may wish to call fuse_log() for unified logging. This way they don't need to define their own wrappers to invoke the log message handler function installed by fuse_set_log_func(). Signed-off-by: Stefan Hajnoczi --- lib/fuse_i.h | 2 -- lib/fuse_log.c | 1 - lib/fuse_versionscript | 6 ++++++ 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/fuse_i.h b/lib/fuse_i.h index 4883ef6..d38b630 100644 --- a/lib/fuse_i.h +++ b/lib/fuse_i.h @@ -131,8 +131,6 @@ struct fuse *fuse_new_31(struct fuse_args *args, const struct fuse_operations *o int fuse_loop_mt_32(struct fuse *f, struct fuse_loop_config *config); int fuse_session_loop_mt_32(struct fuse_session *se, struct fuse_loop_config *config); -void fuse_log(enum fuse_log_level level, const char *fmt, ...); - #define FUSE_MAX_MAX_PAGES 256 #define FUSE_DEFAULT_MAX_PAGES_PER_REQ 32 diff --git a/lib/fuse_log.c b/lib/fuse_log.c index 09178e4..0d268ab 100644 --- a/lib/fuse_log.c +++ b/lib/fuse_log.c @@ -9,7 +9,6 @@ */ #include "fuse_log.h" -#include "fuse_i.h" #include #include diff --git a/lib/fuse_versionscript b/lib/fuse_versionscript index 00f955d..11ef1f7 100644 --- a/lib/fuse_versionscript +++ b/lib/fuse_versionscript @@ -159,6 +159,12 @@ FUSE_3.4 { fuse_reply_copy_file_range; } FUSE_3.3; +FUSE_3.7 { + global: + fuse_set_log_func; + fuse_log; +} FUSE_3.3; + # Local Variables: # indent-tabs-mode: t # End: -- cgit v1.2.3