llog: add library log helpers
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 24 Jun 2012 15:28:31 +0000 (17:28 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 24 Jun 2012 15:28:31 +0000 (17:28 +0200)
commita8f034fcbe073b28339b810d923e9e9912254783
tree814445f8aa5e4f6a9b6332602fc36e134e12a321
parent89f114c700fd89f117cfdd07ca0bc7aaca34d772
llog: add library log helpers

Libraries must never log unconditionally. Otherwise, applications are
unable to disable logging and can get confused. This header contains
helpers to implement conditional logging on context objects inside of
libraries.

It is compatible to the log interface in kmscon apart from the runtime
configuration.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/llog.h [new file with mode: 0644]