From: Adam Dickmeiss Date: Fri, 4 Jul 2008 09:25:46 +0000 (+0200) Subject: Renamed wrbuf_put to wrbuf_vputs and changed prototype. X-Git-Tag: v3.0.36~23 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=1e02454e1c94b60f62a7942b81a17bdc6c6d54da;p=yaz-moved-to-github.git Renamed wrbuf_put to wrbuf_vputs and changed prototype. --- diff --git a/include/yaz/wrbuf.h b/include/yaz/wrbuf.h index 2ebc3ef..7d757a3 100644 --- a/include/yaz/wrbuf.h +++ b/include/yaz/wrbuf.h @@ -60,7 +60,7 @@ YAZ_EXPORT int wrbuf_write(WRBUF b, const char *buf, int size); /** \brief appends C-string to WRBUF (returns int) */ YAZ_EXPORT int wrbuf_puts(WRBUF b, const char *buf); /** \brief appends C-string to WRBUF (void) */ -YAZ_EXPORT int wrbuf_put(WRBUF b, const char *buf); +YAZ_EXPORT void wrbuf_vputs(const char *buf, void *client_data); /** \brief writes buffer to WRBUF and XML encode (as CDATA) */ YAZ_EXPORT int wrbuf_xmlputs_n(WRBUF b, const char *cp, int size); diff --git a/src/wrbuf.c b/src/wrbuf.c index f9affa3..a7910b6 100644 --- a/src/wrbuf.c +++ b/src/wrbuf.c @@ -78,9 +78,9 @@ int wrbuf_puts(WRBUF b, const char *buf) return 0; } -void wrbug_put(WRBUF b, const char *buf) +void wrbuf_vputs(const char *buf, void *client_data) { - wrbuf_write(b, buf, strlen(buf)); + wrbuf_write((WRBUF) client_data, buf, strlen(buf)); } int wrbuf_puts_replace_char(WRBUF b, const char *buf,