aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/library.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-07-15 14:26:19 +0200
committerTobias Brunner <tobias@strongswan.org>2010-09-02 19:04:18 +0200
commite18556e9e9e5d870a9846efb1d0a1edd1638fafa (patch)
tree8f0c644e142bbd8b013016049dfb46b50aa4508a /src/libstrongswan/library.c
parent062a6022163f02ab9bea3dfac048bc1247d914f7 (diff)
downloadstrongswan-e18556e9e9e5d870a9846efb1d0a1edd1638fafa.tar.bz2
strongswan-e18556e9e9e5d870a9846efb1d0a1edd1638fafa.tar.xz
Moved scheduler and thread pool to libstrongswan.
Diffstat (limited to 'src/libstrongswan/library.c')
-rw-r--r--src/libstrongswan/library.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstrongswan/library.c b/src/libstrongswan/library.c
index b61bdf7a0..b7e75aec5 100644
--- a/src/libstrongswan/library.c
+++ b/src/libstrongswan/library.c
@@ -65,6 +65,8 @@ void library_deinit()
detailed = lib->settings->get_bool(lib->settings,
"libstrongswan.leak_detective.detailed", TRUE);
+ this->public.scheduler->destroy(this->public.scheduler);
+ this->public.processor->destroy(this->public.processor);
this->public.plugins->destroy(this->public.plugins);
this->public.settings->destroy(this->public.settings);
this->public.credmgr->destroy(this->public.credmgr);
@@ -141,6 +143,8 @@ bool library_init(char *settings)
this->public.encoding = cred_encoding_create();
this->public.fetcher = fetcher_manager_create();
this->public.db = database_factory_create();
+ this->public.processor = processor_create();
+ this->public.scheduler = scheduler_create();
this->public.plugins = plugin_loader_create();
this->public.integrity = NULL;