diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-03-09 18:32:09 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-03-09 18:33:49 +0100 |
commit | cd9fc88151fb66225297ec3a278a2d9756544b38 (patch) | |
tree | e785c95b1810104ac1b4906aa9f6f22c228fb312 /include/libssh/server.h | |
parent | fbe0f37e1baed6ea636b86ade105bd5ca1ca79ee (diff) | |
download | libssh-cd9fc88151fb66225297ec3a278a2d9756544b38.tar.gz libssh-cd9fc88151fb66225297ec3a278a2d9756544b38.tar.xz libssh-cd9fc88151fb66225297ec3a278a2d9756544b38.zip |
doc: Improve the doc of ssh_bind_set_callbacks.
(cherry picked from commit 7daa81f3aa876acb69a9cb332391dd218ac6838c)
Diffstat (limited to 'include/libssh/server.h')
-rw-r--r-- | include/libssh/server.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/libssh/server.h b/include/libssh/server.h index 4484b4b7..2901224e 100644 --- a/include/libssh/server.h +++ b/include/libssh/server.h @@ -157,6 +157,26 @@ LIBSSH_API int ssh_bind_options_set(ssh_bind sshbind, */ LIBSSH_API int ssh_bind_listen(ssh_bind ssh_bind_o); +/** + * @brief Set the callback for this bind. + * + * @param[in] sshbind The bind to set the callback on. + * + * @param[in] callbacks An already set up ssh_bind_callbacks instance. + * + * @param[in] userdata A pointer to private data to pass to the callbacks. + * + * @return SSH_OK on success, SSH_ERROR if an error occured. + * + * @code + * struct ssh_callbacks_struct cb = { + * .userdata = data, + * .auth_function = my_auth_function + * }; + * ssh_callbacks_init(&cb); + * ssh_bind_set_callbacks(session, &cb); + * @endcode + */ LIBSSH_API int ssh_bind_set_callbacks(ssh_bind sshbind, ssh_bind_callbacks callbacks, void *userdata); |