summaryrefslogtreecommitdiff
path: root/lib/buffer.h
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2017-07-14 08:00:43 -0400
committerGitHub <noreply@github.com>2017-07-14 08:00:43 -0400
commit28bd1c1158c10268655878d12e5d8f17737de1bb (patch)
tree576ef3527922cd2a0fec59fadf1cff947e8f2079 /lib/buffer.h
parenteef83e96f7141c8b016462195e01b824c600c89e (diff)
parent28b672fcd33f328964c91f0a3d06cd904bddad42 (diff)
Merge pull request #813 from opensourcerouting/newline-redux
newline redux
Diffstat (limited to 'lib/buffer.h')
-rw-r--r--lib/buffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/buffer.h b/lib/buffer.h
index 67ac71cad8..059f2cf338 100644
--- a/lib/buffer.h
+++ b/lib/buffer.h
@@ -41,6 +41,8 @@ extern void buffer_put (struct buffer *, const void *, size_t);
extern void buffer_putc (struct buffer *, u_char);
/* Add a NUL-terminated string to the end of the buffer. */
extern void buffer_putstr (struct buffer *, const char *);
+/* Add given data, inline-expanding \n to \r\n */
+extern void buffer_put_crlf(struct buffer *b, const void *p, size_t size);
/* Combine all accumulated (and unflushed) data inside the buffer into a
single NUL-terminated string allocated using XMALLOC(MTYPE_TMP). Note