summaryrefslogtreecommitdiffstats
path: root/membuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'membuffer.h')
-rw-r--r--membuffer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/membuffer.h b/membuffer.h
index c0a4f6029..434b34c71 100644
--- a/membuffer.h
+++ b/membuffer.h
@@ -18,6 +18,7 @@ struct membuffer {
#define __printf(x, y)
#endif
+extern char *detach_buffer(struct membuffer *b);
extern void free_buffer(struct membuffer *);
extern void flush_buffer(struct membuffer *, FILE *);
extern void put_bytes(struct membuffer *, const char *, int);
@@ -30,6 +31,11 @@ extern __printf(2, 3) void put_format(struct membuffer *, const char *fmt, ...);
extern __printf(2, 0) char *add_to_string_va(const char *old, const char *fmt, va_list args);
extern __printf(2, 3) char *add_to_string(const char *old, const char *fmt, ...);
+/* Helpers that use membuffers internally */
+extern __printf(1, 0) char *vformat_string(const char *, va_list);
+extern __printf(1, 2) char *format_string(const char *, ...);
+
+
/* Output one of our "milli" values with type and pre/post data */
extern void put_milli(struct membuffer *, const char *, int, const char *);