From f6697eadb90a132431e82682e1af48f3314fcf27 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 3 Aug 2010 18:57:30 +0200 Subject: [PATCH] Scheduler and processor have been moved to libstrongswan. Also reverts 0c21dc000d3cd5c82eb22c4481e6459978456364 as the dependency to libcharon is no longer required. --- src/libcharon/plugins/ha/ha_cache.c | 2 +- src/libstrongswan/plugins/pkcs11/Makefile.am | 3 +-- src/libstrongswan/plugins/pkcs11/pkcs11_manager.c | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/libcharon/plugins/ha/ha_cache.c b/src/libcharon/plugins/ha/ha_cache.c index 1ebc33ca4..9ff3fd5ff 100644 --- a/src/libcharon/plugins/ha/ha_cache.c +++ b/src/libcharon/plugins/ha/ha_cache.c @@ -354,7 +354,7 @@ ha_cache_t *ha_cache_create(ha_kernel_t *kernel, ha_socket_t *socket, if (sync) { /* request a resync as soon as we are up */ - charon->scheduler->schedule_job(charon->scheduler, (job_t*) + lib->scheduler->schedule_job(lib->scheduler, (job_t*) callback_job_create((callback_job_cb_t)request_resync, this, NULL, NULL), 1); } diff --git a/src/libstrongswan/plugins/pkcs11/Makefile.am b/src/libstrongswan/plugins/pkcs11/Makefile.am index 7d395e051..199039d95 100644 --- a/src/libstrongswan/plugins/pkcs11/Makefile.am +++ b/src/libstrongswan/plugins/pkcs11/Makefile.am @@ -1,6 +1,5 @@ -INCLUDES = -I$(top_srcdir)/src/libstrongswan \ - -I$(top_srcdir)/src/libcharon -I$(top_srcdir)/src/libhydra +INCLUDES = -I$(top_srcdir)/src/libstrongswan AM_CFLAGS = -rdynamic diff --git a/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c b/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c index 8ff63fd4a..0c27600a6 100644 --- a/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c +++ b/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c @@ -21,7 +21,6 @@ #include "pkcs11_library.h" -#include #include typedef struct private_pkcs11_manager_t private_pkcs11_manager_t; @@ -392,7 +391,7 @@ pkcs11_manager_t *pkcs11_manager_create(pkcs11_manager_token_event_t cb, query_slots(entry); entry->job = callback_job_create((void*)dispatch_slot_events, entry, (void*)end_dispatch, NULL); - charon->processor->queue_job(charon->processor, (job_t*)entry->job); + lib->processor->queue_job(lib->processor, (job_t*)entry->job); } enumerator->destroy(enumerator);