]> git.tdb.fi Git - libs/core.git/blob - source/io/unix/eventreader.cpp
Add missing get_handle function to Serial
[libs/core.git] / source / io / unix / eventreader.cpp
1 #include "eventreader.h"
2
3 namespace Msp {
4 namespace IO {
5
6 EventReader::EventReader(Handle &h, unsigned):
7         handle(h),
8         priv(0)
9 { }
10
11 EventReader::~EventReader()
12 { }
13
14 const Handle &EventReader::get_event()
15 {
16         return handle;
17 }
18
19 void EventReader::start()
20 { }
21
22 void EventReader::wait()
23 { }
24
25 unsigned EventReader::read(char *buf, unsigned len)
26 {
27         return sys_read(handle, buf, len);
28 }
29
30 } // namespace IO
31 } // namespace Msp