prototype implemementation of an sqlite configuration backend
[strongswan.git] / src / charon / config / backends / sqlite_backend.h
1 /**
2 * @file sqlite_backend.h
3 *
4 * @brief Interface of sqlite_backend_t.
5 *
6 */
7
8 /*
9 * Copyright (C) 2007 Martin Willi
10 * Hochschule fuer Technik Rapperswil
11 *
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * for more details.
21 */
22
23 #ifndef SQLITE_BACKEND_H_
24 #define SQLITE_BACKEND_H_
25
26 typedef struct sqlite_backend_t sqlite_backend_t;
27
28 #include <library.h>
29
30 #include "backend.h"
31
32 /**
33 * @brief An SQLite based configuration backend.
34 *
35 * @b Constructors:
36 * - sqlite_backend_create()
37 *
38 * @ingroup backends
39 */
40 struct sqlite_backend_t {
41
42 /**
43 * Implements backend_t interface
44 */
45 backend_t backend;
46 };
47
48 /**
49 * @brief Create a backend_t instance implemented as sqlite backend.
50 *
51 * @return backend instance
52 *
53 * @ingroup backends
54 */
55 backend_t *backend_create(void);
56
57 #endif /* SQLITE_BACKEND_H_ */
58