diff options
Diffstat (limited to 'buffer.h')
-rw-r--r-- | buffer.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 *); | |||
27 | void buffer_clear(Buffer *); | 27 | void buffer_clear(Buffer *); |
28 | void buffer_free(Buffer *); | 28 | void buffer_free(Buffer *); |
29 | 29 | ||
30 | u_int buffer_len(Buffer *); | 30 | u_int buffer_len(const Buffer *); |
31 | void *buffer_ptr(Buffer *); | 31 | void *buffer_ptr(const Buffer *); |
32 | 32 | ||
33 | void buffer_append(Buffer *, const void *, u_int); | 33 | void buffer_append(Buffer *, const void *, u_int); |
34 | void *buffer_append_space(Buffer *, u_int); | 34 | void *buffer_append_space(Buffer *, u_int); |
@@ -40,7 +40,7 @@ void buffer_get(Buffer *, void *, u_int); | |||
40 | void buffer_consume(Buffer *, u_int); | 40 | void buffer_consume(Buffer *, u_int); |
41 | void buffer_consume_end(Buffer *, u_int); | 41 | void buffer_consume_end(Buffer *, u_int); |
42 | 42 | ||
43 | void buffer_dump(Buffer *); | 43 | void buffer_dump(const Buffer *); |
44 | 44 | ||
45 | int buffer_get_ret(Buffer *, void *, u_int); | 45 | int buffer_get_ret(Buffer *, void *, u_int); |
46 | int buffer_consume_ret(Buffer *, u_int); | 46 | int buffer_consume_ret(Buffer *, u_int); |
@@ -81,6 +81,7 @@ int buffer_get_short_ret(u_short *, Buffer *); | |||
81 | int buffer_get_int_ret(u_int *, Buffer *); | 81 | int buffer_get_int_ret(u_int *, Buffer *); |
82 | int buffer_get_int64_ret(u_int64_t *, Buffer *); | 82 | int buffer_get_int64_ret(u_int64_t *, Buffer *); |
83 | void *buffer_get_string_ret(Buffer *, u_int *); | 83 | void *buffer_get_string_ret(Buffer *, u_int *); |
84 | void *buffer_get_string_ptr_ret(Buffer *, u_int *); | ||
84 | int buffer_get_char_ret(char *, Buffer *); | 85 | int buffer_get_char_ret(char *, Buffer *); |
85 | 86 | ||
86 | #endif /* BUFFER_H */ | 87 | #endif /* BUFFER_H */ |