X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fcql.h;h=148a9e0c7552dcd5ac117628a986e569025f001a;hp=817e04b3e324bf669f587d6199acefabd073fb6c;hb=02d2f2409c58ab49ab535758d85d70fae0f651f4;hpb=fccc0e1dbb7cc7937abb742071d55ab36df96aaa diff --git a/include/yaz/cql.h b/include/yaz/cql.h index 817e04b..148a9e0 100644 --- a/include/yaz/cql.h +++ b/include/yaz/cql.h @@ -260,6 +260,15 @@ int cql_to_ccl(struct cql_node *cn, YAZ_EXPORT void cql_to_ccl_stdio(struct cql_node *cn, FILE *f); +/** \brief converts CQL tree to CCL and writes result to buffer + \param cn CQL node (tree) + \param out buffer + \param max size of buffer (max chars to write) + \returns length of resulting buffer + */ +YAZ_EXPORT +int cql_to_ccl_buf(struct cql_node *cn, char *out, int max); + /** \brief stream handle for file (used by cql_to_xml_stdio) */ YAZ_EXPORT void cql_fputs(const char *buf, void *client_data);