diff options
author | Not Zed <NotZed@Ximian.com> | 2001-01-15 15:55:30 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-01-15 15:55:30 +0800 |
commit | b64ffc9183d2c94ce6b8fdf10f382904aa8021e8 (patch) | |
tree | 701629078be7b75865fe87c9a348e2d5361004c6 /camel/camel-session.h | |
parent | cff9059380f748309b628041b55abad159aab4d6 (diff) | |
download | gsoc2013-evolution-b64ffc9183d2c94ce6b8fdf10f382904aa8021e8.tar gsoc2013-evolution-b64ffc9183d2c94ce6b8fdf10f382904aa8021e8.tar.gz gsoc2013-evolution-b64ffc9183d2c94ce6b8fdf10f382904aa8021e8.tar.bz2 gsoc2013-evolution-b64ffc9183d2c94ce6b8fdf10f382904aa8021e8.tar.lz gsoc2013-evolution-b64ffc9183d2c94ce6b8fdf10f382904aa8021e8.tar.xz gsoc2013-evolution-b64ffc9183d2c94ce6b8fdf10f382904aa8021e8.tar.zst gsoc2013-evolution-b64ffc9183d2c94ce6b8fdf10f382904aa8021e8.zip |
A cancellable connection routine. (remote_send_string): Return cancelled
2001-01-15 Not Zed <NotZed@Ximian.com>
* camel-remote-store.c (socket_connect): A cancellable connection
routine.
(remote_send_string): Return cancelled exception if we were.
(remote_send_stream): "
(remote_recv_line): "
* camel-stream-fs.c (stream_read): First cut at cancellation
stuff. Its looking a bit ugly.
svn path=/trunk/; revision=7496
Diffstat (limited to 'camel/camel-session.h')
-rw-r--r-- | camel/camel-session.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/camel/camel-session.h b/camel/camel-session.h index 78b4b817e5..9ae9eec089 100644 --- a/camel/camel-session.h +++ b/camel/camel-session.h @@ -126,6 +126,24 @@ guint camel_session_register_timeout (CamelSession *session, gboolean camel_session_remove_timeout (CamelSession *session, guint handle); + +/* cancellation helper stuff, not yet finalised */ +typedef struct _CamelCancel CamelCancel; +/* main thread functions */ +CamelCancel *camel_cancel_new(void); +void camel_cancel_ref(CamelCancel *cc); +void camel_cancel_unref(CamelCancel *cc); +void camel_cancel_reset(CamelCancel *cc); +void camel_cancel_cancel(CamelCancel *cc); +/* subthread functions */ +void camel_cancel_register(CamelCancel *cc); +void camel_cancel_unregister(CamelCancel *cc); +/* called internally by camel, for the current thread */ +void camel_cancel_block(CamelCancel *cc); +void camel_cancel_unblock(CamelCancel *cc); +gboolean camel_cancel_check(CamelCancel *cc); +int camel_cancel_fd(CamelCancel *cc); + #ifdef __cplusplus } #endif /* __cplusplus */ |