40 #ifndef NC_DATASTORE_XML_H_
41 #define NC_DATASTORE_XML_H_
43 #include <libxml/tree.h>
73 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));
150 const char* schematron,
151 int (*valid_func)(
const xmlDocPtr config,
struct nc_err **err));
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.
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