2 * Copyright (C) 2012-2014 Andreas Steffen
4 * Copyright (C) secunet Security Networks AG
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>.
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
18 * @defgroup imv_os_database_t imv_os_database
22 #ifndef IMV_OS_DATABASE_H_
23 #define IMV_OS_DATABASE_H_
25 #include "imv_os_state.h"
26 #include "imv/imv_database.h"
30 typedef struct imv_os_database_t imv_os_database_t
;
33 * Internal state of an imv_os_database_t instance
35 struct imv_os_database_t
{
38 * Check Installed Packages for a given OS
40 * @param state OS IMV state
41 * @param package_enumerator enumerates over installed packages
43 status_t (*check_packages
)(imv_os_database_t
*this, imv_os_state_t
*state
,
44 enumerator_t
*package_enumerator
);
47 * Destroys an imv_os_database_t object.
49 void (*destroy
)(imv_os_database_t
*this);
54 * Create an imv_os_database_t instance
56 * @param imv_db Already attached IMV database
58 imv_os_database_t
* imv_os_database_create(imv_database_t
*imv_db
);
60 #endif /** IMV_OS_DATABASE_H_ @}*/