b1e6b90ea9b729299a24f8c17f8a9e6323f5c8f8
[strongswan.git] / src / libimcv / plugins / imv_os / imv_os_database.h
1 /*
2 * Copyright (C) 2012 Andreas Steffen
3 * HSR Hochschule fuer Technik Rapperswil
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 *
18 * @defgroup imv_os_database_t imv_os_database
19 * @{ @ingroup imv_os_database
20 */
21
22 #ifndef IMV_OS_DATABASE_H_
23 #define IMV_OS_DATABASE_H_
24
25 #include <library.h>
26
27 typedef struct imv_os_database_t imv_os_database_t;
28
29 /**
30 * Internal state of an imv_os_database_t instance
31 */
32 struct imv_os_database_t {
33
34 /**
35 * Check Installed Packages for a given OS
36 *
37 * @param os_info OS name and version
38 * @param package_enumerator enumerates over installed packages
39 */
40 status_t (*check_packages)(imv_os_database_t *this, char* os_info,
41 enumerator_t *package_enumerator);
42
43 /**
44 * Destroys an imv_os_database_t object.
45 */
46 void (*destroy)(imv_os_database_t *this);
47
48 };
49
50 /**
51 * Create an imv_os_database_t instance
52 *
53 * @param uri database uri
54 */
55 imv_os_database_t* imv_os_database_create(char *uri);
56
57 #endif /** IMV_OS_DATABASE_H_ @}*/