libnetconf 0.10.0-0.10.0
NETCONF Library
Loading...
Searching...
No Matches
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
49extern "C" {
50#endif
51
64int ncxml_filter(xmlNodePtr old, const struct nc_filter* filter, xmlNodePtr *new, const xmlDocPtr data_model);
65
87struct 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
112struct ncds_ds* ncds_new_transapi_static(NCDS_TYPE type, const char* model_path, const struct transapi* transapi);
113
134int ncds_add_augment_transapi_static(const char* model_path, const struct transapi* transapi);
135
163int 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.
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...
int ncxml_filter(xmlNodePtr old, const struct nc_filter *filter, xmlNodePtr *new, const xmlDocPtr data_model)
apply a filter to a given subtree
NCDS_TYPE
Datastore implementation types provided by libnetconf.
Definition datastore.h:54
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.
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.
Structure to describe transAPI module and connect it statically with libnetconf using ncds_new_transa...
Definition transapi.h:107
Functions implementing libnetconf TransAPI mechanism.