From 1e02454e1c94b60f62a7942b81a17bdc6c6d54da Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 4 Jul 2008 11:25:46 +0200 Subject: [PATCH] Renamed wrbuf_put to wrbuf_vputs and changed prototype. --- include/yaz/wrbuf.h | 2 +- src/wrbuf.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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, -- 1.7.10.4