]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libcharon/plugins/sql/sql_config.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libcharon / plugins / sql / sql_config.h
CommitLineData
8f561d44 1/*
552cc11b 2 * Copyright (C) 2008 Martin Willi
19ef2aec
TB
3 *
4 * Copyright (C) secunet Security Networks AG
8f561d44
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.
552cc11b
MW
15 */
16
17/**
18 * @defgroup sql_config_i sql_config
e42db695 19 * @{ @ingroup sql
8f561d44 20 */
8f561d44 21
552cc11b
MW
22#ifndef SQL_CONFIG_H_
23#define SQL_CONFIG_H_
8f561d44 24
552cc11b
MW
25#include <config/backend.h>
26#include <database/database.h>
8f561d44 27
552cc11b 28typedef struct sql_config_t sql_config_t;
8f561d44
MW
29
30/**
552cc11b 31 * SQL database configuration backend.
8f561d44 32 */
552cc11b
MW
33struct sql_config_t {
34
8f561d44
MW
35 /**
36 * Implements backend_t interface
37 */
38 backend_t backend;
7daf5226 39
552cc11b 40 /**
17c99722 41 * Destroy the backend.
552cc11b 42 */
7daf5226 43 void (*destroy)(sql_config_t *this);
8f561d44
MW
44};
45
46/**
552cc11b 47 * Create a sql_config backend instance.
8f561d44 48 *
552cc11b
MW
49 * @param db underlying database
50 * @return backend instance
8f561d44 51 */
552cc11b 52sql_config_t *sql_config_create(database_t *db);
8f561d44 53
1490ff4d 54#endif /** SQL_CONFIG_H_ @}*/