summaryrefslogtreecommitdiff
path: root/src/i_poll_events.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:03:45 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:03:45 +0900
commit0e167c86051614f9d9d9fab255aae8272b1b056b (patch)
tree4b1184b3937804a4cdfaad5552085c94e3fa813e /src/i_poll_events.hpp
parentff12aabf4b2ec48339235ad67175575d2b00adc0 (diff)
File descriptor passed to in_event and out_event
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/i_poll_events.hpp')
-rw-r--r--src/i_poll_events.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/i_poll_events.hpp b/src/i_poll_events.hpp
index ca1625d..0b9bd86 100644
--- a/src/i_poll_events.hpp
+++ b/src/i_poll_events.hpp
@@ -21,7 +21,9 @@
#ifndef __XS_I_POLL_EVENTS_HPP_INCLUDED__
#define __XS_I_POLL_EVENTS_HPP_INCLUDED__
-
+
+#include "fd.hpp"
+
namespace xs
{
@@ -33,10 +35,10 @@ namespace xs
virtual ~i_poll_events () {}
// Called by I/O thread when file descriptor is ready for reading.
- virtual void in_event () = 0;
+ virtual void in_event (fd_t fd_) = 0;
// Called by I/O thread when file descriptor is ready for writing.
- virtual void out_event () = 0;
+ virtual void out_event (fd_t fd_) = 0;
// Called when timer expires.
virtual void timer_event (int id_) = 0;