Moved scheduler_t to libhydra.

This commit is contained in:
Tobias Brunner
2010-09-02 19:01:24 +02:00
parent 4e258e63c3
commit 8c387909eb
10 changed files with 24 additions and 22 deletions
+4
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.scheduler->destroy(this->public.scheduler);
this->public.processor->destroy(this->public.processor);
free((void*)this->public.daemon);
free(this);
@@ -64,6 +65,9 @@ bool libhydra_init(const char *daemon)
);
hydra = &this->public;
/* requires hydra->processor */
this->public.scheduler = scheduler_create();
if (lib->integrity &&
!lib->integrity->check(lib->integrity, "libhydra", libhydra_init))
{