diff options
author | Niels Möller <nisse@lysator.liu.se> | 2003-02-11 09:42:56 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2003-02-11 09:42:56 +0100 |
commit | 97fcea891c3c6149bf41d3cd3d41cd3b8bffe369 (patch) | |
tree | 52c9f19a77910aa258ee6abe3745696281bb3af7 /buffer.h | |
parent | 9c9123a9a70f5d4c6d34bd9e9ad83982658e96f2 (diff) | |
download | nettle-97fcea891c3c6149bf41d3cd3d41cd3b8bffe369.tar.gz |
(nettle_buffer_init_realloc): New function.
Rev: src/nettle/buffer.c:1.6
Rev: src/nettle/buffer.h:1.5
Diffstat (limited to 'buffer.h')
-rw-r--r-- | buffer.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -34,8 +34,8 @@ struct nettle_buffer /* Allocated size */ unsigned alloc; - nettle_realloc_func *realloc; void *realloc_ctx; + nettle_realloc_func *realloc; /* Current size */ unsigned size; @@ -45,6 +45,11 @@ struct nettle_buffer void nettle_buffer_init(struct nettle_buffer *buffer); +void +nettle_buffer_init_realloc(struct nettle_buffer *buffer, + void *realloc_ctx, + nettle_realloc_func realloc); + /* Initializes a buffer of fix size */ void nettle_buffer_init_size(struct nettle_buffer *buffer, |