Code

error utils: Make the logger callback configurable.
authorSebastian Harl <sh@tokkee.org>
Tue, 10 Dec 2013 18:13:37 +0000 (19:13 +0100)
committerSebastian Harl <sh@tokkee.org>
Tue, 10 Dec 2013 18:13:37 +0000 (19:13 +0100)
commit44a0aa91ac18582aa7415943dc37d06220576443
tree916a96ae03e0e6bf35e4eb1d03cfb096901867f0
parentddb933096618a6bceded29e4dc2b37cb72134366
error utils: Make the logger callback configurable.

Don't depend on the plugin module anymore. Rather, add sdb_error_set_logger()
which may be used to set a callback to be used for all logging. Default to
printing to stderr.

sysdbd now uses that to register sdb_plugin_log as logger callback.
src/daemon/sysdbd.c
src/include/utils/error.h
src/utils/error.c