C-API: Exposed diff function
Test: double leaf validate test
This commit is contained in:
parent
d358387d39
commit
fcf9a8b0b0
8 changed files with 115 additions and 89 deletions
|
|
@ -43,13 +43,6 @@
|
|||
/*
|
||||
* Types
|
||||
*/
|
||||
enum format_enum{
|
||||
FORMAT_XML,
|
||||
FORMAT_JSON,
|
||||
FORMAT_TEXT,
|
||||
FORMAT_CLI,
|
||||
FORMAT_NETCONF
|
||||
};
|
||||
|
||||
/* Protocol message header */
|
||||
struct clicon_msg {
|
||||
|
|
|
|||
|
|
@ -177,6 +177,15 @@ typedef int (xml_applyfn_t)(cxobj *x, void *arg);
|
|||
|
||||
typedef struct clixon_xml_vec clixon_xvec; /* struct defined in clicon_xml_vec.c */
|
||||
|
||||
/* Alternative formats */
|
||||
enum format_enum{
|
||||
FORMAT_XML,
|
||||
FORMAT_JSON,
|
||||
FORMAT_TEXT,
|
||||
FORMAT_CLI,
|
||||
FORMAT_NETCONF
|
||||
};
|
||||
|
||||
/*
|
||||
* xml_flag() flags:
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -75,5 +75,6 @@ int yang_xml_mandatory(cxobj *xt, yang_stmt *ys);
|
|||
int xml_rpc_isaction(cxobj *xn);
|
||||
int xml_find_action(cxobj *xn, int top, cxobj **xap);
|
||||
int purge_tagged_nodes(cxobj *xn, char *ns, char *name, char *value, int keepnode);
|
||||
int clixon_compare_xmls(cxobj *xc1, cxobj *xc2, enum format_enum format, clicon_output_cb *fn);
|
||||
|
||||
#endif /* _CLIXON_XML_MAP_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue