summaryrefslogtreecommitdiffstats
path: root/include/libssh/libssh.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r--include/libssh/libssh.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index ebfe41f1..60002504 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -90,6 +90,10 @@ typedef uint8_t u8;
#define SSH_FATAL 2
#define SSH_EINTR 3
+/* error return codes */
+#define SSH_OK 0 /* No error */
+#define SSH_ERROR -1 /* error of some kind */
+#define SSH_AGAIN 1 /* the nonblocking call must be repeated */
char *ssh_get_error(void *error);
int ssh_get_error_code(void *error);