Use a separate interface for loggers.
authorTobias Brunner <tobias@strongswan.org>
Sat, 21 Jan 2012 13:47:13 +0000 (14:47 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 2 May 2012 12:45:38 +0000 (14:45 +0200)
commit0e474f9148deebcd3a24205f0110c884c9b67f60
tree4a2ca8ac168f696e24d8fd988bb7b0e435d75299
parentf9f867899ae5f7198d2c80bf2519e542556095ba
Use a separate interface for loggers.

The new interface does not allow loggers to unregister themselves from
the bus.  This allows us to use a rwlock_t for them.

The latter also means that loggers can now be called concurrently by
multiple threads.
17 files changed:
src/charon/charon.c
src/libcharon/Makefile.am
src/libcharon/bus/bus.c
src/libcharon/bus/bus.h
src/libcharon/bus/listeners/file_logger.c
src/libcharon/bus/listeners/file_logger.h
src/libcharon/bus/listeners/listener.h
src/libcharon/bus/listeners/logger.h [new file with mode: 0644]
src/libcharon/bus/listeners/sys_logger.c
src/libcharon/bus/listeners/sys_logger.h
src/libcharon/control/controller.c
src/libcharon/plugins/android/android_logger.c
src/libcharon/plugins/android/android_logger.h
src/libcharon/plugins/android/android_plugin.c
src/libcharon/plugins/sql/sql_logger.c
src/libcharon/plugins/sql/sql_logger.h
src/libcharon/plugins/sql/sql_plugin.c