2 * Copyright (C) 2009 Martin Willi
3 * Hochschule fuer Technik Rapperswil
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 * @defgroup attr_provider attr_provider
21 #ifndef ATTR_PROVIDER_H_
22 #define ATTR_PROVIDER_H_
24 #include <attributes/attribute_provider.h>
26 typedef struct attr_provider_t attr_provider_t
;
29 * Provide configuration attributes through static strongswan.conf definition.
31 struct attr_provider_t
{
34 * Implements attribute provider interface
36 attribute_provider_t provider
;
39 * Reload configuration from strongswan.conf.
41 void (*reload
)(attr_provider_t
*this);
44 * Destroy a attr_provider instance.
46 void (*destroy
)(attr_provider_t
*this);
50 * Create a attr_provider instance.
52 attr_provider_t
*attr_provider_create();
54 #endif /** ATTR_PROVIDER @}*/