libnetconf  0.10.0-0.10.0
NETCONF Library
datastore_xml.h
Go to the documentation of this file.
1 
40 #ifndef NC_DATASTORE_XML_H_
41 #define NC_DATASTORE_XML_H_
42 
43 #include <libxml/tree.h>
44 
45 #include "datastore.h"
46 #include "transapi.h"
47 
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 
64 int ncxml_filter(xmlNodePtr old, const struct nc_filter* filter, xmlNodePtr *new, const xmlDocPtr data_model);
65 
87 struct ncds_ds* ncds_new2(NCDS_TYPE type, const char * model_path, xmlDocPtr (*get_state)(const xmlDocPtr model, const xmlDocPtr running, struct nc_err **e));
88 
112 struct ncds_ds* ncds_new_transapi_static(NCDS_TYPE type, const char* model_path, const struct transapi* transapi);
113 
134 int ncds_add_augment_transapi_static(const char* model_path, const struct transapi* transapi);
135 
163 int ncds_set_validation2(struct ncds_ds* ds, int enable, const char* relaxng,
164  const char* schematron,
165  int (*valid_func)(const xmlDocPtr config, struct nc_err **err));
166 
167 #ifdef __cplusplus
168 }
169 #endif
170 
171 #endif /* NC_DATASTORE_XML_H_ */
NETCONF datastore handling function prototypes and structures.
struct ncds_ds * ncds_new_transapi_static(NCDS_TYPE type, const char *model_path, const struct transapi *transapi)
Create new datastore structure with transaction API support.
NCDS_TYPE
Datastore implementation types provided by libnetconf.
Definition: datastore.h:54
Functions implementing libnetconf TransAPI mechanism.
int ncds_add_augment_transapi_static(const char *model_path, const struct transapi *transapi)
Extend datastore(s) with an augment model and its transAPI callbacks.
int ncds_set_validation2(struct ncds_ds *ds, int enable, const char *relaxng, const char *schematron, int(*valid_func)(const xmlDocPtr config, struct nc_err **err))
Set validators (or disable validation) on the specified datastore.
int ncxml_filter(xmlNodePtr old, const struct nc_filter *filter, xmlNodePtr *new, const xmlDocPtr data_model)
apply a filter to a given subtree
struct ncds_ds * ncds_new2(NCDS_TYPE type, const char *model_path, xmlDocPtr(*get_state)(const xmlDocPtr model, const xmlDocPtr running, struct nc_err **e))
Create a new datastore structure of the specified implementation type with get_state function using l...
Structure to describe transAPI module and connect it statically with libnetconf using ncds_new_transa...
Definition: transapi.h:107