diff options
author | Martin Willi <martin@strongswan.org> | 2007-04-16 12:52:49 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2007-04-16 12:52:49 +0000 |
commit | 217e985b41fc34f4629d01adfbb47aab079c4b1b (patch) | |
tree | 9df673c3dcd9871cf44ce16b936262d17679d070 /src/charon/daemon.c | |
parent | 418dbd624363d9712c0d883084962cf93ae01b2a (diff) | |
download | strongswan-217e985b41fc34f4629d01adfbb47aab079c4b1b.tar.bz2 strongswan-217e985b41fc34f4629d01adfbb47aab079c4b1b.tar.xz |
moved initiate() code to the generic controller_t class
Diffstat (limited to 'src/charon/daemon.c')
-rw-r--r-- | src/charon/daemon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/charon/daemon.c b/src/charon/daemon.c index 4754d319b..fb8acc54c 100644 --- a/src/charon/daemon.c +++ b/src/charon/daemon.c @@ -165,6 +165,7 @@ static void destroy(private_daemon_t *this) DESTROY_IF(this->public.receiver); /* ignore all incoming user requests */ DESTROY_IF(this->public.stroke); + DESTROY_IF(this->public.controller); /* stop scheduing jobs */ DESTROY_IF(this->public.scheduler); /* stop processing jobs */ @@ -280,6 +281,7 @@ static void initialize(private_daemon_t *this, bool strict, bool syslog, credentials->load_secrets(credentials); /* start building threads, we are multi-threaded NOW */ + this->public.controller = controller_create(); this->public.stroke = stroke_create(this->public.local_backend); this->public.sender = sender_create(); this->public.receiver = receiver_create(); @@ -342,6 +344,7 @@ private_daemon_t *daemon_create(void) this->public.scheduler = NULL; this->public.kernel_interface = NULL; this->public.thread_pool = NULL; + this->public.controller = NULL; this->public.stroke = NULL; this->public.bus = NULL; this->public.outlog = NULL; |