aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/android/android_plugin.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-01-21 14:47:13 +0100
committerTobias Brunner <tobias@strongswan.org>2012-05-02 14:45:38 +0200
commit0e474f9148deebcd3a24205f0110c884c9b67f60 (patch)
tree4a2ca8ac168f696e24d8fd988bb7b0e435d75299 /src/libcharon/plugins/android/android_plugin.c
parentf9f867899ae5f7198d2c80bf2519e542556095ba (diff)
downloadstrongswan-0e474f9148deebcd3a24205f0110c884c9b67f60.tar.bz2
strongswan-0e474f9148deebcd3a24205f0110c884c9b67f60.tar.xz
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.
Diffstat (limited to 'src/libcharon/plugins/android/android_plugin.c')
-rw-r--r--src/libcharon/plugins/android/android_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcharon/plugins/android/android_plugin.c b/src/libcharon/plugins/android/android_plugin.c
index 091f34a8e..bad8bc042 100644
--- a/src/libcharon/plugins/android/android_plugin.c
+++ b/src/libcharon/plugins/android/android_plugin.c
@@ -68,7 +68,7 @@ METHOD(plugin_t, destroy, void,
hydra->attributes->remove_handler(hydra->attributes,
&this->handler->handler);
lib->credmgr->remove_set(lib->credmgr, &this->creds->set);
- charon->bus->remove_listener(charon->bus, &this->logger->listener);
+ charon->bus->remove_logger(charon->bus, &this->logger->logger);
this->creds->destroy(this->creds);
this->handler->destroy(this->handler);
this->logger->destroy(this->logger);
@@ -98,7 +98,7 @@ plugin_t *android_plugin_create()
this->service = android_service_create(this->creds);
this->handler = android_handler_create(this->service != NULL);
- charon->bus->add_listener(charon->bus, &this->logger->listener);
+ charon->bus->add_logger(charon->bus, &this->logger->logger);
lib->credmgr->add_set(lib->credmgr, &this->creds->set);
hydra->attributes->add_handler(hydra->attributes, &this->handler->handler);