diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-09-16 10:54:30 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-10-01 14:47:58 +0200 |
commit | 7b2aee90f0bd15a5e8e0b69a1bb1f65e0aa363fa (patch) | |
tree | 182c28597e05326c96ae080e2a4163eccdc2e50b /include | |
parent | aaacd18031e8eb3accfdbda92811565cc8782dc1 (diff) | |
download | libssh-7b2aee90f0bd15a5e8e0b69a1bb1f65e0aa363fa.tar.gz libssh-7b2aee90f0bd15a5e8e0b69a1bb1f65e0aa363fa.tar.xz libssh-7b2aee90f0bd15a5e8e0b69a1bb1f65e0aa363fa.zip |
callbacks: Improve the documentation of ssh_threads_set_callbacks().
BUG: https://red.libssh.org/issues/123
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/callbacks.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/include/libssh/callbacks.h b/include/libssh/callbacks.h index e28f9dc4..131e8229 100644 --- a/include/libssh/callbacks.h +++ b/include/libssh/callbacks.h @@ -788,12 +788,17 @@ struct ssh_threads_callbacks_struct { }; /** - * @brief sets the thread callbacks necessary if your program is using - * libssh in a multithreaded fashion. This function must be called first, - * outside of any threading context (in your main() for instance), before - * ssh_init(). - * @param cb pointer to a ssh_threads_callbacks_struct structure, which contains - * the different callbacks to be set. + * @brief Set the thread callbacks structure. + * + * This is necessary if your program is using libssh in a multithreaded fashion. + * This function must be called first, outside of any threading context (in your + * main() function for instance), before you call ssh_init(). + * + * @param[in] cb A pointer to a ssh_threads_callbacks_struct structure, which + * contains the different callbacks to be set. + * + * @returns Always returns SSH_OK. + * * @see ssh_threads_callbacks_struct * @see SSH_THREADS_PTHREAD */ |