minor edits

This commit is contained in:
Olof Hagsand 2017-12-22 19:02:20 +01:00
parent ca16007b66
commit b743b0a080
3 changed files with 14 additions and 3 deletions

View file

@ -2,7 +2,7 @@
## 3.4.0 (Upcoming) ## 3.4.0 (Upcoming)
* Clixon_backend now returns -1/255 on error instead of NULL. Useful for systemd restarts, for example. * Clixon_backend now returns -1/255 on error instead of 0. Useful for systemd restarts, for example.
* Fixed bug that deletes running on startup if backup started with -m running. * Fixed bug that deletes running on startup if backup started with -m running.
When clixon starts again, running is lost. When clixon starts again, running is lost.

View file

@ -747,6 +747,15 @@ xml_rm(cxobj *xc)
* @param[out] xcp xml child node. New root * @param[out] xcp xml child node. New root
* @retval 0 OK * @retval 0 OK
* @retval -1 Error * @retval -1 Error
* @code
* cxobj *xt = NULL;
* if (xml_parse_string("<a>2</a>", NULL, &xt) < 0)
* err;
* # Here xt will be: <top><a>2</a></top>
* if (xml_rootchild(xt, 0, &xt) < 0)
* err;
* # Here xt will be: <a>2</a>
* @endcode
* @see xml_child_rm * @see xml_child_rm
*/ */
int int
@ -1057,6 +1066,7 @@ xml_print(FILE *f,
* cb = cbuf_new(); * cb = cbuf_new();
* if (clicon_xml2cbuf(cb, xn, 0, 1) < 0) * if (clicon_xml2cbuf(cb, xn, 0, 1) < 0)
* goto err; * goto err;
* fprintf(stderr, "%s", cbuf_get(cb));
* cbuf_free(cb); * cbuf_free(cb);
* @endcode * @endcode
* @see clicon_xml2file * @see clicon_xml2file
@ -1341,7 +1351,8 @@ xml_parse_file(int fd,
* @endcode * @endcode
* @see xml_parse_file * @see xml_parse_file
* @see xml_parse_va * @see xml_parse_va
* @note you need to free the xml parse tree after use, using xml_free() * @note You need to free the xml parse tree after use, using xml_free()
* @note If empty on entry, a new TOP xml will be created named "top"
*/ */
int int
xml_parse_string(const char *str, xml_parse_string(const char *str,

View file

@ -1030,7 +1030,7 @@ xpath_each(cxobj *xcur,
* @retval -1 error. * @retval -1 error.
* *
* @code * @code
* cxobj **xvec; * cxobj **xvec = NULL;
* size_t xlen; * size_t xlen;
* if (xpath_vec(xcur, "//symbol/foo", &xvec, &xlen) < 0) * if (xpath_vec(xcur, "//symbol/foo", &xvec, &xlen) < 0)
* goto err; * goto err;