diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-30 12:26:52 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-30 13:29:34 +0800 |
commit | 1700c933f202260345caf733c5d147a1243aef48 (patch) | |
tree | 1652ab11115fb0c4b62e26adc47beac7fbb50c57 /openbsc/include/vty | |
parent | 9e282de7c8c856975aa41ab100e38f1891962936 (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/vty')
-rw-r--r-- | openbsc/include/vty/buffer.h | 2 |
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 *); |