diff options
author | Martin Willi <martin@revosec.ch> | 2010-03-25 14:33:05 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-03-25 14:33:22 +0100 |
commit | 0e1689e98f5297a650392e10275331d676cf1572 (patch) | |
tree | fad0576905a77ac36633bcfc8de819058b0cdfe1 /src/libcharon/plugins/dhcp/dhcp_plugin.c | |
parent | b262429e0b991ec8dbe7f7694c8f0418023f0fde (diff) | |
download | strongswan-0e1689e98f5297a650392e10275331d676cf1572.tar.bz2 strongswan-0e1689e98f5297a650392e10275331d676cf1572.tar.xz |
Migrated dhcp plugin to moved attribute manager
Diffstat (limited to 'src/libcharon/plugins/dhcp/dhcp_plugin.c')
-rw-r--r-- | src/libcharon/plugins/dhcp/dhcp_plugin.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libcharon/plugins/dhcp/dhcp_plugin.c b/src/libcharon/plugins/dhcp/dhcp_plugin.c index e3dae9bb6..829fd6356 100644 --- a/src/libcharon/plugins/dhcp/dhcp_plugin.c +++ b/src/libcharon/plugins/dhcp/dhcp_plugin.c @@ -15,6 +15,7 @@ #include "dhcp_plugin.h" +#include <hydra.h> #include <daemon.h> #include "dhcp_socket.h" @@ -46,7 +47,8 @@ struct private_dhcp_plugin_t { METHOD(plugin_t, destroy, void, private_dhcp_plugin_t *this) { - lib->attributes->remove_provider(lib->attributes, &this->provider->provider); + hydra->attributes->remove_provider(hydra->attributes, + &this->provider->provider); this->provider->destroy(this->provider); this->socket->destroy(this->socket); free(this); @@ -71,7 +73,8 @@ plugin_t *dhcp_plugin_create() } this->provider = dhcp_provider_create(this->socket); - lib->attributes->add_provider(lib->attributes, &this->provider->provider); + hydra->attributes->add_provider(hydra->attributes, + &this->provider->provider); return &this->public.plugin; } |