]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libcharon/plugins/attr_sql/attr_sql_provider.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libcharon / plugins / attr_sql / attr_sql_provider.h
CommitLineData
c4ec8c9d
MW
1/*
2 * Copyright (C) 2008 Martin Willi
19ef2aec
TB
3 *
4 * Copyright (C) secunet Security Networks AG
c4ec8c9d
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.
c4ec8c9d
MW
15 */
16
17/**
fd6cc7f2 18 * @defgroup attr_sql_provider attr_sql_provider
4952dc11 19 * @{ @ingroup attr_sql
c4ec8c9d
MW
20 */
21
fd6cc7f2
MW
22#ifndef ATTR_SQL_PROVIDER_H_
23#define ATTR_SQL_PROVIDER_H_
c4ec8c9d 24
930443af
AS
25#include <attributes/attribute_provider.h>
26#include <database/database.h>
c4ec8c9d 27
fd6cc7f2 28typedef struct attr_sql_provider_t attr_sql_provider_t;
c4ec8c9d
MW
29
30/**
31 * SQL database based IKEv2 cfg attribute provider.
32 */
fd6cc7f2 33struct attr_sql_provider_t {
c4ec8c9d
MW
34
35 /**
36 * Implements attribute provider interface
37 */
38 attribute_provider_t provider;
7daf5226 39
c4ec8c9d 40 /**
fd6cc7f2 41 * Destroy a attr_sql_provider instance.
323f9f99 42 */
fd6cc7f2 43 void (*destroy)(attr_sql_provider_t *this);
c4ec8c9d
MW
44};
45
46/**
fd6cc7f2 47 * Create a attr_sql_provider instance.
c4ec8c9d 48 */
fd6cc7f2 49attr_sql_provider_t *attr_sql_provider_create(database_t *db);
c4ec8c9d 50
fd6cc7f2 51#endif /** ATTR_SQL_PROVIDER_H_ @}*/