]>
Commit | Line | Data |
---|---|---|
e78ec86d MW |
1 | /* |
2 | * Copyright (C) 2010 Martin Willi | |
3 | * Copyright (C) 2010 revosec AG | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify it | |
6 | * under the terms of the GNU General Public License as published by the | |
7 | * Free Software Foundation; either version 2 of the License, or (at your | |
8 | * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. | |
9 | * | |
10 | * This program is distributed in the hope that it will be useful, but | |
11 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
12 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 | * for more details. | |
14 | */ | |
15 | ||
16 | /** | |
17 | * @defgroup conftest conftest | |
18 | */ | |
19 | ||
20 | #ifndef CONFTEST_H_ | |
21 | #define CONFTEST_H_ | |
22 | ||
23 | #include <library.h> | |
e78ec86d | 24 | #include <daemon.h> |
b318e0ab | 25 | #include <credentials/sets/mem_cred.h> |
e78ec86d | 26 | |
d1041fa4 | 27 | #include "config.h" |
73a3013f | 28 | #include "actions.h" |
d1041fa4 | 29 | |
e78ec86d MW |
30 | typedef struct conftest_t conftest_t; |
31 | ||
32 | /** | |
33 | * Global conftest variables. | |
34 | */ | |
35 | struct conftest_t { | |
36 | ||
37 | /** | |
98ef2865 | 38 | * Merged suite/test configuration |
e78ec86d MW |
39 | */ |
40 | settings_t *test; | |
b318e0ab MW |
41 | |
42 | /** | |
43 | * Directory containing suite files | |
44 | */ | |
45 | char *suite_dir; | |
46 | ||
b318e0ab MW |
47 | /** |
48 | * Credentials loaded from configuration | |
49 | */ | |
50 | mem_cred_t *creds; | |
f452a5a1 | 51 | |
d1041fa4 MW |
52 | /** |
53 | * Configurations loaded from config | |
54 | */ | |
55 | config_t *config; | |
56 | ||
f452a5a1 MW |
57 | /** |
58 | * Loaded hooks | |
59 | */ | |
60 | linked_list_t *hooks; | |
73a3013f MW |
61 | |
62 | /** | |
63 | * Action handling | |
64 | */ | |
65 | actions_t *actions; | |
18a8893e TB |
66 | |
67 | /** | |
68 | * Test specific loggers | |
69 | */ | |
70 | linked_list_t *loggers; | |
e78ec86d MW |
71 | }; |
72 | ||
73 | /** | |
74 | * Conftest globals | |
75 | */ | |
76 | extern conftest_t *conftest; | |
77 | ||
78 | #endif /** CONFTEST_H_ */ |