I can just announce if you need more documentation on
libacpi you can look into some source apart from
test-libacpi.c.
Today I got a mail by Folkert Vanheusden (author of several
cool programs) telling me that he wrote
acpitail which shows acpi information in a tail(1) like interface.
338
SLOC using
libacpi , rocks!