diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-09-30 11:10:08 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-09-30 11:10:08 +0200 |
commit | 5b1c985a0e7df03aefffa13bc6c765859819a180 (patch) | |
tree | 28deab689a0218f7a2f89e13910881fd4a4bbd88 /include | |
parent | bedc65313f884f9b157822f4705c8e00accfd73f (diff) | |
download | libssh-5b1c985a0e7df03aefffa13bc6c765859819a180.tar.gz libssh-5b1c985a0e7df03aefffa13bc6c765859819a180.tar.xz libssh-5b1c985a0e7df03aefffa13bc6c765859819a180.zip |
Changed the threads cbks from struct to publ func
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/callbacks.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/libssh/callbacks.h b/include/libssh/callbacks.h index a2ea6a69..d2526694 100644 --- a/include/libssh/callbacks.h +++ b/include/libssh/callbacks.h @@ -279,8 +279,21 @@ struct ssh_threads_callbacks_struct { LIBSSH_API int ssh_threads_set_callbacks(struct ssh_threads_callbacks_struct *cb); -extern struct ssh_threads_callbacks_struct ssh_threads_pthread; -extern struct ssh_threads_callbacks_struct ssh_threads_noop; +/** + * @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); + +/** + * @brief returns a pointer on the noop threads callbacks, to be used with + * ssh_threads_set_callbacks. These callbacks do nothing and are being used by + * default. + * @see ssh_threads_set_callbacks + */ +LIBSSH_API struct ssh_threads_callbacks_struct *ssh_threads_get_noop(void); /** @} */ #ifdef __cplusplus |