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 <stefanha@redhat.com>
*/
void fuse_set_log_func(fuse_log_func_t func);
+/**
+ * Emit a log message
+ *
+ * @param level severity level (FUSE_LOG_ERR, FUSE_LOG_DEBUG, etc)
+ * @param fmt sprintf-style format string including newline
+ */
+void fuse_log(enum fuse_log_level level, const char *fmt, ...);
+
#ifdef __cplusplus
}
#endif
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
*/
#include "fuse_log.h"
-#include "fuse_i.h"
#include <stdarg.h>
#include <stdio.h>
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: