]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/libimcv/plugins/imv_os/imv_os_database.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libimcv / plugins / imv_os / imv_os_database.h
1 /*
2 * Copyright (C) 2012-2014 Andreas Steffen
3 *
4 * Copyright (C) secunet Security Networks AG
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
17 /**
18 * @defgroup imv_os_database_t imv_os_database
19 * @{ @ingroup imv_os
20 */
21
22 #ifndef IMV_OS_DATABASE_H_
23 #define IMV_OS_DATABASE_H_
24
25 #include "imv_os_state.h"
26 #include "imv/imv_database.h"
27
28 #include <library.h>
29
30 typedef struct imv_os_database_t imv_os_database_t;
31
32 /**
33 * Internal state of an imv_os_database_t instance
34 */
35 struct imv_os_database_t {
36
37 /**
38 * Check Installed Packages for a given OS
39 *
40 * @param state OS IMV state
41 * @param package_enumerator enumerates over installed packages
42 */
43 status_t (*check_packages)(imv_os_database_t *this, imv_os_state_t *state,
44 enumerator_t *package_enumerator);
45
46 /**
47 * Destroys an imv_os_database_t object.
48 */
49 void (*destroy)(imv_os_database_t *this);
50
51 };
52
53 /**
54 * Create an imv_os_database_t instance
55 *
56 * @param imv_db Already attached IMV database
57 */
58 imv_os_database_t* imv_os_database_create(imv_database_t *imv_db);
59
60 #endif /** IMV_OS_DATABASE_H_ @}*/