libnetconf2  1.1.48
NETCONF library for clients and servers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
netconf.h
Go to the documentation of this file.
1 
15 #ifndef NC_NETCONF_H_
16 #define NC_NETCONF_H_
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #include <time.h>
23 
30 #define NC_NS_BASE "urn:ietf:params:xml:ns:netconf:base:1.0"
31 
32 #define NC_NS_NOTIF "urn:ietf:params:xml:ns:netconf:notification:1.0"
33 
35 #define NC_PORT_SSH 830
36 
37 #define NC_PORT_CH_SSH 4334
38 
40 #define NC_PORT_TLS 6513
41 
42 #define NC_PORT_CH_TLS 4335
43 
50 #define nc_set_rpc_callback(node, cb) lys_set_private(node, cb)
51 
55 typedef enum NC_SESSION_TERM_REASON {
65 
69 typedef enum NC_MSG_TYPE {
79 } NC_MSG_TYPE;
80 
84 extern const char *nc_msgtype2str[];
85 
89 typedef enum NC_DATASTORE_TYPE {
96 } NC_DATASTORE;
97 
101 typedef enum NC_WITHDEFAULTS_MODE {
107 } NC_WD_MODE;
108 
112 typedef enum NC_REPLY {
117 } NC_RPL;
118 
122 typedef enum NC_PARAMTYPE {
126 } NC_PARAMTYPE;
127 
141 char* nc_time2datetime(time_t time, const char* tz, char *buf);
142 
152 time_t nc_datetime2time(const char* datetime);
153 
156 #ifdef __cplusplus
157 }
158 #endif
159 
160 #endif /* NC_NETCONF_H_ */
enum NC_REPLY NC_RPL
Enumeration of NETCONF (both server and client) rpc-reply types.
NC_MSG_TYPE
Enumeration of NETCONF message types.
Definition: netconf.h:69
char * nc_time2datetime(time_t time, const char *tz, char *buf)
Transform given time_t (seconds since the epoch) into the RFC 3339 format accepted by NETCONF functio...
NC_DATASTORE_TYPE
Enumeration of the supported types of datastores defined by NETCONF.
Definition: netconf.h:89
time_t nc_datetime2time(const char *datetime)
Transform given string in RFC 3339 compliant format to the time_t (seconds since the epoch) accepted ...
enum NC_DATASTORE_TYPE NC_DATASTORE
Enumeration of the supported types of datastores defined by NETCONF.
NC_PARAMTYPE
Enumeration of function parameter treatments.
Definition: netconf.h:122
NC_WITHDEFAULTS_MODE
Enumeration of NETCONF with-defaults capability modes.
Definition: netconf.h:101
NC_SESSION_TERM_REASON
Enumeration of reasons of the NETCONF session termination as defined in RFC 6470. ...
Definition: netconf.h:55
enum NC_WITHDEFAULTS_MODE NC_WD_MODE
Enumeration of NETCONF with-defaults capability modes.
const char * nc_msgtype2str[]
Messages of NETCONF message type enum.
NC_REPLY
Enumeration of NETCONF (both server and client) rpc-reply types.
Definition: netconf.h:112