diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-09-23 21:55:54 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-09-23 21:55:54 +0200 |
commit | 9a8d4cd0fdd18127065cacbc11296933669ea9ca (patch) | |
tree | cccf507167e28aa5038cea357d1f220668a4e937 /include/libssh/server.h | |
parent | ffed8b03bb6e170abbd9564547ba439302840618 (diff) | |
download | libssh-9a8d4cd0fdd18127065cacbc11296933669ea9ca.tar.gz libssh-9a8d4cd0fdd18127065cacbc11296933669ea9ca.tar.xz libssh-9a8d4cd0fdd18127065cacbc11296933669ea9ca.zip |
get rid of SSH_SESSION
Diffstat (limited to 'include/libssh/server.h')
-rw-r--r-- | include/libssh/server.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libssh/server.h b/include/libssh/server.h index 26f16b59..fefee1b0 100644 --- a/include/libssh/server.h +++ b/include/libssh/server.h @@ -103,7 +103,7 @@ LIBSSH_API void ssh_bind_fd_toaccept(SSH_BIND *ssh_bind); * * @return A newly allocated ssh session, NULL on error. */ -LIBSSH_API SSH_SESSION *ssh_bind_accept(SSH_BIND *ssh_bind); +LIBSSH_API ssh_session ssh_bind_accept(SSH_BIND *ssh_bind); /** * @brief Free a ssh servers bind. @@ -119,7 +119,7 @@ LIBSSH_API void ssh_bind_free(SSH_BIND *ssh_bind); * * @return 0 on success, < 0 on error. */ -LIBSSH_API int ssh_accept(SSH_SESSION *session); +LIBSSH_API int ssh_accept(ssh_session session); LIBSSH_API int channel_write_stderr(ssh_channel channel, const void *data, uint32_t len); @@ -136,7 +136,7 @@ LIBSSH_API int ssh_message_auth_set_methods(SSH_MESSAGE *msg, int methods); LIBSSH_API int ssh_message_service_reply_success(SSH_MESSAGE *msg); LIBSSH_API char *ssh_message_service_service(SSH_MESSAGE *msg); -LIBSSH_API void ssh_set_message_callback(SSH_SESSION *session, +LIBSSH_API void ssh_set_message_callback(ssh_session session, int(*ssh_message_callback)(ssh_session session, ssh_message msg)); LIBSSH_API char *ssh_message_channel_request_open_originator(SSH_MESSAGE *msg); |