libnetconf  0.10.0-146_trunk
NETCONF Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
error.h
Go to the documentation of this file.
1 
40 #ifndef NC_ERROR_H_
41 #define NC_ERROR_H_
42 
43 #include "netconf.h"
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
53 struct nc_err;
54 
55 typedef enum {
76 }NC_ERR;
77 
84 struct nc_err* nc_err_new(NC_ERR error);
85 
92 struct nc_err* nc_err_dup(const struct nc_err* error);
93 
99 void nc_err_free(struct nc_err* err);
100 
109 int nc_err_set(struct nc_err* err, NC_ERR_PARAM param, const char* value);
110 
119 const char* nc_err_get(const struct nc_err* err, NC_ERR_PARAM param);
120 
121 #ifdef __cplusplus
122 }
123 #endif
124 
125 #endif /* NC_ERROR_H_ */
Definition: error.h:65
Definition: error.h:62
Definition: error.h:72
Definition: error.h:73
Definition: error.h:68
Definition: error.h:74
NC_ERR
Definition: error.h:55
Definition: error.h:57
Definition: error.h:75
struct nc_err * nc_err_new(NC_ERR error)
Create a new error description structure.
Definition: error.h:69
Definition: error.h:64
Definition: error.h:67
Definition: error.h:70
int nc_err_set(struct nc_err *err, NC_ERR_PARAM param, const char *value)
Set selected parameter of the NETCONF error structure to the specified value.
Definition: error.h:61
Definition: error.h:71
Definition: error.h:66
const char * nc_err_get(const struct nc_err *err, NC_ERR_PARAM param)
Get value of the specified parameter of the NETCONF error structure.
Definition: error.h:58
void nc_err_free(struct nc_err *err)
Free NETCONF error structure.
Definition: error.h:56
Definition: error.h:59
Definition: error.h:60
NC_ERR_PARAM
Definition: netconf.h:197
libnetconf's general public functions and structures definitions.
struct nc_err * nc_err_dup(const struct nc_err *error)
Duplicate an error description structure.
Definition: error.h:63