shl: ring: provide offset parameter for shl_ring_peek()
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 25 Oct 2012 12:47:32 +0000 (14:47 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 25 Oct 2012 12:47:32 +0000 (14:47 +0200)
commiteaffe90061f3cd70e89868861cb9094b74b36657
tree94944ec914c84367c9f3b1f6e527fbd828ac3dbd
parenta0a9a7f9b4375374bae3c779e3961db6fcef3a20
shl: ring: provide offset parameter for shl_ring_peek()

If we want to fill a whole buffer, we actually might have to read more
data than just the data from the beginning. Therefore, provide an offset
so we can read from multiple pages.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/pty.c
src/shl_ring.h