1
0
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:
Aris Adamantiadis
2010-09-12 21:53:42 +02:00
parent b7af2b2959
commit 5eb7c7b6ec
3 changed files with 12 additions and 5 deletions

View File

@@ -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;
}
/**
* @}
*/