Return to imv_os_database.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / src / libimcv / plugins / imv_os |
1.1 misho 1: /* 2: * Copyright (C) 2012-2014 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: * @defgroup imv_os_database_t imv_os_database 18: * @{ @ingroup imv_os 19: */ 20: 21: #ifndef IMV_OS_DATABASE_H_ 22: #define IMV_OS_DATABASE_H_ 23: 24: #include "imv_os_state.h" 25: #include "imv/imv_database.h" 26: 27: #include <library.h> 28: 29: typedef struct imv_os_database_t imv_os_database_t; 30: 31: /** 32: * Internal state of an imv_os_database_t instance 33: */ 34: struct imv_os_database_t { 35: 36: /** 37: * Check Installed Packages for a given OS 38: * 39: * @param state OS IMV state 40: * @param package_enumerator enumerates over installed packages 41: */ 42: status_t (*check_packages)(imv_os_database_t *this, imv_os_state_t *state, 43: enumerator_t *package_enumerator); 44: 45: /** 46: * Destroys an imv_os_database_t object. 47: */ 48: void (*destroy)(imv_os_database_t *this); 49: 50: }; 51: 52: /** 53: * Create an imv_os_database_t instance 54: * 55: * @param imv_db Already attached IMV database 56: */ 57: imv_os_database_t* imv_os_database_create(imv_database_t *imv_db); 58: 59: #endif /** IMV_OS_DATABASE_H_ @}*/