diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-05-04 10:17:10 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-05-04 10:17:10 +0000 |
commit | 43d881ba28ac0b71ad583aebc7b82db646990b56 (patch) | |
tree | f9da5e9845ec4e1cd3894c412547d75ef92561ff /include | |
parent | 3d9fbe8eea901de93a70df5cd1cfa2407583be68 (diff) | |
download | libssh-43d881ba28ac0b71ad583aebc7b82db646990b56.tar.gz libssh-43d881ba28ac0b71ad583aebc7b82db646990b56.tar.xz libssh-43d881ba28ac0b71ad583aebc7b82db646990b56.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 7 |
1 files changed, 4 insertions, 3 deletions
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); |