libnetconf2  2.0.24
NETCONF server and client library in C.
log.h
Go to the documentation of this file.
1 
15 #ifndef NC_LOG_H_
16 #define NC_LOG_H_
17 
18 struct nc_session;
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
32 typedef enum NC_VERB_LEVEL {
39 
51 
52 #ifdef NC_ENABLED_SSH
53 
70 
71 #endif
72 
78 void nc_set_print_clb(void (*clb)(NC_VERB_LEVEL, const char *));
79 
88 void nc_set_print_clb_session(void (*clb)(const struct nc_session *, NC_VERB_LEVEL, const char *));
89 
92 #ifdef __cplusplus
93 }
94 #endif
95 
96 #endif /* NC_LOG_H_ */
void nc_libssh_thread_verbosity(int level)
Set libssh verbosity level.
NC_VERB_LEVEL
Verbosity levels.
Definition: log.h:32
void nc_set_print_clb(void(*clb)(NC_VERB_LEVEL, const char *))
Deprecated, use nc_set_print_clb_session() instead.
void nc_set_print_clb_session(void(*clb)(const struct nc_session *, NC_VERB_LEVEL, const char *))
Set libnetconf print callback.
void nc_verbosity(NC_VERB_LEVEL level)
Set libnetconf's verbosity level.
@ NC_VERB_DEBUG
Definition: log.h:36
@ NC_VERB_DEBUG_LOWLVL
Definition: log.h:37
@ NC_VERB_WARNING
Definition: log.h:34
@ NC_VERB_ERROR
Definition: log.h:33
@ NC_VERB_VERBOSE
Definition: log.h:35