aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/libssh.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-11-06 14:11:52 -0500
committerAndreas Schneider <asn@cryptomilk.org>2013-11-09 12:29:25 +0100
commit7372cd837ac97a3be853843f0eb08da073e7310d (patch)
tree65f4023b3110226ed513252961a89ec3759171ad /include/libssh/libssh.h
parent1ecf7003f6c7088c567e41029d31adac73dd7903 (diff)
downloadlibssh-7372cd837ac97a3be853843f0eb08da073e7310d.tar.gz
libssh-7372cd837ac97a3be853843f0eb08da073e7310d.tar.xz
libssh-7372cd837ac97a3be853843f0eb08da073e7310d.zip
Add ssh_get_poll_flags()
For integration with an external mainloop, we need to know how to replicate libssh's internal poll() calls. We originally through ssh_get_status() was that API, but it's not really - those flags only get updated from the *result* of a poll(), where what we really need is to know how libssh would *start* a poll(). Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r--include/libssh/libssh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 3833adcd..f1b9fd8c 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -429,6 +429,7 @@ SSH_DEPRECATED LIBSSH_API int ssh_get_pubkey_hash(ssh_session session, unsigned
LIBSSH_API int ssh_get_random(void *where,int len,int strong);
LIBSSH_API int ssh_get_version(ssh_session session);
LIBSSH_API int ssh_get_status(ssh_session session);
+LIBSSH_API int ssh_get_poll_flags(ssh_session session);
LIBSSH_API int ssh_init(void);
LIBSSH_API int ssh_is_blocking(ssh_session session);
LIBSSH_API int ssh_is_connected(ssh_session session);