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