aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Wedderwille <davidwe@posteo.de>2019-06-13 22:54:24 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-06-14 15:22:56 +0200
commit70dd8b0348fc371c14c9525d33303d5ee84b1cd5 (patch)
treeea153860e9550744cabad8b969ce29baed3f58a0 /include
parentc4463ba5e7e653686270a9e51294cf92cdb38ca4 (diff)
downloadlibssh-70dd8b0348fc371c14c9525d33303d5ee84b1cd5.tar.gz
libssh-70dd8b0348fc371c14c9525d33303d5ee84b1cd5.tar.xz
libssh-70dd8b0348fc371c14c9525d33303d5ee84b1cd5.zip
callbacks: Add ssh_threads_get_default() to the callbacks.h
Fixes: T154 Signed-off-by: David Wedderwille <davidwe@posteo.de> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/callbacks.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/include/libssh/callbacks.h b/include/libssh/callbacks.h
index 554527c7..15e88014 100644
--- a/include/libssh/callbacks.h
+++ b/include/libssh/callbacks.h
@@ -944,9 +944,20 @@ LIBSSH_API int ssh_threads_set_callbacks(struct ssh_threads_callbacks_struct
*cb);
/**
- * @brief returns a pointer on the pthread threads callbacks, to be used with
+ * @brief Returns a pointer to the appropriate callbacks structure for the
+ * environment, to be used with ssh_threads_set_callbacks.
+ *
+ * @returns A pointer to a ssh_threads_callbacks_struct to be used with
+ * ssh_threads_set_callbacks.
+ *
+ * @see ssh_threads_set_callbacks
+ */
+LIBSSH_API struct ssh_threads_callbacks_struct *ssh_threads_get_default(void);
+
+/**
+ * @brief Returns a pointer on the pthread threads callbacks, to be used with
* ssh_threads_set_callbacks.
- * @warning you have to link with the library ssh_threads.
+ *
* @see ssh_threads_set_callbacks
*/
LIBSSH_API struct ssh_threads_callbacks_struct *ssh_threads_get_pthread(void);