aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/hydra.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-07-05 13:46:04 +0200
committerTobias Brunner <tobias@strongswan.org>2010-09-02 19:01:22 +0200
commit633fbe4fde8887d8026c1c121f26c220dda26329 (patch)
treea142b2f7a9ce8738f1067aed9302cac1ade65a1e /src/libhydra/hydra.c
parentdbb7c0306cbb5e6276745f0cdfd9a46edd086fb1 (diff)
downloadstrongswan-633fbe4fde8887d8026c1c121f26c220dda26329.tar.bz2
strongswan-633fbe4fde8887d8026c1c121f26c220dda26329.tar.xz
Move processor_t (thread-pool) to libhydra.
Diffstat (limited to 'src/libhydra/hydra.c')
-rw-r--r--src/libhydra/hydra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libhydra/hydra.c b/src/libhydra/hydra.c
index 16a8193ea..2f3459517 100644
--- a/src/libhydra/hydra.c
+++ b/src/libhydra/hydra.c
@@ -42,6 +42,7 @@ void libhydra_deinit()
{
private_hydra_t *this = (private_hydra_t*)hydra;
this->public.attributes->destroy(this->public.attributes);
+ this->public.processor->destroy(this->public.processor);
free((void*)this->public.daemon);
free(this);
hydra = NULL;
@@ -57,6 +58,7 @@ bool libhydra_init(const char *daemon)
INIT(this,
.public = {
.attributes = attribute_manager_create(),
+ .processor = processor_create(),
.daemon = strdup(daemon ?: "libhydra"),
},
);