[linebuf] Support buffering of multiple lines
authorMichael Brown <mcb30@ipxe.org>
Tue, 28 Jul 2015 15:59:11 +0000 (16:59 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 28 Jul 2015 15:59:11 +0000 (16:59 +0100)
commit1e4ff872be639e93e8df3918a965bb08675dcc77
tree77aed8f6f542ebe09cd66f0871ef4a184b160756
parent20d35b014521ff27bbdacfe5245c8e081a160bb9
[linebuf] Support buffering of multiple lines

Allow line buffer to accumulate multiple lines, with buffered_line()
returning each freshly-completed line as it is encountered.  This
allows buffered lines to be subsequently processed as a group.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/linebuf.c
src/include/ipxe/linebuf.h
src/tests/linebuf_test.c
src/tests/tests.c