diff options
author | Martin Willi <martin@revosec.ch> | 2014-11-04 14:19:03 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2015-02-20 13:34:54 +0100 |
commit | c6c7f97a1d104c9a78209500d17eb1a34f997790 (patch) | |
tree | dbd87f3b4063ca2ed538a99874e7b7307f4b8b07 /src/libcharon/plugins/attr/attr_provider.h | |
parent | 6bfd1fbb71a4a3bd3079f9d26823f7bb12d9cd07 (diff) | |
download | strongswan-c6c7f97a1d104c9a78209500d17eb1a34f997790.tar.bz2 strongswan-c6c7f97a1d104c9a78209500d17eb1a34f997790.tar.xz |
attr: Move plugin to libcharon
Diffstat (limited to 'src/libcharon/plugins/attr/attr_provider.h')
-rw-r--r-- | src/libcharon/plugins/attr/attr_provider.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/libcharon/plugins/attr/attr_provider.h b/src/libcharon/plugins/attr/attr_provider.h new file mode 100644 index 000000000..17db30408 --- /dev/null +++ b/src/libcharon/plugins/attr/attr_provider.h @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2009 Martin Willi + * Hochschule fuer Technik Rapperswil + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +/** + * @defgroup attr_provider attr_provider + * @{ @ingroup attr + */ + +#ifndef ATTR_PROVIDER_H_ +#define ATTR_PROVIDER_H_ + +#include <attributes/attribute_provider.h> + +typedef struct attr_provider_t attr_provider_t; + +/** + * Provide configuration attributes through static strongswan.conf definition. + */ +struct attr_provider_t { + + /** + * Implements attribute provider interface + */ + attribute_provider_t provider; + + /** + * Reload configuration from strongswan.conf. + */ + void (*reload)(attr_provider_t *this); + + /** + * Destroy a attr_provider instance. + */ + void (*destroy)(attr_provider_t *this); +}; + +/** + * Create a attr_provider instance. + */ +attr_provider_t *attr_provider_create(); + +#endif /** ATTR_PROVIDER @}*/ |