libnetconf  0.10.0-146_trunk
NETCONF Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
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));
74 
98 struct ncds_ds* ncds_new_transapi_static(NCDS_TYPE type, const char* model_path, const struct transapi* transapi);
99 
120 int ncds_add_augment_transapi_static(const char* model_path, const struct transapi* transapi);
121 
149 int ncds_set_validation2(struct ncds_ds* ds, int enable, const char* relaxng,
150  const char* schematron,
151  int (*valid_func)(const xmlDocPtr config, struct nc_err **err));
152 
153 #ifdef __cplusplus
154 }
155 #endif
156 
157 #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.
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