X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fwrbuf.h;h=8664c36b2b211cd06f4382e46a95ee2f9059ab0b;hp=4db046c94905bf3c98368e11cf7d7b0d5b558725;hb=7efed25c2ed807d32001e749f87f2eb300548c22;hpb=473824797f568578dc17d7242551cb2f7ccef46c diff --git a/include/yaz/wrbuf.h b/include/yaz/wrbuf.h index 4db046c..8664c36 100644 --- a/include/yaz/wrbuf.h +++ b/include/yaz/wrbuf.h @@ -274,6 +274,17 @@ void wrbuf_iconv_json_write(WRBUF b, yaz_iconv_t cd, YAZ_EXPORT void wrbuf_iconv_json_puts(WRBUF b, yaz_iconv_t cd, const char *strz); +/** \brief writes SHA1 text to WRBUF + \param b result + \param cp char buffer + \param sz size of char buffer + \param hexit 1=hex mode; 0=binary + \returns 0 if successful + \returns -1 on error +*/ +YAZ_EXPORT +int wrbuf_sha1_write(WRBUF b, const char *cp, size_t sz, int hexit); + YAZ_END_CDECL #endif