obsoleted xpath_each
This commit is contained in:
parent
e79e48b46f
commit
b894c30bfb
4 changed files with 42 additions and 24 deletions
|
|
@ -43,7 +43,8 @@ int xpath_vec_xsl(cxobj *cxtop, char *xpath, cxobj ***vec, size_t *veclen);
|
|||
int xpath_vec_flag_xsl(cxobj *cxtop, char *xpath, uint16_t flags,
|
||||
cxobj ***vec, size_t *veclen);
|
||||
cxobj *xpath_first_xsl(cxobj *cxtop, char *xpath);
|
||||
#ifdef COMPAT_XSL
|
||||
cxobj *xpath_each(cxobj *xn_top, char *xpath, cxobj *prev);
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* _CLIXON_XSL_H */
|
||||
|
|
|
|||
|
|
@ -1162,6 +1162,17 @@ xpath_first(cxobj *xcur,
|
|||
* @param[out] veclen returns length of vector in return value
|
||||
* @retval 0 OK
|
||||
* @retval -1 Error
|
||||
* @code
|
||||
* cxobj **vec;
|
||||
* size_t veclen;
|
||||
* if (xpath_vec(xcur, "//symbol/foo", &vec, &veclen) < 0)
|
||||
* goto err;
|
||||
* for (i=0; i<veclen; i++){
|
||||
* xn = vec[i];
|
||||
* ...
|
||||
* }
|
||||
* free(vec);
|
||||
* @endcode
|
||||
*/
|
||||
int
|
||||
xpath_vec(cxobj *xcur,
|
||||
|
|
|
|||
|
|
@ -896,6 +896,7 @@ xpath_first_xsl(cxobj *xcur,
|
|||
return xn;
|
||||
}
|
||||
|
||||
#ifdef COMPAT_XSL
|
||||
/*! A restricted xpath iterator that loops over all matching entries. Dont use.
|
||||
*
|
||||
* See xpath1() on details for subset.
|
||||
|
|
@ -952,6 +953,7 @@ xpath_each(cxobj *xcur,
|
|||
done:
|
||||
return xn;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*! A restricted xpath that returns a vector of matches
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue