summaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2003-02-11 09:42:56 +0100
committerNiels Möller <nisse@lysator.liu.se>2003-02-11 09:42:56 +0100
commit97fcea891c3c6149bf41d3cd3d41cd3b8bffe369 (patch)
tree52c9f19a77910aa258ee6abe3745696281bb3af7 /buffer.h
parent9c9123a9a70f5d4c6d34bd9e9ad83982658e96f2 (diff)
downloadnettle-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.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/buffer.h b/buffer.h
index f10f9693..050b06ce 100644
--- a/buffer.h
+++ b/buffer.h
@@ -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,