aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/callbacks.h
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-09-12 21:45:53 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-09-12 21:45:53 +0200
commitb7af2b29594a19dec5f71eb9412bd2a7a5b1e9ac (patch)
treed12aa37c51f001b9c99433968e90a3749bdcebd6 /include/libssh/callbacks.h
parent9f02a817ff23b3b100d9d750efa3589cee61b95e (diff)
downloadlibssh-b7af2b29594a19dec5f71eb9412bd2a7a5b1e9ac.tar.gz
libssh-b7af2b29594a19dec5f71eb9412bd2a7a5b1e9ac.tar.xz
libssh-b7af2b29594a19dec5f71eb9412bd2a7a5b1e9ac.zip
Changed callbacks type
Diffstat (limited to 'include/libssh/callbacks.h')
-rw-r--r--include/libssh/callbacks.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/include/libssh/callbacks.h b/include/libssh/callbacks.h
index 10ee6508..a2ea6a69 100644
--- a/include/libssh/callbacks.h
+++ b/include/libssh/callbacks.h
@@ -256,26 +256,9 @@ LIBSSH_API int ssh_set_callbacks(ssh_session session, ssh_callbacks cb);
typedef int (*ssh_thread_callback) (void **lock);
-/**
- * @brief Type of the threading solution implemented behind
- * these callbacks
- */
-enum ssh_threads_type_e {
- /** The thread callbacks do nothing */
- ssh_threads_type_noop,
- /** The thread callbacks use pthread */
- ssh_threads_type_pthread,
- /** The thread callbacks use win32 threads */
- ssh_threads_type_win32,
- /** The thread callbacks use pth */
- ssh_threads_type_pth,
- /** The thread callbacks are unknown or different */
- ssh_threads_type_other
-};
-
typedef unsigned long (*ssh_thread_id_callback) (void);
struct ssh_threads_callbacks_struct {
- enum ssh_threads_type_e type;
+ const char *type;
ssh_thread_callback mutex_init;
ssh_thread_callback mutex_destroy;
ssh_thread_callback mutex_lock;
@@ -298,7 +281,6 @@ LIBSSH_API int ssh_threads_set_callbacks(struct ssh_threads_callbacks_struct
extern struct ssh_threads_callbacks_struct ssh_threads_pthread;
extern struct ssh_threads_callbacks_struct ssh_threads_noop;
-extern struct ssh_threads_callbacks_struct ssh_threads_native;
/** @} */
#ifdef __cplusplus