From 5eb7c7b6ec8c82d9f5908e53f9014b844f628994 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sun, 12 Sep 2010 21:53:42 +0200 Subject: Added initialisation logs for threading --- src/threads.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/threads.c') diff --git a/src/threads.c b/src/threads.c index af69eeb..ce82c6c 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; +} + /** * @} */ -- cgit