diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-23 18:27:01 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-23 18:27:01 +0000 |
commit | 9e0c64767759da86499f245083239575d947b5e9 (patch) | |
tree | 97bfd59aec1a7f546711633ddf984478d1cd381c /plugins/Db3x/init.cpp | |
parent | b9829197a75ac0a4149c94ad26feb281d59cb199 (diff) |
Db3x:
plusified
git-svn-id: http://svn.miranda-ng.org/main/trunk@582 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x/init.cpp')
-rw-r--r-- | plugins/Db3x/init.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/plugins/Db3x/init.cpp b/plugins/Db3x/init.cpp index 2aceba5e6b..99740b93d0 100644 --- a/plugins/Db3x/init.cpp +++ b/plugins/Db3x/init.cpp @@ -22,16 +22,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "commonheaders.h"
-#include "database.h"
-#include <m_plugins.h>
struct MM_INTERFACE mmi;
struct LIST_INTERFACE li;
struct UTF8_INTERFACE utfi;
int hLangpack;
-extern char szDbPath[MAX_PATH];
-
HINSTANCE g_hInst=NULL;
PLUGINLINK *pluginLink;
@@ -124,7 +120,7 @@ static int grokHeader( char * profile, int * error ) // returns 0 if all the APIs are injected otherwise, 1
static int LoadDatabase( char * profile, void * plink )
{
- PLUGINLINK *link = plink;
+ PLUGINLINK *link = (PLUGINLINK *)plink;
#ifdef _DEBUG
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif
@@ -174,28 +170,28 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved) return TRUE;
}
-__declspec(dllexport) DATABASELINK* DatabasePluginInfo(void * reserved)
+extern "C" __declspec(dllexport) DATABASELINK* DatabasePluginInfo(void * reserved)
{
return &dblink;
}
-__declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
}
static const MUUID interfaces[] = {MIID_DATABASE, MIID_LAST};
-__declspec(dllexport) const MUUID * MirandaPluginInterfaces(void)
+extern "C" __declspec(dllexport) const MUUID * MirandaPluginInterfaces(void)
{
return interfaces;
}
-int __declspec(dllexport) Load(PLUGINLINK * link)
+extern "C" __declspec(dllexport) int Load(PLUGINLINK * link)
{
return 1;
}
-int __declspec(dllexport) Unload(void)
+extern "C" __declspec(dllexport) int Unload(void)
{
return 0;
}
|