aboutsummaryrefslogtreecommitdiff
path: root/src/threads.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-09-12 21:53:42 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-09-12 21:53:42 +0200
commit5eb7c7b6ec8c82d9f5908e53f9014b844f628994 (patch)
tree6e0a67435952d9c2c9d444869c7eebf4673331c4 /src/threads.c
parentb7af2b29594a19dec5f71eb9412bd2a7a5b1e9ac (diff)
downloadlibssh-5eb7c7b6ec8c82d9f5908e53f9014b844f628994.tar.gz
libssh-5eb7c7b6ec8c82d9f5908e53f9014b844f628994.tar.xz
libssh-5eb7c7b6ec8c82d9f5908e53f9014b844f628994.zip
Added initialisation logs for threading
Diffstat (limited to 'src/threads.c')
-rw-r--r--src/threads.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/threads.c b/src/threads.c
index af69eeb4..ce82c6cc 100644
--- a/src/threads.c
+++ b/src/threads.c
@@ -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;
+}
+
/**
* @}
*/