summaryrefslogtreecommitdiff
path: root/ucoolib/intf/stream.hh
diff options
context:
space:
mode:
authorNicolas Schodet2012-11-02 20:50:36 +0100
committerNicolas Schodet2019-10-06 23:29:59 +0200
commit1f65a2f6fbda678c5b389ad9449fdc8583593341 (patch)
treeef7b7af4e2222b8e61e9906cddb55b3e1ce6c6f4 /ucoolib/intf/stream.hh
parent680d46211ca3cadf58b7a3188f37369e5d0bc492 (diff)
ucoolib/intf: add Stream::poll
Diffstat (limited to 'ucoolib/intf/stream.hh')
-rw-r--r--ucoolib/intf/stream.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ucoolib/intf/stream.hh b/ucoolib/intf/stream.hh
index c691214..a9274c6 100644
--- a/ucoolib/intf/stream.hh
+++ b/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 ();