Move processor_t (thread-pool) to libhydra.

This commit is contained in:
Tobias Brunner
2010-09-02 19:01:22 +02:00
parent dbb7c0306c
commit 633fbe4fde
11 changed files with 23 additions and 21 deletions
+2
View File
@@ -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"),
},
);