]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libcharon/plugins/attr/attr_provider.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libcharon / plugins / attr / attr_provider.h
CommitLineData
7f56b494
MW
1/*
2 * Copyright (C) 2009 Martin Willi
19ef2aec
TB
3 *
4 * Copyright (C) secunet Security Networks AG
7f56b494
MW
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
7f56b494
MW
15 */
16
17/**
18 * @defgroup attr_provider attr_provider
19 * @{ @ingroup attr
20 */
21
22#ifndef ATTR_PROVIDER_H_
23#define ATTR_PROVIDER_H_
24
930443af 25#include <attributes/attribute_provider.h>
7f56b494
MW
26
27typedef struct attr_provider_t attr_provider_t;
28
29/**
30 * Provide configuration attributes through static strongswan.conf definition.
31 */
32struct attr_provider_t {
7daf5226 33
7f56b494
MW
34 /**
35 * Implements attribute provider interface
36 */
37 attribute_provider_t provider;
7daf5226 38
96409be3
MW
39 /**
40 * Reload configuration from strongswan.conf.
41 */
42 void (*reload)(attr_provider_t *this);
43
7f56b494
MW
44 /**
45 * Destroy a attr_provider instance.
46 */
47 void (*destroy)(attr_provider_t *this);
48};
49
50/**
51 * Create a attr_provider instance.
52 */
53attr_provider_t *attr_provider_create();
54
55#endif /** ATTR_PROVIDER @}*/