From 4efd5cf34b7a04f87805aa0f09913d1d122d300c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 21 Jan 2011 19:18:07 +0000 Subject: avio: add av_put_str and deprecate put_strz in favor of it Signed-off-by: Mans Rullgard --- libavformat/avio.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libavformat/avio.h') diff --git a/libavformat/avio.h b/libavformat/avio.h index 198507e4a8..9f71c1921e 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -367,7 +367,15 @@ void put_le16(ByteIOContext *s, unsigned int val); void put_be16(ByteIOContext *s, unsigned int val); void put_tag(ByteIOContext *s, const char *tag); -void put_strz(ByteIOContext *s, const char *buf); +#if FF_API_OLD_AVIO +attribute_deprecated void put_strz(ByteIOContext *s, const char *buf); +#endif + +/** + * Write a NULL-terminated string. + * @return number of bytes written. + */ +int avio_put_str(ByteIOContext *s, const char *str); /** * fseek() equivalent for ByteIOContext. -- cgit v1.2.3