From b23b3f1d9951df3ea7cc074de40db04bdf0d3a1c Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Fri, 14 May 2010 00:51:08 +0200 Subject: Sanitize libssh namespace + legacy wrappers --- include/libssh/buffer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/libssh/buffer.h') diff --git a/include/libssh/buffer.h b/include/libssh/buffer.h index 648a5b2..dec1173 100644 --- a/include/libssh/buffer.h +++ b/include/libssh/buffer.h @@ -22,6 +22,7 @@ #ifndef BUFFER_H_ #define BUFFER_H_ +#include "libssh/libssh.h" /* Describes a buffer state */ struct ssh_buffer_struct { char *data; @@ -30,6 +31,10 @@ struct ssh_buffer_struct { uint32_t pos; }; +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); int buffer_add_ssh_string(ssh_buffer buffer, ssh_string string); int buffer_add_u8(ssh_buffer buffer, uint8_t data); int buffer_add_u16(ssh_buffer buffer, uint16_t data); -- cgit