Changed the threads cbks from struct to publ func

This commit is contained in:
Aris Adamantiadis
2010-09-30 11:10:08 +02:00
parent bedc65313f
commit 5b1c985a0e
4 changed files with 26 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ static unsigned long ssh_pthread_thread_id (void){
return (unsigned long) pthread_self();
}
struct ssh_threads_callbacks_struct ssh_threads_pthread =
static struct ssh_threads_callbacks_struct ssh_threads_pthread =
{
.type="threads_pthread",
.mutex_init=ssh_pthread_mutex_init,
@@ -88,4 +88,8 @@ struct ssh_threads_callbacks_struct ssh_threads_pthread =
.thread_id=ssh_pthread_thread_id
};
struct ssh_threads_callbacks_struct *ssh_threads_get_pthread(){
return &ssh_threads_pthread;
}
#endif /* HAVE_PTHREAD */