From 43d881ba28ac0b71ad583aebc7b82db646990b56 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 4 May 2009 10:17:10 +0000 Subject: Improve channel_poll() and add a SSH_EOF return value. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@702 7dcaeef0-15fb-0310-b436-a5af3365683c --- include/libssh/libssh.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 4567e049..5d683322 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -147,10 +147,11 @@ typedef int socket_t; #define SSH_FATAL 2 #define SSH_EINTR 3 -/* error return codes */ +/* Error return codes */ #define SSH_OK 0 /* No error */ -#define SSH_ERROR -1 /* error of some kind */ -#define SSH_AGAIN -2 /* the nonblocking call must be repeated */ +#define SSH_ERROR -1 /* Error of some kind */ +#define SSH_AGAIN -2 /* The nonblocking call must be repeated */ +#define SSH_EOF -127 /* We have already a eof */ const char *ssh_get_error(void *error); int ssh_get_error_code(void *error); -- cgit