summaryrefslogtreecommitdiff
path: root/libavutil/bprint.h
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-05-13 11:38:19 +0200
committerClément Bœsch <ubitux@gmail.com>2012-05-14 19:11:39 +0200
commit9548deeea9434732a718749ae931be53caba2c30 (patch)
tree8594d2a076a417fdc2bcbbe9e76c26cc5000fac2 /libavutil/bprint.h
parent7a442233198ad71785cc9bf540eb0b7aaef25dd2 (diff)
lavu/bprint: add av_bprint_reset().
Diffstat (limited to 'libavutil/bprint.h')
-rw-r--r--libavutil/bprint.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/bprint.h b/libavutil/bprint.h
index c5d750df8b..ad65afec69 100644
--- a/libavutil/bprint.h
+++ b/libavutil/bprint.h
@@ -110,6 +110,11 @@ void av_bprintf(AVBPrint *buf, const char *fmt, ...) av_printf_format(2, 3);
void av_bprint_chars(AVBPrint *buf, char c, unsigned n);
/**
+ * Reset the string to "" but keep internal allocated data.
+ */
+void av_bprint_clear(AVBPrint *buf);
+
+/**
* Test if the print buffer is complete (not truncated).
*
* It may have been truncated due to a memory allocation failure