]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libstrongswan/plugins/sqlite/sqlite_database.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libstrongswan / plugins / sqlite / sqlite_database.h
CommitLineData
965e99b5 1/*
552cc11b 2 * Copyright (C) 2007-2008 Martin Willi
19ef2aec
TB
3 *
4 * Copyright (C) secunet Security Networks AG
965e99b5
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.
15 */
16
965e99b5 17/**
552cc11b
MW
18 * @defgroup sqlite_database sqlite_database
19 * @{ @ingroup sqlite_p
965e99b5 20 */
552cc11b
MW
21
22#ifndef SQLITE_DATABASE_H_
23#define SQLITE_DATABASE_H_
24
25#include <database/database.h>
26
27typedef struct sqlite_database_t sqlite_database_t;
965e99b5
MW
28
29/**
b3ab7a48 30 * sqlite database_t implementation.
965e99b5 31 */
552cc11b
MW
32struct sqlite_database_t {
33
965e99b5 34 /**
552cc11b 35 * Implements database_t
965e99b5 36 */
552cc11b 37 database_t db;
965e99b5
MW
38};
39
552cc11b
MW
40/**
41 * Create a sqlite_database instance.
42 *
43 * @param uri connection URI, sqlite:///path/to/file.db
44 */
45sqlite_database_t *sqlite_database_create(char *uri);
46
1490ff4d 47#endif /** SQLITE_DATABASE_H_ @}*/