]>
Commit | Line | Data |
---|---|---|
bc1f02a8 MW |
1 | /* |
2 | * Copyright (C) 2008 Martin Willi | |
19ef2aec TB |
3 | * |
4 | * Copyright (C) secunet Security Networks AG | |
bc1f02a8 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. | |
bc1f02a8 MW |
15 | */ |
16 | ||
17 | /** | |
5b7ec6d4 | 18 | * @defgroup medsrv_config_i medsrv_config |
11adf114 | 19 | * @{ @ingroup medsrv_p |
bc1f02a8 MW |
20 | */ |
21 | ||
5b7ec6d4 MW |
22 | #ifndef MEDSRV_CONFIG_H_ |
23 | #define MEDSRV_CONFIG_H_ | |
bc1f02a8 MW |
24 | |
25 | #include <config/backend.h> | |
26 | #include <database/database.h> | |
27 | ||
5b7ec6d4 | 28 | typedef struct medsrv_config_t medsrv_config_t; |
bc1f02a8 MW |
29 | |
30 | /** | |
31 | * Mediation server configuration backend. | |
32 | */ | |
5b7ec6d4 | 33 | struct medsrv_config_t { |
bc1f02a8 MW |
34 | |
35 | /** | |
36 | * Implements backend_t interface | |
37 | */ | |
38 | backend_t backend; | |
7daf5226 | 39 | |
bc1f02a8 MW |
40 | /** |
41 | * Destroy the backend. | |
42 | */ | |
7daf5226 | 43 | void (*destroy)(medsrv_config_t *this); |
bc1f02a8 MW |
44 | }; |
45 | ||
46 | /** | |
5b7ec6d4 | 47 | * Create a medsrv_config backend instance. |
bc1f02a8 MW |
48 | * |
49 | * @param db underlying database | |
50 | * @return backend instance | |
51 | */ | |
5b7ec6d4 | 52 | medsrv_config_t *medsrv_config_create(database_t *db); |
bc1f02a8 | 53 | |
1490ff4d | 54 | #endif /** MEDSRV_CONFIG_H_ @}*/ |