summaryrefslogtreecommitdiffhomepage
path: root/digital/ucoolib/ucoolib/intf
diff options
context:
space:
mode:
authorNicolas Schodet2012-11-02 20:50:36 +0100
committerNicolas Schodet2012-11-02 20:53:10 +0100
commit8207c14ce5241c7515c213901417ea8f6b7485e8 (patch)
tree6182528602027b9c39c16d2140f50f41a568351d /digital/ucoolib/ucoolib/intf
parent7bff30671bf082b8fe27621d5ad46a1386070dac (diff)
digital/ucoolib/ucoolib/intf: add Stream::poll
Diffstat (limited to 'digital/ucoolib/ucoolib/intf')
-rw-r--r--digital/ucoolib/ucoolib/intf/stream.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/digital/ucoolib/ucoolib/intf/stream.hh b/digital/ucoolib/ucoolib/intf/stream.hh
index c6912141..a9274c68 100644
--- a/digital/ucoolib/ucoolib/intf/stream.hh
+++ b/digital/ucoolib/ucoolib/intf/stream.hh
@@ -50,6 +50,8 @@ class Stream
int getc ();
/// Shortcut to write one character. Return -1 on error.
int putc (int c);
+ /// Return the number of available bytes to be read.
+ virtual int poll () = 0;
protected:
/// Default constructor.
Stream ();