From 1f65a2f6fbda678c5b389ad9449fdc8583593341 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 2 Nov 2012 20:50:36 +0100 Subject: ucoolib/intf: add Stream::poll --- ucoolib/intf/stream.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ucoolib/intf/stream.hh') 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 (); -- cgit v1.2.3