mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-02 01:17:52 +03:00
Added initialisation logs for threading
This commit is contained in:
@@ -49,7 +49,7 @@ struct ssh_threads_callbacks_struct ssh_threads_noop =
|
||||
.thread_id=threads_id_noop
|
||||
};
|
||||
|
||||
static struct ssh_threads_callbacks_struct *user_callbacks;
|
||||
static struct ssh_threads_callbacks_struct *user_callbacks =&ssh_threads_noop;
|
||||
|
||||
#ifdef HAVE_LIBGCRYPT
|
||||
|
||||
@@ -158,6 +158,12 @@ int ssh_threads_set_callbacks(struct ssh_threads_callbacks_struct *cb){
|
||||
return SSH_OK;
|
||||
}
|
||||
|
||||
const char *ssh_threads_get_type(){
|
||||
if(user_callbacks != NULL)
|
||||
return user_callbacks->type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user