diff options
author | milo <milo@r0ot.me> | 2011-02-20 14:04:56 +0100 |
---|---|---|
committer | milo <milo@r0ot.me> | 2011-02-20 14:37:34 +0100 |
commit | 6582da1d67ca85a1efd67c4d751295a7a818d34e (patch) | |
tree | c7452f90a7f873895fb2a1cf7f1ae33b95ef06e4 /include/libssh/libssh.h | |
parent | 0c76156f5485d490953b2b8674aba77cc5f1b34e (diff) | |
download | libssh-6582da1d67ca85a1efd67c4d751295a7a818d34e.tar.gz libssh-6582da1d67ca85a1efd67c4d751295a7a818d34e.tar.xz libssh-6582da1d67ca85a1efd67c4d751295a7a818d34e.zip |
poll: Added function to add an fd to the events.
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r-- | include/libssh/libssh.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 2604b419..9dd6b495 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -475,7 +475,12 @@ LIBSSH_API void ssh_string_free_char(char *s); LIBSSH_API int ssh_getpass(const char *prompt, char *buf, size_t len, int echo, int verify); + +typedef int (*ssh_event_callback)(socket_t fd, int revents, void *userdata); + LIBSSH_API ssh_event ssh_event_new(void); +LIBSSH_API int ssh_event_add_fd(ssh_event event, socket_t fd, short events, + ssh_event_callback cb, void *userdata); LIBSSH_API int ssh_event_add_session(ssh_event event, ssh_session session); LIBSSH_API int ssh_event_remove_session(ssh_event event, ssh_session session); LIBSSH_API void ssh_event_free(ssh_event event); |