From 152da0702351dce04b62999aa98efc57fbda4489 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 4 May 2009 10:06:49 +0000 Subject: Implement channel_read() as a POSIX like function. Create channel_read_buffer() to have the old version still available. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@700 7dcaeef0-15fb-0310-b436-a5af3365683c --- include/libssh/libssh.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/libssh/libssh.h') diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 828655ee..4567e049 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -281,11 +281,14 @@ int channel_request_sftp(CHANNEL *channel); int channel_write(CHANNEL *channel, const void *data, u32 len); int channel_send_eof(CHANNEL *channel); int channel_is_eof(CHANNEL *channel); -int channel_read(CHANNEL *channel, BUFFER *buffer, u32 bytes, int is_stderr); +int channel_read(CHANNEL *channel, void *dest, u32 count, int is_stderr); +int channel_read_buffer(CHANNEL *channel, BUFFER *buffer, u32 count, + int is_stderr); int channel_poll(CHANNEL *channel, int is_stderr); int channel_close(CHANNEL *channel); void channel_set_blocking(CHANNEL *channel, int blocking); -int channel_read_nonblocking(CHANNEL *channel, char *dest, u32 len, int is_stderr); +int channel_read_nonblocking(CHANNEL *channel, void *dest, u32 count, + int is_stderr); int channel_is_open(CHANNEL *channel); int channel_is_closed(CHANNEL *channel); int channel_select(CHANNEL **readchans, CHANNEL **writechans, CHANNEL **exceptchans, struct -- cgit