diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-11-02 19:51:26 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-11-02 19:51:26 +0000 |
commit | a84c87d76abcd023ddfb2c0985a65bafd522682b (patch) | |
tree | 1c3d5b5e5efad94f21db167b8490c9d9e3fda1a0 /iocp-internal.h | |
parent | 9a772148f2efcbaadbe8ccc50a2bd5d0004f971d (diff) | |
download | libevent-a84c87d76abcd023ddfb2c0985a65bafd522682b.tar.gz |
Refactor IOCP callback interface
Chris Davis points out that GetQueuedCompletionStatus
sometimes returns false not to report "No events for
you!" but instead to report "An overlapped operation
failed." Add a way to tell an event_overlapped that
its operation failed.
svn:r1490
Diffstat (limited to 'iocp-internal.h')
-rw-r--r-- | iocp-internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iocp-internal.h b/iocp-internal.h index 31024cc1..18b89d25 100644 --- a/iocp-internal.h +++ b/iocp-internal.h @@ -34,7 +34,7 @@ extern "C" { struct event_overlapped; struct event_iocp_port; struct evbuffer; -typedef void (*iocp_callback)(struct event_overlapped *, uintptr_t, ev_ssize_t); +typedef void (*iocp_callback)(struct event_overlapped *, uintptr_t, ev_ssize_t, int success); /* This whole file is actually win32 only. We wrap the structures in a win32 * ifdef so that we can test-compile code that uses these interfaces on |