1 /* 2 * Copyright 2011 kubtek <kubtek@mail.com> 3 * 4 * This file is part of StarDict. 5 * 6 * StarDict is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * StarDict is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with StarDict. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef _STARDICT_WORDNET_PLUGIN_H_ 21 #define _STARDICT_WORDNET_PLUGIN_H_ 22 23 #ifdef _WIN32 24 #if BUILDING_DLL 25 # define DLLIMPORT __declspec (dllexport) 26 #else /* Not BUILDING_DLL */ 27 # define DLLIMPORT __declspec (dllimport) 28 #endif /* Not BUILDING_DLL */ 29 #else 30 # define DLLIMPORT 31 #endif 32 33 #include "../../src/lib/plugin.h" 34 #include "../../src/lib/specialdictplugin.h" 35 #include "../../src/lib/iappdirs.h" 36 37 extern "C" { 38 DLLIMPORT extern bool stardict_plugin_init(StarDictPlugInObject *obj, IAppDirs* appDirs); 39 DLLIMPORT extern void stardict_plugin_exit(void); 40 DLLIMPORT extern bool stardict_specialdict_plugin_init(StarDictSpecialDictPlugInObject *obj); 41 } 42 43 #endif 44