6bbdabd07ee906aaae5d681f730057925f1da79f
[strongswan.git] / src / conftest / conftest.h
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>
24 #include <hydra.h>
25 #include <daemon.h>
26 #include <credentials/sets/mem_cred.h>
27
28 #include "config.h"
29 #include "actions.h"
30
31 typedef struct conftest_t conftest_t;
32
33 /**
34 * Global conftest variables.
35 */
36 struct conftest_t {
37
38 /**
39 * Merged suite/test configuration
40 */
41 settings_t *test;
42
43 /**
44 * Directory containing suite files
45 */
46 char *suite_dir;
47
48 /**
49 * Credentials loaded from configuration
50 */
51 mem_cred_t *creds;
52
53 /**
54 * Configurations loaded from config
55 */
56 config_t *config;
57
58 /**
59 * Loaded hooks
60 */
61 linked_list_t *hooks;
62
63 /**
64 * Action handling
65 */
66 actions_t *actions;
67
68 /**
69 * Test specific loggers
70 */
71 linked_list_t *loggers;
72 };
73
74 /**
75 * Conftest globals
76 */
77 extern conftest_t *conftest;
78
79 #endif /** CONFTEST_H_ */