aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-30 12:26:52 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-30 12:26:52 +0800
commitafccfb9380cc7c06fcacb19410796ba87ddee677 (patch)
treee44a425ce24680ddfb12baea386b1dd3224337f9 /openbsc/include
parent0f7a8258f041454b7b15ee434940a2028f5c3a82 (diff)
[vty] Allow to create a buffer in a given context.
Stop using the global vty context for all allocations and allow to embed the buffer into a given context, and allocate sub buffers with the context of its parent.
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/vty/buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/include/vty/buffer.h b/openbsc/include/vty/buffer.h
index 31519400f..c9467a91d 100644
--- a/openbsc/include/vty/buffer.h
+++ b/openbsc/include/vty/buffer.h
@@ -28,7 +28,7 @@
/* Create a new buffer. Memory will be allocated in chunks of the given
size. If the argument is 0, the library will supply a reasonable
default size suitable for buffering socket I/O. */
-struct buffer *buffer_new(size_t);
+struct buffer *buffer_new(void *ctx, size_t);
/* Free all data in the buffer. */
void buffer_reset(struct buffer *);