summaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/buffer.h b/buffer.h
index d0f354ee7..4ef4f80b3 100644
--- a/buffer.h
+++ b/buffer.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: buffer.h,v 1.17 2008/05/08 06:59:01 markus Exp $ */ 1/* $OpenBSD: buffer.h,v 1.19 2010/02/09 03:56:28 djm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -27,8 +27,8 @@ void buffer_init(Buffer *);
27void buffer_clear(Buffer *); 27void buffer_clear(Buffer *);
28void buffer_free(Buffer *); 28void buffer_free(Buffer *);
29 29
30u_int buffer_len(Buffer *); 30u_int buffer_len(const Buffer *);
31void *buffer_ptr(Buffer *); 31void *buffer_ptr(const Buffer *);
32 32
33void buffer_append(Buffer *, const void *, u_int); 33void buffer_append(Buffer *, const void *, u_int);
34void *buffer_append_space(Buffer *, u_int); 34void *buffer_append_space(Buffer *, u_int);
@@ -40,7 +40,7 @@ void buffer_get(Buffer *, void *, u_int);
40void buffer_consume(Buffer *, u_int); 40void buffer_consume(Buffer *, u_int);
41void buffer_consume_end(Buffer *, u_int); 41void buffer_consume_end(Buffer *, u_int);
42 42
43void buffer_dump(Buffer *); 43void buffer_dump(const Buffer *);
44 44
45int buffer_get_ret(Buffer *, void *, u_int); 45int buffer_get_ret(Buffer *, void *, u_int);
46int buffer_consume_ret(Buffer *, u_int); 46int buffer_consume_ret(Buffer *, u_int);
@@ -81,6 +81,7 @@ int buffer_get_short_ret(u_short *, Buffer *);
81int buffer_get_int_ret(u_int *, Buffer *); 81int buffer_get_int_ret(u_int *, Buffer *);
82int buffer_get_int64_ret(u_int64_t *, Buffer *); 82int buffer_get_int64_ret(u_int64_t *, Buffer *);
83void *buffer_get_string_ret(Buffer *, u_int *); 83void *buffer_get_string_ret(Buffer *, u_int *);
84void *buffer_get_string_ptr_ret(Buffer *, u_int *);
84int buffer_get_char_ret(char *, Buffer *); 85int buffer_get_char_ret(char *, Buffer *);
85 86
86#endif /* BUFFER_H */ 87#endif /* BUFFER_H */