1 /* 2 pev - the PE file analyzer toolkit 3 4 plugins.h - Symbols and definitions for the plugins subsystem. 5 6 Copyright (C) 2012 - 2014 pev authors 7 8 This program is free software: you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation, either version 2 of the License, or 11 (at your option) any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program. If not, see <http://www.gnu.org/licenses/>. 20 21 In addition, as a special exception, the copyright holders give 22 permission to link the code of portions of this program with the 23 OpenSSL library under certain conditions as described in each 24 individual source file, and distribute linked combinations 25 including the two. 26 27 You must obey the GNU General Public License in all respects 28 for all of the code used other than OpenSSL. If you modify 29 file(s) with this exception, you may extend this exception to your 30 version of the file(s), but you are not obligated to do so. If you 31 do not wish to do so, delete this exception statement from your 32 version. If you delete this exception statement from all source 33 files in the program, then also delete it here. 34 */ 35 36 #pragma once 37 38 #include "config.h" 39 40 #ifdef __cplusplus 41 extern "C" { 42 #endif 43 44 int plugins_load(const char *path); 45 int plugins_load_all(pev_config_t *config); 46 int plugins_load_all_from_directory(const char *path); 47 void plugins_unload_all(void); 48 49 #ifdef __cplusplus 50 } 51 #endif 52