libfuse
fuse_log.h
Go to the documentation of this file.
1 /*
2  FUSE: Filesystem in Userspace
3  Copyright (C) 2019 Red Hat, Inc.
4 
5  This program can be distributed under the terms of the GNU LGPLv2.
6  See the file COPYING.LIB.
7 */
8 
9 #ifndef FUSE_LOG_H_
10 #define FUSE_LOG_H_
11 
17 #include <stdarg.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
29  FUSE_LOG_EMERG,
30  FUSE_LOG_ALERT,
31  FUSE_LOG_CRIT,
32  FUSE_LOG_ERR,
33  FUSE_LOG_WARNING,
34  FUSE_LOG_NOTICE,
35  FUSE_LOG_INFO,
36  FUSE_LOG_DEBUG
37 };
38 
52 typedef void (*fuse_log_func_t)(enum fuse_log_level level,
53  const char *fmt, va_list ap);
54 
69 
76 void fuse_log(enum fuse_log_level level, const char *fmt, ...);
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
82 #endif /* FUSE_LOG_H_ */
void(* fuse_log_func_t)(enum fuse_log_level level, const char *fmt, va_list ap)
Definition: fuse_log.h:52
fuse_log_level
Definition: fuse_log.h:28
void fuse_set_log_func(fuse_log_func_t func)
Definition: fuse_log.c:25
void fuse_log(enum fuse_log_level level, const char *fmt,...)
Definition: fuse_log.c:33