summaryrefslogtreecommitdiff
path: root/plugins/Dbx_tree/DatabaseLink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_tree/DatabaseLink.cpp')
-rw-r--r--plugins/Dbx_tree/DatabaseLink.cpp9
1 files changed, 3 insertions, 6 deletions
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)
{