diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-09-30 04:14:05 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-09-30 04:14:05 +0000 |
commit | 86817b645d57c800affe202bf2308f42e3cf9237 (patch) | |
tree | aa6f91fec53cf03da081b03c593b20cbda92dbee /libsylph/socket.h | |
parent | 8674dc3a543cfcc99af9061c36bf86f387be526a (diff) |
imap.c: connect in another thread.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2261 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/socket.h')
-rw-r--r-- | libsylph/socket.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libsylph/socket.h b/libsylph/socket.h index 37d1e397..64d2d6a1 100644 --- a/libsylph/socket.h +++ b/libsylph/socket.h @@ -1,6 +1,6 @@ /* * LibSylph -- E-Mail client library - * Copyright (C) 1999-2008 Hiroyuki Yamamoto + * Copyright (C) 1999-2009 Hiroyuki Yamamoto * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -103,9 +103,10 @@ SockInfo *sock_connect (const gchar *hostname, gushort port); gint sock_connect_async (const gchar *hostname, gushort port, SockConnectFunc func, gpointer data); gint sock_connect_async_cancel (gint id); -#elif USE_THREADS -gint sock_connect_async (const gchar *hostname, gushort port); -gint sock_connect_async_wait (gint id, SockInfo **sock); +#endif +#if USE_THREADS +gint sock_connect_async_thread (const gchar *hostname, gushort port); +gint sock_connect_async_thread_wait (gint id, SockInfo **sock); #endif /* Basic I/O functions */ |