libnetconf 0.10.0-0.10.0
NETCONF Library
Loading...
Searching...
No Matches
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
46extern "C" {
47#endif
48
58void nc_callback_print(void (*func)(NC_VERB_LEVEL level, const char* msg));
59
79void 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_ */
void nc_callback_print(void(*func)(NC_VERB_LEVEL level, const char *msg))
Set a callback function for printing libnetconf's messages.
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.
libnetconf's general public functions and structures definitions.