lparse api: Add a utility to parse files in reverse
commit943f76fe835e58697feb691f0ca8fcdf6107d059
authorAndreas Ericsson <ae@op5.se>
Tue, 1 Dec 2009 15:11:40 +0000 (1 16:11 +0100)
committerAndreas Ericsson <ae@op5.se>
Tue, 1 Dec 2009 15:19:07 +0000 (1 16:19 +0100)
treee2c40e190eb28a08aed62da706f748274a189726
parent3673ea881bc1c2a89740ace40625540727f62b07
lparse api: Add a utility to parse files in reverse

Since the showlog cgi by default shows newest entries first (which is
sensible), we need to mimic that behaviour. We prefer to do so by
utilizing the quick 512KiB reads we have when forward-parsing, and
this patch does just that.

Signed-off-by: Andreas Ericsson <ae@op5.se>
lparse.c
lparse.h