X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fcql.h;h=2ec97761b4213d5d331ebcf20b3ae7fde658f761;hp=83b6217e445c94ce8a27dbfe45409263531f157f;hb=dd993ee2910a754d46b2223c06b09abdd61caceb;hpb=4d827d4162155ab4514acb05dd2a1a38c29f4bcf diff --git a/include/yaz/cql.h b/include/yaz/cql.h index 83b6217..2ec9776 100644 --- a/include/yaz/cql.h +++ b/include/yaz/cql.h @@ -417,6 +417,16 @@ int cql_sortby_to_sortkeys(struct cql_node *cn, void (*pr)(const char *buf, void *client_data), void *client_data); +/** \brief converts CQL sortby to sortkeys .. + \param cn CQL tree + \param out result buffer + \param max size of buffer (allocated) + \retval 0 OK + \retval -1 ERROR +*/ +YAZ_EXPORT +int cql_sortby_to_sortkeys_buf(struct cql_node *cn, char *out, int max); + YAZ_END_CDECL #endif