From 81e8caf42867b65677efe2bffaa52ecff7303c3a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Jun 2012 13:58:25 +0000 Subject: no more pluginLink in load() git-svn-id: http://svn.miranda-ng.org/main/trunk@652 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_tree/DatabaseLink.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'plugins/Dbx_tree/DatabaseLink.cpp') diff --git a/plugins/Dbx_tree/DatabaseLink.cpp b/plugins/Dbx_tree/DatabaseLink.cpp index 36110d141c..f4bb812d0c 100644 --- a/plugins/Dbx_tree/DatabaseLink.cpp +++ b/plugins/Dbx_tree/DatabaseLink.cpp @@ -29,7 +29,7 @@ static int getCapability(int); static int getFriendlyName(char*, size_t, int); static int makeDatabase(char*, int*); static int grokHeader(char*, int*); -static int Load(char*, void*); +static int Load(char*); static int Unload(int); DATABASELINK gDBLink = { @@ -42,10 +42,8 @@ DATABASELINK gDBLink = { Unload, }; -PLUGINLINK *pluginLink = NULL; HANDLE hSystemModulesLoaded = 0; - static int SystemModulesLoaded(WPARAM wParam, LPARAM lParam) { Update upd = {0,0,0,0,0,0,0,0,0,0,0,0,0}; @@ -141,12 +139,11 @@ Affect: Tell the database to create all services/hooks that a 3.xx legecy databa which is a PLUGINLINK structure Returns: 0 on success, nonzero on failure */ -static int Load(char* profile, void* link) +static int Load(char* profile) { if (gDataBase) delete gDataBase; gDataBase = new CDataBase(profile); - pluginLink = (PLUGINLINK*)link; RegisterServices(); CompatibilityRegister(); @@ -158,7 +155,7 @@ static int Load(char* profile, void* link) /* Affect: The database plugin should shutdown, unloading things from the core and freeing internal structures Returns: 0 on success, nonzero on failure -Note: Unload() might be called even if Load() was never called, wasLoaded is set to 1 if Load() was ever called. +Note: Unload() might be called even if Load(void) was never called, wasLoaded is set to 1 if Load(void) was ever called. */ static int Unload(int wasLoaded) { -- cgit v1.2.3