New clixon-lib@2024-01-01.yang revision

* Replaced container creators to grouping/uses
This commit is contained in:
Olof hagsand 2024-01-09 10:42:33 +01:00
parent 74ed09b36e
commit ea645d1334
9 changed files with 136 additions and 56 deletions

View file

@ -170,10 +170,10 @@ typedef struct xml cxobj; /* struct defined in clicon_xml.c */
*
* @param[in] x XML node
* @param[in] arg General-purpose argument
* @retval -1 Error, aborted at first error encounter, return -1 to end user
* @retval 0 OK, continue
* @retval 1 Abort, dont continue with others, return 1 to end user
* @retval 2 Locally abort this subtree, continue with others
* @retval 1 Abort, dont continue with others, return 1 to end user
* @retval 0 OK, continue
* @retval -1 Error, aborted at first error encounter, return -1 to end user
*/
typedef int (xml_applyfn_t)(cxobj *x, void *arg);
@ -239,7 +239,6 @@ size_t xml_creator_len(cxobj *xn);
cvec *xml_creator_get(cxobj *xn);
int xml_creator_copy_one(cxobj *x0, cxobj *x1);
int xml_creator_copy_all(cxobj *x0, cxobj *x1);
int xml_creator_print(FILE *f, cxobj *xn);
char *xml_value(cxobj *xn);
int xml_value_set(cxobj *xn, char *val);

View file

@ -77,5 +77,6 @@ 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);
int xml_creator_tree(cxobj *xt, cxobj **xcreator);
#endif /* _CLIXON_XML_MAP_H_ */