summaryrefslogtreecommitdiffstats
path: root/include/libssh/buffer.h
diff options
context:
space:
mode:
authorFabiano Fidêncio <fidencio@redhat.com>2015-09-25 01:21:42 +0200
committerFabiano Fidêncio <fidencio@redhat.com>2015-10-12 13:56:21 +0200
commit86e3680bdedee10b6f0a46360b5a330d96e2f707 (patch)
tree7e4ab41bffcaf587716f69def9f9e11d7b28678c /include/libssh/buffer.h
parentd1de73c7aaa65b2a137ada57b479d5a42e4c212f (diff)
downloadlibssh-86e3680bdedee10b6f0a46360b5a330d96e2f707.tar.gz
libssh-86e3680bdedee10b6f0a46360b5a330d96e2f707.tar.xz
libssh-86e3680bdedee10b6f0a46360b5a330d96e2f707.zip
buffer: remove ssh_buffer_get_rest_len()
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Diffstat (limited to 'include/libssh/buffer.h')
-rw-r--r--include/libssh/buffer.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/libssh/buffer.h b/include/libssh/buffer.h
index 15294b2d..656db958 100644
--- a/include/libssh/buffer.h
+++ b/include/libssh/buffer.h
@@ -43,7 +43,6 @@ struct ssh_buffer_struct {
LIBSSH_API void ssh_buffer_free(ssh_buffer buffer);
LIBSSH_API void *ssh_buffer_get_begin(ssh_buffer buffer);
-LIBSSH_API uint32_t ssh_buffer_get_len(ssh_buffer buffer);
LIBSSH_API ssh_buffer ssh_buffer_new(void);
void ssh_buffer_set_secure(ssh_buffer buffer);
int ssh_buffer_add_ssh_string(ssh_buffer buffer, ssh_string string);
@@ -80,8 +79,8 @@ int ssh_buffer_reinit(ssh_buffer buffer);
/* ssh_buffer_get_rest returns a pointer to the current position into the buffer */
void *ssh_buffer_get(ssh_buffer buffer);
-/* ssh_buffer_get_rest_len returns the number of bytes which can be read */
-uint32_t ssh_buffer_get_rest_len(ssh_buffer buffer);
+/* ssh_buffer_get_len returns the number of bytes which can be read */
+LIBSSH_API uint32_t ssh_buffer_get_len(ssh_buffer buffer);
/* buffer_read_*() returns the number of bytes read, except for ssh strings */
int ssh_buffer_get_u8(ssh_buffer buffer, uint8_t *data);