libnetconf  0.10.0-146_trunk
NETCONF Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
callbacks.h
Go to the documentation of this file.
1 
40 #ifndef NC_CALLBACKS_H_
41 #define NC_CALLBACKS_H_
42 
43 #include "netconf.h"
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
58 void nc_callback_print(void (*func)(NC_VERB_LEVEL level, const char* msg));
59 
79 void nc_callback_error_reply(void (*func)(const char* tag,
80  const char* type,
81  const char* severity,
82  const char* apptag,
83  const char* path,
84  const char* message,
85  const char* attribute,
86  const char* element,
87  const char* ns,
88  const char* sid));
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif /* NC_CALLBACKS_H_ */
NC_VERB_LEVEL
Verbosity levels.
Definition: netconf.h:361
void nc_callback_error_reply(void(*func)(const char *tag, const char *type, const char *severity, const char *apptag, const char *path, const char *message, const char *attribute, const char *element, const char *ns, const char *sid))
Set a callback function to process (e.g. print) NETCONF <rpc-error> message items.If the func parameter is NULL, the callback is set back to the default (no) function.
void nc_callback_print(void(*func)(NC_VERB_LEVEL level, const char *msg))
Set a callback function for printing libnetconf's messages.If the func parameter is NULL...
libnetconf's general public functions and structures definitions.